/* ==========================================================================
   Design Tokens (CSS Variables)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-light: #fdf8f0;
    --text-light: #f4f4f4;
    --text-muted: #a0a0a0;
    --text-dark: #111111;
    --accent-gold: #e2a85c;
    --accent-hover: #ffcc70;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif; /* Para párrafos, botones y menú */
    --font-secondary: 'Playfair Display', serif; /* Exclusivo para Títulos y logos */
    
    /* Spacing System (Mobile-First) */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-xxl: 5rem;    /* 80px */
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Aplicar la fuente elegante a todos los títulos de la página */
h1, h2, h3, .hero__title, .about__title, .services__title, .header__logo {
    font-family: var(--font-secondary);
    font-weight: 600; /* Le da el grosor perfecto a Playfair */
}

/* Basic media reset */
img, 
picture, 
video, 
canvas, 
svg {
    display: block;
    max-width: 100%;
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh; /* Ocupar toda la pantalla inicial */
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero__container {
    display: block; /* Anulamos el Flex/Grid de dos columnas previo */
    width: 100%;
    position: relative;
    z-index: 2; /* El texto va por encima */
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Area */
.hero__content {
    max-width: 650px; 
    position: relative;
    /* PARCHE DE CAPAS: Obligar al texto a flotar sobre la imagen */
    z-index: 10; 
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center; 
    text-align: center;  
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-light);
}

.hero__title--highlight {
    color: var(--accent-gold);
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 500px;
}

.hero__cta {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hero__cta:hover {
    background-color: var(--accent-hover);
}

/* Trust Badge */
.hero__trust-badge {
    display: flex;
    flex-direction: column; /* Apila los avatares y el texto en móvil para mejor centrado */
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.hero__avatars {
    display: flex;
    justify-content: center;
}

.hero__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--bg-dark);
    margin-left: -12px;
}

.hero__avatar:first-child {
    margin-left: 0;
}

.hero__trust-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Visual Area (Mobile First) */
.hero__visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
    z-index: 1; /* Al fondo */
}

.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center; /* Mueve la foto para buscar un área menos ruidosa */
    border-radius: 0; /* Quitamos bordes redondeados */
    box-shadow: none; /* Quitamos sombras de caja */
    transform: none; /* Anulamos efectos hover previos */
}

/* El Efecto de Desvanecido (Mobile First) */
.hero__visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Aumentamos la oscuridad en la parte superior (de 0.6 a 0.85) */
    background: linear-gradient(to top, var(--bg-dark) 15%, rgba(10,10,10, 0.85) 100%);
}

/* ==========================================================================
   Media Queries - Desktop
   ========================================================================== */
@media (min-width: 768px) {
    .hero {
        padding: var(--spacing-xxl) var(--spacing-md);
    }

    .hero__content {
        align-items: flex-start; /* Devuelve el contenido a la izquierda */
        text-align: left;        /* Devuelve el texto a la izquierda */
    }

    .hero__trust-badge {
        flex-direction: row;     /* Vuelve a colocar avatares y texto en una línea */
    }

    .hero__visual img {
        object-position: center center; /* Restaura el centro en escritorio */
    }

    .hero__visual::after {
        /* Degradado de izquierda a derecha en escritorio */
        background: linear-gradient(to right, var(--bg-dark) 35%, rgba(10,10,10, 0.2) 100%);
    }
}

/* ==========================================================================
   About Section Styles
   ========================================================================== */
.about {
    width: 100%;
    /* Mantén el degradado superior que ya teníamos */
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-light) 12%, var(--bg-light) 100%);
    padding: var(--spacing-xl) 0; /* Quitamos padding lateral global para permitir el Full-Bleed */
    position: relative;
    z-index: 10;
    color: var(--text-dark);
}

.about__container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Visual Area (Mobile First) */
.about__visual {
    width: 100%;
    /* Añadimos padding para alinear con el texto en móvil */
    padding: 0 var(--spacing-md); 
    display: flex;
    justify-content: center;
}

