/* ==========================================================================
   DESIGN TOKENS & VARIABLES (Estilo "Minimalist Authority")
   ========================================================================== */
:root {
    --bg-main: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.5);
    --accent: #c5a367; 
    --text-main: #fcfcfc;
    --text-muted: #a3a3a3;
    --line: rgba(255, 255, 255, 0.08);
    
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --container: 1100px;
    --radius: 4px; 
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET, SELECCIÓN TEXTO & SCROLLBAR
   ========================================================================== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    background: var(--bg-main); 
}

/* Personalización de la selección de texto */
::selection {
    background: rgba(197, 163, 103, 0.3); 
    color: var(--text-main);
}
::-moz-selection {
    background: rgba(197, 163, 103, 0.3);
    color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #222; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #333; 
}

body { 
    font-family: var(--font-body); 
    font-weight: 300; 
    color: var(--text-main); 
    background: var(--bg-main); 
    line-height: 1.65;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

h1, h2, h3, h4, strong {
    font-weight: 400; 
}

/* Accesibilidad y Foco */
.skip-link { 
    position: absolute; 
    left: -9999px; 
    z-index: 9999; 
    padding: 1em; 
    background-color: var(--text-main); 
    color: var(--bg-main); 
    text-decoration: none; 
}
.skip-link:focus { 
    left: 50%; 
    transform: translateX(-50%); 
    top: 10px; 
}

:focus-visible { 
    outline: 2px solid var(--accent); 
    outline-offset: 4px; 
    border-radius: 2px; 
}

/* ==========================================================================
   NAVEGACIÓN (HEADER)
   ========================================================================== */
.navbar { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    background: rgba(5,5,5,0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--line); 
}
.nav-container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 16px 24px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo-link { 
    text-decoration: none; 
    color: inherit; 
}
.logo-text { 
    letter-spacing: 3px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    font-family: var(--font-body); 
}
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 24px; 
}
.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 500; 
    letter-spacing: 1px;
    transition: color 0.3s; 
}
.nav-links a:hover { 
    color: var(--text-main); 
}
.nav-cta { 
    border: 1px solid var(--line); 
    padding: 10px 18px; 
    color: var(--text-main) !important; 
    border-radius: var(--radius); 
}

/* ==========================================================================
   MICROINTERACCIÓN: AURA DORADA EN FOTO PERFIL
   ========================================================================== */
/* El wrapper crea un pseudo-elemento detrás de la foto */
.profile-interaction-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    filter: blur(15px); /* Suaviza el borde del aura */
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1; /* Detrás de la foto (z-index: 2) */
}

/* Interacciones al pasar el mouse (hover) o tocar (active) */
.profile-interaction-wrapper:hover::after,
.profile-interaction-wrapper:active::after {
    opacity: 0.6; /* Iluminación */
    transform: scale(1.15); /* Expansión del destello */
}

/* Sutil efecto en la foto misma para aumentar profundidad */
.profile-interaction-wrapper:hover .profile,
.profile-interaction-wrapper:active .profile {
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

/* ==========================================================================
   LAYOUT Y SECCIONES
   ========================================================================== */
.section { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: clamp(80px, 12vh, 140px) 24px; 
}
.centered-content { 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
}
.alternate-bg { 
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%); 
    border-top: 1px solid var(--line); 
    border-bottom: 1px solid var(--line); 
}

.tagline { 
    color: var(--accent); 
    text-transform: uppercase; 
    letter-spacing: 2.5px; 
    font-size: 0.75rem; 
    margin-bottom: 16px; 
    font-weight: 600; 
    font-family: var(--font-body);
}
.section-title { 
    font-family: var(--font-title); 
    font-size: clamp(2rem, 5vw, 3.2rem); 
    line-height: 1.15; 
    margin-bottom: var(--space-l); 
}

/* ==========================================================================
   COMPONENTES DEL HERO
   ========================================================================== */
