:root {
    --base-100: #fbfbf4; /* Un tono un pelín más claro y cálido */
    --base-200: #efefe6; /* Más cercano al 100 para un look minimalista */
    --base-300: #1d1d1b; /* Negro "tinta", no negro "pixel" */
}

@font-face {
    font-family: 'Gazpacho';
    /* 1. Agregamos la carpeta fonts/ */
    /* 2. Respetamos el espacio y el nombre exacto del archivo */
    src: url('fonts/Gazpacho Heavy.ttf') format('truetype'); 
    font-weight: 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Dejamos Fraunces o una del sistema para que se pueda leer bien el texto largo */
    font-family: "Fraunces", serif; 
    background-color: var(--base-100);
    color: var(--base-300);
}

body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Grano más denso y orgánico */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    
    /* El truco de Sleep Well: Mezclar el ruido con los colores de fondo */
    mix-blend-mode: multiply; 
    opacity: 0.2; /* Ahora que multiplicamos, necesitamos más opacidad */
    
    pointer-events: none;
    z-index: 9999;
}

h1,
h2 {
    font-family: 'Gazpacho', serif;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(4rem, 7.5vw, 6rem);
}

h2 {
    font-size: clamp(2.5rem, 4.5vw, 5rem);
}

p {
    font-size: 1.125rem;
    font-weight: 500;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fbfbf4; /* El color de fondo de tu web */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo */
    overflow: hidden;
}

.preloader-content {
    text-align: center;
}

.loader-text {
    font-family: 'Gazpacho', serif; /* Tu fuente principal */
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 5px;
    color: #1a1a1a;
}

.loader-bar {
    width: 0;
    height: 2px;
    background: #a855f7; /* Color morado de tu marca */
    margin: 0 auto;
}

.hero {
    position: relative;
    width: auto;
    height: 110svh;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-header {
    position: absolute;
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    z-index: 10;        /* ESTO ES LO IMPORTANTE: 10 es mayor que el 1 de los símbolos */
    pointer-events: none;
}

.hero-header p {
    width: 75%;
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;  /* Un poco más grande para que cubra todo */
    height: 500px;
    /* Color sólido crema para que sea potente, el desenfoque hará el resto */
    background: #fbfbf4; 
    filter: blur(80px); /* SUBE ESTO a 80px para que sea una "nube" de luz */
    border-radius: 50%;
    z-index: -1; 
    pointer-events: none;
    opacity: 0; /* Para la prueba ponlo en 1, luego lo bajamos si es muy fuerte */
}

.hero-canvas {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    width: 100%;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    pointer-events: none; /* Deja que el scroll siga fluyendo */
}

.welcome-text {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 6vw, 3.5rem); /* Se adapta a móvil y desktop */
    font-weight: 900;
    text-transform: uppercase; /* Para que se vea como en tu captura */
    text-align: center;
    line-height: 1;
    color: #1a1d1b;
    max-width: 900px; /* Evita que las líneas sean infinitas */
    margin: 0 auto;
    perspective: 1000px; /* Necesario para que el rotateX de GSAP funcione */
}

/* Evita que se vea el texto antes de la animación en móviles lentos */
.welcome-text div {
    display: inline-block;
}

