/* 
   Theme: Tierra Dorada - Ethereal Light
   Author: Antigravity
   Updated: 2026-02-04
*/

:root {
    /* Paleta de Colores - Ethereal Light */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC; /* Slate 50 */
    --color-text: #0F172A;   /* Slate 900 */
    --color-text-muted: #475569; /* Slate 600 */
    
    --color-gold: #b08412;
    --color-gold-light: #FDE68A;
    --color-gold-hover: #926d0e;
    
    --color-celeste: #E0F2FE; /* Sky 100 */
    --color-celeste-dark: #0284C7; /* Sky 600 */
    
    --color-light: #FFFFFF;
    --color-dark: #0F172A;

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Overlay Mode (GHL Fix) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Clase maestra para romper el layout de GHL */
.app-overlay-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: var(--color-bg);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utilidades --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gold { color: var(--color-gold); }
.text-light { color: var(--color-light); }
.text-dark { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }

.section { padding: var(--spacing-lg) 0; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 1rem;
    color: var(--color-text);
}

.section-title .line {
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 1rem auto 0;
}

/* --- Navbar (Glassmorphism Light) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
}

.nav-links li { margin: 1rem 0; }

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-gold);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* --- Hero (Light Theme) --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Nuevo gradiente etéreo: Celeste muy suave a blanco cálido */
    background: radial-gradient(circle at top right, #E0F2FE 0%, #FFFFFF 50%, #FFFBEB 100%);
    color: var(--color-text);
    position: relative;
    padding: 6rem var(--spacing-md) 0; /* Padding top extra por navbar fija */
}

/* Decorative blobs for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(176, 132, 18, 0.05); /* Dorado muy tenue */
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1e293b; /* Slate 800 */
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background-image: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
    color: var(--color-light);
    font-weight: 500;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px -5px rgba(176, 132, 18, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(176, 132, 18, 0.5);
}

/* --- Cards (Programas) --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    background: var(--color-light);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(176, 132, 18, 0.2);
}

.card-program {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Banda superior dorada sutil */
    background: linear-gradient(to bottom, #FFFBEB 0%, #FFFFFF 20%); 
}

.card-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.card-content p {
    color: #64748b;
}

.card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    color: var(--color-gold);
    font-weight: 600;
    gap: 0.5rem;
}

.card-link:hover .arrow {
    transform: translateX(4px);
}

.arrow { transition: var(--transition-smooth); }

/* --- Section Accent (Antes Dark) --- */
.section-dark {
    /* Cambio radical: De oscuro a un celeste/gris muy suave */
    background-color: #F0F9FF; /* Sky 50 */
    color: var(--color-text);
}

.card-workshop {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-workshop h3 {
    color: #0f172a;
}
.card-workshop p {
    color: #475569;
}

.btn-outline {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 50px;
    margin-top: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(176, 132, 18, 0.3);
}

/* --- Regalos --- */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gift-item {
    text-align: center;
    padding: 2.5rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.gift-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.1);
}

.gift-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.link-text {
    margin-top: 1.5rem;
    display: inline-block;
    color: var(--color-gold);
    font-weight: 500;
    border-bottom: 2px solid rgba(176, 132, 18, 0.2);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.link-text:hover {
    border-bottom-color: var(--color-gold);
}

/* --- Footer --- */
.footer {
    background-color: #0F172A; /* Mantenemos oscuro para contraste final */
    color: #94a3b8;
    padding: 4rem 0 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Animaciones --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

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

/* --- Media Queries (Desktop) --- */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        gap: 2.5rem;
    }

    .menu-toggle { display: none; }

    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }

    .hero h1 { font-size: 4.5rem; }
    .section-title { font-size: 3.5rem; }
}