.about__visual img {
    width: 100%;
    max-width: 500px; /* Evita que sea inmensa en tablets pequeñas */
    max-height: 400px;
    object-fit: cover;
    /* Bordes redondeados UNIFORMES en las 4 esquinas para móvil */
    border-radius: 24px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); 
}

/* Content Area */
.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.about__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.about__description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #444; /* Better readability on light bg */
}

/* Benefits List */
.about__benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.about__benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 1rem;
}

.about__benefit-item::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    /* Custom SVG inline checkmark matching accent-gold */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2a85c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* CTA */
.about__cta {
    display: inline-block;
    align-self: flex-start;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.about__cta:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   Media Queries - Desktop (About Section)
   ========================================================================== */
@media (min-width: 768px) {
    .about__benefits-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
}

@media (min-width: 992px) {
    .about__container {
        flex-direction: row;
        align-items: center;
        max-width: 100%; /* Rompemos la jaula para tocar los bordes */
        gap: 0;
    }

    .about__visual {
        flex: 0 0 50%; 
        /* Quitamos el padding en escritorio para que toque el borde */
        padding: 0; 
        display: block;
    }

    .about__visual img {
        height: 80vh; 
        max-height: 800px;
        min-height: 600px;
        max-width: 100%;
        /* Volvemos a la asimetría: solo bordes derechos redondeados */
        border-radius: 0 24px 24px 0; 
        box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.08); 
    }

    .about__content {
        flex: 0 0 50%; /* Exactamente la mitad derecha */
        padding: 0 var(--spacing-xxl) 0 var(--spacing-xl); /* Espacio para respirar */
        max-width: 650px; /* Para que el texto no se estire demasiado */
    }
}

/* ==========================================================================
   Services Section Styles
   ========================================================================== */
.services {
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xxl) var(--spacing-md);
}

.services__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Header */
.services__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.services__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
}

.services__subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Grid */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

/* Service Card */
.service-card {
    background: linear-gradient(145deg, rgba(226, 168, 92, 0.15) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(226, 168, 92, 0.2);
    border-radius: 12px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(226, 168, 92, 0.1);
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(226, 168, 92, 0.1);
    margin-bottom: var(--spacing-xs);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.service-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    flex-grow: 1; /* Pushes link to bottom if cards are different heights */
}

.service-card__link {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: var(--spacing-sm);
    transition: color 0.3s ease;
}

.service-card__link:hover {
    color: var(--accent-hover);
}

/* View All Button */
.services__view-all {
    text-align: center;
    margin-top: var(--spacing-md);
}

.services__btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.services__btn:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   Media Queries - Desktop (Services Section)
   ========================================================================== */
@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

/* ==========================================================================
   Contact / Quiz Section Styles
   ========================================================================== */
.contact {
    width: 100%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--spacing-xxl) var(--spacing-md);
}

.quiz__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.quiz__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.quiz__wrapper {
    background-color: #ffffff;
    border-radius: 20px;
    /* Sombra premium: amplia, difuminada y elegante */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl);
}

/* Detalle Boutique: Línea dorada superior */
.quiz__wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gold);
}

.quiz__step {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz__question {
    font-size: 1.25rem;
    font-weight: 600;
}

.quiz__options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.quiz__option {
    background-color: var(--bg-light); /* Usamos el crema de fondo para dar contraste */
    border: 2px solid transparent; /* Borde invisible para evitar saltos en hover */
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease; /* Suavidad en la animación */
    width: 100%;
    text-align: center;
}

/* La Magia: Micro-interacción al pasar el mouse */
.quiz__option:hover,
.quiz__option:focus {
    transform: translateY(-4px); /* El botón "sube" hacia el dedo del usuario */
    background-color: #ffffff;
    border-color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06); /* Proyecta sombra al levantarse */
    color: var(--accent-gold);
    outline: none;
}

/* Utility Class */
.is-hidden {
    display: none !important;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    /* Usamos un color claro pero no 100% blanco para no deslumbrar */
    color: rgba(255, 255, 255, 0.7); 
    padding: var(--spacing-xl) var(--spacing-md);
    font-family: var(--font-primary);
    font-size: 0.875rem; /* Letra un poco más pequeña y elegante */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Línea separadora ultra sutil */
}