.outro {
    position: relative;
    width: 100%;
    height: 100svh;
    padding: 2rem;
    background-color: var(--base-200);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.outro {
    height: 100vh;
    background-color: #efefe6;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    position: absolute;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0.15; /* Sutil como marca de agua */
    pointer-events: none;
}

.marquee-row {
    font-family: 'Fraunces', serif;
    font-size: 15vw; /* Texto gigantesco */
    font-weight: 900;
    white-space: nowrap;
    display: flex;
    color: #1a1a1b;
    text-transform: uppercase;
    -webkit-text-stroke: 1px #1a1a1b;
    color: transparent; /* Solo el borde para un toque artístico */
}

.outro-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.outro-reveal-text {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-family: 'Fraunces', serif;
    font-weight: 900;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* Para efecto de máscara */
}

.outro-content p {
    font-family: 'Manrope', sans-serif;
    letter-spacing: 5px;
    margin-top: 20px;
    font-weight: 700;
    opacity: 0.6;
}

.hero h1,
.outro h1 {
    width: 60%;
    text-align: center;
}

.spotlight {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10rem;
    overflow: hidden;
}

.spotlight .row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.spotlight .row .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight .row:nth-child(1) .img,
.spotlight .row:nth-child(4) .img {
    width: 50%;
}

.spotlight .card {
    width: 75%;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem; /* Un poco menos redondeado se ve más premium/editorial */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
    /* Agrega esto: */
    border: 1px solid rgba(0,0,0,0.05); /* Un borde casi invisible que define la silueta */
    box-shadow: 
        5px 5px 15px rgba(0,0,0,0.02), 
        -5px -5px 15px rgba(255,255,255,0.5); /* Efecto sutil de relieve */
}

.spotlight .svg-path {
    position: absolute;
    top: 25svh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100%;
    z-index: -1;
}

.spotlight .svg-path svg {
    width: 100%;
    height: auto;
    filter: saturate(0.9) contrast(1.1); /* Hace que los colores se vean menos digitales */
}

.products {
    padding: 140px 0;
    position: relative;
    color: #1a1a1a;
    
    /* Degradado de TRANSPARENTE arriba a #efefe6 abajo */
    background: linear-gradient(
        to bottom, 
        rgba(251, 251, 244, 0) 0%, /* Tu color crema pero transparente */
        #efefe6 30%,               /* Llega al color sólido al 30% del alto */
        #efefe6 100%               /* Se mantiene sólido hasta el final */
    );
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'Gazpacho', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 10px;
    
    /* EVITA QUE SE CORTE "VANDEV" EN MÓVIL */
    word-break: keep-all; 
    overflow-wrap: break-word;
    max-width: 90%; /* Dale aire en los bordes */
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-family: 'Fraunces', serif;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.mt-huge { margin-top: 100px; }

/* Para que cuando haya un solo producto no ocupe todo el ancho */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 20px;
    justify-content: center; /* Centra la tarjeta si es la única */
}

.product-card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;

    /* OPTIMIZACIÓN DE RENDIMIENTO */
    transition: none !important; /* Matamos cualquier transición de CSS */
    will-change: transform, opacity; /* Avisamos al navegador que esto se moverá */
    transform-style: preserve-3d;
    backface-visibility: hidden; /* Evita parpadeos en 3D */
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.product-tag {
    font-family: 'Fraunces', serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 20px;
}

/* Color especial para Renta */
.product-tag.rental { color: #55b6f7; }

.product-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.product-card p {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-more {
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a1a1a;
    border-bottom: 2px solid #a855f7;
    padding-bottom: 4px;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-more:hover {
    color: #a855f7;
}

.conoce-mas {
    position: relative;
    padding: 160px 0;
    background-color: #fbfbf4;
    overflow: hidden;
}

.conoce-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1;
}

.conoce-bg-shapes .shape {
    position: absolute;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 20vw;
    color: #a855f7;
    opacity: 0.03; /* Muy tenue, casi invisible */
    filter: blur(20px);
}

.magnetic-links {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    z-index: 10;
    position: relative;
}

.magnetic-item {
    padding: 80px; /* Al aumentar este padding, creas una "trampa magnética" más grande */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* transition: none !important; */
}

.btn-magnetic {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    background: white;
    transition: border 0.3s ease;
    will-change: transform;
    pointer-events: auto;
}

.btn-fill {
    position: absolute;
    width: 100%; height: 100%;
    background-color: #a855f7; /* Color VanDev al hacer hover */
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-magnetic:hover .btn-fill {
    transform: scale(1);
}

.btn-magnetic:hover { border-color: transparent; }

.btn-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #1a1a1b;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.btn-magnetic:hover .btn-text { color: white; }
/* Invertimos el icono al hover para que se vea blanco */
.btn-magnetic:hover lord-icon { filter: brightness(10) grayscale(1); }

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 768px) {
    /* 1. Reducir el espacio de la sección */
    .conoce-mas {
        padding: 80px 0;
    }

    /* 2. Ajustar los textos para que no se vean gigantes */
    .section-title {
        font-size: 1.8rem !important;
        padding: 0 20px;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        padding: 0 20px;
        br { display: none; } /* Quitamos el salto de línea en móvil */
    }

    /* 3. Cambiar la dirección de los botones a vertical */
    .magnetic-links {
        flex-direction: column; /* Se ponen uno debajo del otro */
        gap: 20px; /* Menos espacio entre ellos */
        margin-top: 40px;
    }

    /* 4. REDUCIR LA TRAMPA MAGNÉTICA */
    /* En móvil el efecto "magnético" no funciona igual que con mouse, 
       así que quitamos el exceso de padding para que quepan en pantalla */
    .magnetic-item {
        padding: 20px; 
    }

    /* 5. Reducir un poco el tamaño del círculo del botón */
    .btn-magnetic {
        width: 140px;
        height: 140px;
    }

    /* 6. Reducir el tamaño de los iconos de LordIcon */
    .btn-magnetic lord-icon {
        width: 70px !important;
        height: 70px !important;
    }
}

/* Ajuste extra para pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 380px) {
    .btn-magnetic {
        width: 120px;
        height: 120px;
    }
}

/* Diferenciación para tarjetas de renta */
.card-renta {
    border-top: 4px solid #55b6f7;
}

@media (max-width: 1000px) {
    h1,
    h2 {
        letter-spacing: 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .hero h1,
    .outro h1 {
        width: 100%;
    }

    .hero-content h2 {
        width: calc(100% - 4rem);
    }

    .spotlight {
        gap: 5rem;
    }

    .spotlight .row {
        flex-direction: column;
    }

    .spotlight .row:nth-child(1) .img,
    .spotlight .row:nth-child(4) .img {
        width: 100%;
    }

    .spotlight .card {
        width: 100%;
    }

    .spotlight .svg-path {
        top: 15svh;
        width: 275%;
    }
}

.symbol {
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    color: var(--base-300);
    pointer-events: none;
    user-select: none;
    mix-blend-mode: multiply;
    
    /* ¡SUPER IMPORTANTE PARA EL BLUR! */
    will-change: transform, filter, opacity;
}

