/* =========================================
           CONFIGURACIÓN BASE Y VARIABLES
           Estilo minimalista, premium y fluido (Apple Style).
           ========================================= */
:root {
    --bg-color: #fbfbfd;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --badge-bg: rgba(255, 255, 255, 0.6);
    --badge-border: rgba(0, 0, 0, 0.06);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    /* Tipografía nativa de alta calidad */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    /* Garantiza que no haya scroll en ninguna pantalla */
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100vw;
}

/* =========================================
           TIPOGRAFÍA Y TAMAÑOS FLUIDOS
           ========================================= */
.fluid-title {
    font-size: clamp(2.2rem, 6vw + 1rem, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.fluid-paragraph {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 2.2rem);
    line-height: 1.4;
    letter-spacing: -0.015em;
    max-width: clamp(280px, 60vw, 1000px);
    color: var(--text-secondary);
}

.fluid-logo {
    width: clamp(160px, 22vw, 450px);
    height: auto;
}

.fluid-badge-text {
    font-size: clamp(0.7rem, 1vw + 0.3rem, 1.2rem);
    letter-spacing: 0.15em;
}

/* =========================================
           FONDOS
           ========================================= */
.ambient-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 247, 0.4) 40%, transparent 80%);
    z-index: 0;
    pointer-events: none;
    animation: slowDrift 25s ease-in-out infinite alternate;
}

@keyframes slowDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(3%, 3%) scale(1.05);
    }
}

/* =========================================
           NUEVO PRELOADER: INFINITY (APPLE STYLE)
           ========================================= */
#preloader {
    position: fixed;
    inset: 0;
    /* 👇 AQUÍ CAMBIAS EL COLOR DE FONDO DE TODA LA PANTALLA DE CARGA */
    /* (Actualmente usa el mismo fondo de la web, pero puedes cambiarlo a #000000 por ejemplo) */
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1.2s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
}

.fluid-preloader-svg {
    /* Se adapta fluidamente a cualquier pantalla, tamaño aumentado */
    width: clamp(100px, 18vw, 240px);
    height: auto;
}

/* Matemáticas puras traducidas del SCSS */
.infinity-outline {
    /* 👇 AQUÍ CAMBIAS EL COLOR DE LA LÍNEA QUE SE MUEVE (LA ANIMACIÓN) */
    stroke: #cccccc;
    stroke-dasharray: 2.43, 242.78;
    stroke-dashoffset: 0;
    animation: drawInfinity 1.6s linear infinite;
}

.infinity-bg {
    /* 👇 AQUÍ CAMBIAS EL COLOR DEL CAMINO O SILUETA DE FONDO */
    stroke: #cccccc;
    /* 👇 AQUÍ AJUSTAS QUÉ TAN TRANSPARENTE ES EL CAMINO (0.0 es invisible, 1.0 es sólido) */
    opacity: 0.25;
}

@keyframes drawInfinity {
    12.5% {
        stroke-dasharray: 33.99, 242.78;
        stroke-dashoffset: -26.70;
    }

    43.75% {
        stroke-dasharray: 84.97, 242.78;
        stroke-dashoffset: -84.97;
    }

    100% {
        stroke-dasharray: 2.43, 242.78;
        stroke-dashoffset: -240.34;
    }
}

/* =========================================
           ANIMACIONES DE ENTRADA (BLUR REVEAL)
           ========================================= */
.blur-reveal {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(30px);
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.blur-reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.delay-0 {
    transition-delay: 0.1s;
}

.delay-1 {
    transition-delay: 0.3s;
}

.delay-2 {
    transition-delay: 0.5s;
}

.delay-3 {
    transition-delay: 0.7s;
}

/* =========================================
           COMPONENTES ESTÁTICOS
           ========================================= */
.status-badge {
    background: var(--badge-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--badge-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    border-radius: 9999px;
    padding: clamp(0.5rem, 1vw, 1rem) clamp(1rem, 2vw, 2.5rem);
    display: inline-flex;
    align-items: center;
}

.pulse-dot {
    width: clamp(8px, 1vw, 14px);
    height: clamp(8px, 1vw, 14px);
    border-radius: 50%;
    background-color: var(--accent-blue);
    margin-right: clamp(0.5rem, 1vw, 1rem);
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
    animation: pulse-blue 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 113, 227, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}