.hero-cta-group { 
    display: flex; 
    justify-content: center; 
    gap: 16px; 
    margin-top: 32px;
}
.highlight { 
    color: var(--accent); 
}
.niche-context {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.benefit-list { 
    list-style: none; 
    max-width: 680px; 
    margin: 40px auto 0; 
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; 
    color: var(--text-muted); 
}
.benefit-list li { 
    padding: 10px 16px; 
    border: 1px solid var(--line); 
    background: rgba(255,255,255,0.02); 
    border-radius: 99px; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px;
}

.authority-band { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 24px 20px; 
    display: flex; 
    justify-content: center; 
    gap: 24px; 
    flex-wrap: wrap; 
    border-top: 1px solid var(--line); 
    border-bottom: 1px solid var(--line); 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.cta { 
    display: inline-block; 
    text-decoration: none; 
    padding: 18px 36px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
    font-weight: 500;
    transition: var(--transition); 
    border-radius: var(--radius);
    text-align: center;
    min-height: 44px; 
    min-width: 44px;
    cursor: pointer;
}
.cta.solid { 
    background: var(--text-main); 
    color: var(--bg-main); 
    border: 1px solid var(--text-main); 
}
.cta.ghost { 
    background: transparent; 
    color: var(--text-main); 
    border: 1px solid var(--line); 
}
.cta-full { 
    width: 100%; 
    margin-top: 32px; 
}

@media (hover: hover) {
    .cta.solid:hover { background: transparent; color: var(--text-main); border-color: var(--accent); }
    .cta.ghost:hover { border-color: var(--text-main); }
}
.cta:active { transform: scale(0.98); }

/* ==========================================================================
   GRIDS, TARJETAS E ICONOS
   ========================================================================== */
/* Grillas normales */
.proof-grid, .form-grid { 
    display: grid; 
    gap: 24px; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    align-items: stretch; 
}

/* Grilla del Proceso (Flexbox para lograr el Triángulo Invertido) */
.step-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    align-items: stretch;
}

/* La tarjeta ahora se adapta al contenedor Flex */
.editorial-card { 
    display: flex;
    flex-direction: column;
    flex: 1 1 300px; 
    max-width: 360px; 
    width: 100%;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(5,5,5,0.8) 100%); 
    border: 1px solid var(--line); 
    border-radius: 8px; 
    padding: 40px 32px; 
    text-align: center; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

/* Excepción para las tarjetas de "Beneficios" */
.proof-grid .editorial-card {
    max-width: 100%;
}

.card-icon {
    display: flex;
    justify-content: center; 
    margin-bottom: 24px;
}
.card-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
}

.editorial-card h3 { 
    font-family: var(--font-title); 
    font-size: 1.4rem; 
    margin-bottom: 12px; 
    color: var(--text-main); 
}
.editorial-card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    flex-grow: 1; 
}

@media (hover: hover) {
    .editorial-card:hover { 
        transform: translateY(-8px); 
        border-color: rgba(197, 163, 103, 0.4); 
        background: rgba(20,20,20,0.8); 
    }
}

.testimonial-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.testimonial-strip p {
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    color: var(--text-muted);
    text-align: left;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion { 
    border-top: 1px solid var(--line); 
    text-align: left; 
    max-width: 800px; 
    margin: 0 auto; 
}
.faq-details { border-bottom: 1px solid var(--line); }
.faq-summary { 
    list-style: none; 
    cursor: pointer; 
    padding: 24px 0; 
    font-family: var(--font-title); 
    font-size: 1.2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-content { 
    padding-bottom: 24px; 
    color: var(--text-muted); 
}
.faq-details[open] .icon { 
    transform: rotate(45deg); 
    transition: transform 0.3s; 
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================= */
.application-form { 
    max-width: 800px; 
    margin: 40px auto; 
    text-align: left; 
}
.application-form label { 
    display: flex; 
    flex-direction: column; 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    gap: 8px; 
    margin-bottom: 24px; 
    font-weight: 500;
}
.application-form input, .application-form textarea { 
    width: 100%; 
    padding: 16px 0; 
    border: none; 
    border-bottom: 1px solid var(--line); 
    background: transparent; 
    color: var(--text-main); 
    font-family: var(--font-body); 
    font-size: 1rem; 
    appearance: none; 
    -webkit-appearance: none;
    border-radius: 0;
    transition: border-color 0.3s;
}
.application-form input:focus, .application-form textarea:focus { 
    border-bottom-color: var(--accent); 
    outline: none; 
}
.form-error-msg { 
    margin-top: 20px; 
    padding: 16px; 
    border: 1px solid #d9534f; 
    background: rgba(217, 83, 79, 0.1); 
    color: #fff; 
    display: none; 
    border-radius: var(--radius); 
}

/* ==========================================================================
   FOOTER (Con iconos y legales)
   ========================================================================== */
.footer { 
    border-top: 1px solid var(--line); 
    padding: 48px 24px; 
    text-align: center; 
}
.social-links { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 32px; 
    margin-bottom: 24px; 
}
.social-links a { 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted); 
    text-decoration: none; 
    transition: color 0.3s, transform 0.3s; 
}
.social-links a:hover { 
    color: var(--text-main); 
    transform: translateY(-2px);
}

.copyright { color: #555; font-size: 0.8rem; }
.legal-links a { transition: color 0.3s; }
.legal-links a:hover { color: var(--text-muted) !important; }

/* ==========================================================================
   ANIMACIONES Y MEDIA QUERIES
   ========================================================================== */
.fade-in { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: opacity, transform; 
}
.fade-in.show { 
    opacity: 1; 
    transform: translateY(0); 
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero-cta-group { 
        flex-direction: column; 
        width: 100%; 
        gap: 16px; 
    }
    .cta { width: 100%; }
    
    .benefit-list { 
        flex-direction: column; 
        align-items: stretch;
    }
    .benefit-list li {
        text-align: center;
        border-radius: 8px;
    }

    .testimonial-strip {
        grid-template-columns: 1fr;
    }

    /* FORZAMOS LA ALINEACIÓN HORIZONTAL EN MÓVILES PARA LOS ICONOS SOCIALES */
    .social-links {
        flex-direction: row; /* En fila horizontal siempre */
        gap: 24px; /* Espacio cómodo para dedos sin romper la fila */
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
}
