@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

/* ============================================================
   TUOI — Base global
   Paleta: --morado #C563D2 · --verde-menta #95CABA
           --amarillo #D5D034 · --naranja #E39435
           --fondo-beige #F8F5E6 · --texto-oscuro #2A2C29
   Archivos específicos:  home.css · carta.css · quienes-somos.css
                          eventos.css · contacto.css
   ============================================================ */

/* --- VARIABLES --- */
:root {
    --morado:            #C563D2;
    --verde-menta:       #95CABA;
    --amarillo:          #D5D034;
    --naranja:           #E39435;
    --fondo-beige:       #F8F5E6;
    --texto-oscuro:      #2A2C29;
    --fondo-oscuro:      #2A2C29;   /* fondo de secciones oscuras */
    --blanco:            #FFFFFF;
    --gris-suave:        #f0ede0;
    --navbar-h:          72px;
    /* Carta */
    --carta-verde:       #c8d3b0;
    --carta-verde-borde: #6b7257;
    --carta-tinta:       #3d4636;
    --carta-tinta-2:     #5d6453;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', sans-serif; background-color: var(--fondo-beige); color: var(--texto-oscuro); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img   { display: block; max-width: 100%; }
a     { color: inherit; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--navbar-h);
    background-color: var(--fondo-beige);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s, background-color 0.3s;
}

.navbar.scrolled {
    background-color: rgba(248, 245, 230, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

.logo     { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 38px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--texto-oscuro);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-link:hover                           { color: var(--naranja); }
.nav-link.active                          { color: var(--naranja); }
.nav-dropdown.active > .dropdown-trigger  { color: var(--naranja); }

.arrow { font-size: 0.65rem; transition: transform 0.25s ease; display: inline-block; }

/* ---- DROPDOWN ---- */
.nav-dropdown { position: relative; }

.nav-dropdown:hover .arrow,
.nav-dropdown.open .arrow { transform: rotate(180deg); }

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: 8px;
    pointer-events: auto;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 210px;
    background: var(--blanco);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 300;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--texto-oscuro);
    transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: var(--fondo-beige); color: var(--naranja); }

.dropdown-item-featured { font-weight: 800 !important; color: var(--naranja) !important; }
.dropdown-divider { height: 1px; background: rgba(0,0,0,0.07); margin: 0.4rem 0.5rem; }

/* Enlace "Ver todos los eventos": oculto en desktop (el trigger ya navega allí),
   visible en móvil donde el trigger solo abre/cierra el dropdown */
.dropdown-item-eventos-all { display: none !important; }
.dropdown-divider--mobile  { display: none !important; }

/* ---- TOGGLE IDIOMA ---- */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.85rem;
    border: 1.5px solid rgba(42,44,41,0.2);
    border-radius: 20px;
    background: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--texto-oscuro);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, color 0.2s;
    margin-left: 0.5rem;
}
.lang-toggle:hover { border-color: var(--naranja); color: var(--naranja); }
.lang-active { color: var(--naranja); }
.lang-sep    { opacity: 0.3; }

/* ---- HAMBURGUESA ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 300;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--fondo-oscuro);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8.75px)  rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.82rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary  { background-color: var(--naranja); color: var(--blanco); }
.btn-primary:hover { background-color: #cf842b; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,148,53,0.35); }

.btn-secondary { background-color: transparent; color: var(--blanco); border: 2px solid rgba(255,255,255,0.6); }
.btn-secondary:hover { background-color: var(--blanco); color: var(--texto-oscuro); border-color: var(--blanco); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--texto-oscuro);
    transition: gap 0.25s, color 0.25s;
}
.link-arrow:hover { gap: 0.9rem; color: var(--naranja); }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
    display: inline-block;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
    color: var(--naranja);
}

/* En page-hero (fondo oscuro) → verde menta */
.page-hero .section-label { color: var(--verde-menta); }

/* ============================================================
   PAGE HERO (hero interior compartido)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #2A2C29 0%, #3a3d38 60%, #2A2C29 100%);
    padding: 5rem 5% 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--blanco);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}

.page-hero p {
    color: rgba(255,255,255,0.55);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    max-width: 620px;
    margin: 0 auto;
    letter-spacing: 0.02em;
    line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--fondo-oscuro);
    color: var(--fondo-beige);
    padding: 4rem 5% 1.5rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 3rem;
    align-items: start;
}

.footer-logo { width: 155px; height: auto; margin-bottom: 1rem; }

.footer-brand p { color: rgba(255,255,255,0.38); font-size: 0.86rem; line-height: 1.65; }

.footer-nav,
.footer-info,
.footer-social { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-nav h3,
.footer-info h3,
.footer-social h3 {
    font-family: 'Courier Prime', 'Courier New', monospace;
    color: var(--verde-menta);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.6rem;
}

.footer-nav a,
.footer-info p,
.footer-social a {
    color: rgba(255,255,255,0.42);
    text-decoration: none;
    font-size: 0.87rem;
    line-height: 1.7;
    transition: color 0.2s;
}
.footer-nav a:hover,
.footer-social a:hover { color: var(--naranja); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
}

.footer-copy { margin: 0; color: rgba(255,255,255,0.32); }

.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.footer-legal-links a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--naranja); }
.footer-legal-sep { color: rgba(255,255,255,0.18); user-select: none; }

/* ============================================================
   FADE-IN ON SCROLL (global)
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease-out, transform .7s ease-out;
    will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .fade-up.visible { opacity: 1; transform: none; transition: none; }
}

/* Stagger en grupos */
.feature-card.fade-up:nth-child(2),
.value-item.fade-up:nth-child(2),
.ev-why__bullet.fade-up:nth-child(2),
.page-hero > *.fade-up:nth-child(2)  { transition-delay: .08s; }

