: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: 100%;
    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;
}

.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: 'Fraunces', 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: 'Manrope', sans-serif;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.mt-huge { margin-top: 100px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    perspective: 1000px; /* Necesario para el efecto 3D */
}

.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: 'Manrope', sans-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;
}

/* 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;
}