/* El contenedor interno debe distribuir el espacio */
.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Apilado en móvil */
    gap: var(--spacing-md);
    align-items: center;
    text-align: center;
}

/* Espaciado para los datos de contacto */
.footer__contact p, .footer__links a {
    margin-bottom: 0.5rem;
}

/* En la zona móvil base */
.footer__links {
    display: flex;
    justify-content: center; /* Centrado en móviles */
    gap: 1.5rem; /* Espacio ideal entre los links */
    flex-wrap: wrap;
}

.footer a {
    color: rgba(255, 255, 255, 0.7); /* Gris claro */
    text-decoration: none; /* Quitamos la línea de abajo por defecto */
    transition: color 0.3s ease;
}

/* Micro-interacción premium */
.footer a:hover {
    color: var(--accent-gold); /* Se ilumina en dorado al pasar el cursor */
}

@media (min-width: 768px) {
    .footer__container {
        flex-direction: row; /* Elementos en fila */
        justify-content: space-between; /* Espaciados a los extremos */
        text-align: left;
    }
    
    .footer__contact, .footer__copyright, .footer__links {
        flex: 1; /* Distribuye el espacio equitativamente */
    }
    
    .footer__copyright {
        text-align: center;
    }
    
    .footer__links {
        justify-content: flex-end; /* Empuja los enlaces hacia la derecha en PC */
        text-align: right;
    }
}

/* ==========================================================================
   Header & Navigation Styles (Glassmorphism)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 168, 92, 0.1);
    transition: all 0.3s ease;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    /* EVITAR QUE FLEXBOX APLASTE EL CONTENEDOR EN MÓVIL */
    flex-shrink: 0; 
    position: relative;
    z-index: 101; /* Sobre el menú fullscreen */
}

.header__logo-img {
    height: 75px; /* Forzar altura fija en lugar de max-height para dar estabilidad */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* PREVENIR DEFORMACIÓN DE LA IMAGEN */
    flex-shrink: 0;
}

.header__toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* FORZAR ALINEACIÓN A LA DERECHA */
    margin-left: auto; 
    position: relative;
    z-index: 101; /* Sobre el menú fullscreen */
}

.header__nav {
    /* Mobile-first: nav is handled via the menu ul */
}

.header__menu {
    display: none; /* Hidden on mobile by default */
    list-style: none;
    flex-direction: column;
    justify-content: center; /* Centrado vertical */
    align-items: center;     /* Centrado horizontal */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark); /* Fondo sólido y elegante */
    z-index: 99; /* Debajo del logo y toggle */
}

.header__menu--active {
    display: flex; /* Active state for mobile */
}

.header__link {
    font-family: var(--font-secondary); /* Playfair Display para máxima elegancia */
    font-size: 2.5rem; /* Textos gigantes y protagónicos */
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none; /* Adiós a los subrayados feos */
    margin: var(--spacing-sm) 0; /* Buen respiro entre opciones */
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
}

.header__link:hover,
.header__link:focus {
    color: var(--accent-gold);
    transform: scale(1.05); /* Pequeño zoom al tocar */
    outline: none;
}

/* Adjust body padding to account for fixed header */
body {
    padding-top: 80px; 
}

/* ==========================================================================
   Media Queries - Desktop (Header)
   ========================================================================== */
@media (min-width: 768px) {
    .header__toggle {
        display: none; /* Hide toggle on desktop */
    }

    .header__menu {
        display: flex;
        position: relative;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0;
        border: none;
        gap: 0;
    }
    
    .header__link {
        font-family: var(--font-primary); /* Volvemos a Montserrat en escritorio para no saturar */
        font-size: 1.125rem; /* Tamaño normal */
        font-weight: 600;
        margin: 0 0 0 var(--spacing-md); /* Espaciado horizontal */
        padding: var(--spacing-xs) 0;
    }
    
    .header__link:hover,
    .header__link:focus {
        transform: none; /* Quitamos zoom en escritorio */
    }
}

.footer__contact-info {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}