.feature-card.fade-up:nth-child(3),
.value-item.fade-up:nth-child(3),
.ev-why__bullet.fade-up:nth-child(3),
.page-hero > *.fade-up:nth-child(3)  { transition-delay: .16s; }

.feature-card.fade-up:nth-child(4),
.value-item.fade-up:nth-child(4),
.ev-why__bullet.fade-up:nth-child(4) { transition-delay: .24s; }

/* ── Instagram CTA ───────────────────────────────────────────── */
.section-ig-cta {
    background: var(--gris-suave);
    border-top: 3px solid var(--naranja);
    border-bottom: 1px solid rgba(42,44,41,0.08);
    padding: 1.4rem 5%;
}
.section-ig-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.1rem 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.section-ig-cta__icon {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--naranja);
    flex-shrink: 0;
}
.section-ig-cta__text {
    font-size: 0.97rem;
    color: var(--texto-oscuro);
    line-height: 1.4;
    flex: 1;
    min-width: 180px;
    max-width: 560px;
}
.section-ig-cta .btn-primary {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
    background: transparent;
    color: var(--naranja);
    border: 1.5px solid var(--naranja);
    box-shadow: none;
}
.section-ig-cta .btn-primary:hover {
    background: var(--naranja);
    color: var(--blanco);
    transform: none;
    box-shadow: none;
}
@media (max-width: 600px) {
    .section-ig-cta__inner { flex-direction: column; text-align: center; }
    .section-ig-cta__text  { max-width: 100%; }
}

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-page { max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem 4rem; line-height: 1.7; color: #2a2a2a; }
.legal-page h2 { margin-top: 2.4rem; margin-bottom: .8rem; font-size: 1.3rem; font-weight: 700; }
.legal-page p  { margin: 0 0 1rem; }
.legal-page ul { margin: 0 0 1.2rem 1.4rem; padding: 0; }
.legal-page li { margin-bottom: .35rem; }
.legal-page a  { color: #b06a2c; text-decoration: underline; }
.legal-page code { background: #f3efe9; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .93rem; }
.legal-table th, .legal-table td { border: 1px solid #e3ddd2; padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal-table th { background: #f7f2ea; font-weight: 600; }
.legal-updated  { color: #777; font-size: .9rem; margin-top: 2rem; }

/* ============================================================
   RESPONSIVE — global (nav + footer)
   ============================================================ */

@media (max-width: 1100px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Hamburguesa */
    .menu-toggle { display: flex; }

    /* Nav panel lateral */
    .nav-links {
        position: fixed;
        top: var(--navbar-h);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-h));
        background: var(--fondo-beige);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 7%;
        gap: 0;
        transition: left 0.35s ease;
        overflow-y: auto;
        z-index: 150;
    }
    .nav-links.active { left: 0; }

    .nav-link {
        font-size: 0.95rem;
        padding: 1rem 0.5rem;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.07);
    }

    .nav-dropdown        { width: 100%; }
    .nav-dropdown::after { display: none; }

    .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 0.5rem;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: max-height 0.35s ease-out;
        margin-left: 1rem;
    }
    .nav-dropdown.open .dropdown-menu { max-height: 600px; }

    .dropdown-menu a {
        display: block;
        padding: 0.7rem 0.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        border-radius: 0;
        font-size: 0.8rem;
        margin: 0;
    }
    .dropdown-menu a:hover { background: transparent; color: var(--naranja); }
    .dropdown-divider      { margin: 0.3rem 0; }

    .lang-toggle { margin: 1rem 0 0 0.5rem; }

    /* Enlace "Ver todos los eventos" — visible solo en móvil */
    .dropdown-item-eventos-all { display: block !important; font-weight: 700 !important; color: var(--naranja) !important; }
    .dropdown-divider--mobile  { display: block !important; }

    .footer         { margin-top: 4rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
    .footer-bottom      { justify-content: center; text-align: center; }
    .footer-legal-links { justify-content: center; }
}
