/* ===========================================================
   Montaña Libre — paleta inspirada en el logo
   amarillo sol · verde bosque · terracota · crema
   =========================================================== */
:root {
    --amarillo: #f4e740;          /* amarillo exacto del logo (muestreado) */
    --amarillo-header: #f3e03e;   /* amarillo del header */
    --amarillo-suave: #fbf5b0;
    --verde: #3f7d4f;
    --verde-claro: #7fbf5b;    /* montaña clara del logo */
    --verde-osc: #2c5a39;
    --teal: #2d8c8c;           /* subtítulo del logo */
    --terracota: #e58a2a;      /* sol/picos del logo */
    --crema: #fbf6ea;
    --tinta: #2a2620;
    --gris: #6f6a60;
    --sombra: 0 10px 30px rgba(44, 90, 57, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--tinta);
    background: var(--crema);
    line-height: 1.65;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }

/* ---------- NAV ---------- */
.ml-nav {
    position: sticky; top: 0; z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 4px 14px rgba(44, 90, 57, .10);
}
.ml-nav__inner {
    max-width: 1100px; margin: 0 auto; padding: .25rem 1.2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.ml-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
/* Logo recortado al contenido. Su fondo amarillo coincide con el header,
   así que se funde y se ve grande y legible en todos los tamaños. */
.ml-brand__logo { height: clamp(62px, 11vw, 96px); width: auto; display: block; }
.ml-brand__mark { font-size: 1.5rem; }
.ml-brand__name {
    font-family: 'Pacifico', cursive;
    color: var(--terracota); font-size: 1.5rem;
}
.ml-nav__links {
    list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0;
    align-items: center;
}
.ml-nav__links a {
    text-decoration: none; color: var(--verde-osc);
    font-weight: 700; font-size: .98rem;
}
.ml-nav__links a:hover { color: var(--terracota); }
.ml-nav__cta {
    background: var(--verde); color: #fff !important;
    padding: .45rem 1rem; border-radius: 999px;
}
.ml-nav__cta:hover { background: var(--verde-osc); }
.ml-nav__toggle, .ml-nav__burger { display: none; }

/* ---------- HERO ---------- */
.ml-hero {
    position: relative;
    min-height: 78vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(242,197,49,.35), transparent 45%),
        linear-gradient(160deg, var(--verde-osc) 0%, var(--verde) 55%, #4c8f5d 100%);
}
.ml-hero__overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 80% 110%, rgba(0,0,0,.35), transparent 60%);
    pointer-events: none;
}
.ml-hero__content { position: relative; max-width: 760px; padding: 4rem 1.5rem; }
.ml-hero__kicker {
    text-transform: uppercase; letter-spacing: .22em;
    font-weight: 700; font-size: .8rem; color: var(--amarillo);
    margin: 0 0 .6rem;
}
.ml-hero__title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(3rem, 9vw, 6rem);
    margin: 0; text-shadow: 0 6px 24px rgba(0,0,0,.3);
    color: #fff;
}
.ml-hero__sub { font-size: 1.2rem; margin: 1rem auto 2rem; max-width: 560px; }
.ml-hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.ml-hero__place { margin-top: 1.8rem; font-weight: 700; opacity: .95; }

/* ---------- BOTONES ---------- */
.ml-btn {
    display: inline-block; text-decoration: none; font-weight: 800;
    padding: .8rem 1.6rem; border-radius: 999px; transition: transform .15s, background .2s;
}
.ml-btn:hover { transform: translateY(-2px); }
.ml-btn--solid { background: var(--amarillo); color: var(--tinta); }
.ml-btn--solid:hover { background: #ffd451; }
.ml-btn--ghost { border: 2px solid #fff; color: #fff; }
.ml-btn--ghost:hover { background: rgba(255,255,255,.15); }
.ml-btn--lg { font-size: 1.1rem; padding: 1rem 2.2rem; }
.ml-btn--wa { background: #25D366; color: #fff; }
.ml-btn--wa:hover { background: #1ebe5a; }
.ml-btn--cat { background: var(--verde-osc); color: #fff; }
.ml-btn--cat:hover { background: #234a2e; }

/* ---------- PILARES ---------- */
.ml-pilares {
    max-width: 1100px; margin: -3.5rem auto 0; padding: 0 1.2rem;
    position: relative; z-index: 10;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.ml-pilar {
    background: #fff; border-radius: 18px; padding: 1.6rem 1.3rem;
    box-shadow: var(--sombra); text-align: center;
}
.ml-pilar__icono { font-size: 2.3rem; }
.ml-pilar h3 { color: var(--verde-osc); font-size: 1.1rem; margin-top: .5rem; }
.ml-pilar p { color: var(--gris); font-size: .95rem; margin: 0; }

/* ---------- ESCUELA INVERNAL (destacado) ---------- */
.ml-nav__destacado { color: var(--terracota) !important; }
.ml-invierno {
    padding: 4rem 1.2rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(45,140,140,.45), transparent 45%),
        linear-gradient(160deg, #233e30 0%, var(--verde-osc) 60%, #1d3326 100%);
    color: #fff;
}
.ml-invierno__inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.ml-invierno__badge {
    display: inline-block; background: var(--amarillo); color: var(--tinta);
    font-weight: 800; font-size: .85rem; padding: .4rem 1.1rem; border-radius: 999px;
    margin-bottom: 1rem;
}
.ml-invierno h2 { font-size: clamp(1.9rem, 5vw, 3rem); color: #fff; }
.ml-invierno__gancho {
    max-width: 720px; margin: 1rem auto .6rem; font-size: 1.25rem; font-weight: 700;
    color: var(--amarillo);
}
.ml-invierno__bajada { max-width: 760px; margin: 0 auto 2rem; font-size: 1.08rem; opacity: .95; }
.ml-invierno__datos {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 2.5rem;
}
.ml-invierno__datos span {
    background: rgba(255,255,255,.12); padding: .5rem 1rem; border-radius: 12px;
    font-weight: 700; font-size: .95rem;
}
.ml-invierno__sub { color: var(--amarillo); font-size: 1.2rem; margin-bottom: 1rem; }
.ml-invierno__temas {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem;
}
.ml-invierno__tema {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    padding: .45rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
}
.ml-semanas {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem; margin-bottom: 1.8rem;
}
.ml-semana {
    background: #fff; color: var(--tinta); border-radius: 16px; padding: 1.6rem 1rem;
    box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.ml-semana h4 { margin: 0 0 .25rem; color: var(--verde-osc); font-size: 1.25rem; }
.ml-semana__lema { margin: 0 0 .6rem; font-size: .85rem; color: var(--teal); font-weight: 700; }
.ml-semana__edad {
    display: inline-block; background: var(--amarillo-suave); color: var(--tinta);
    font-weight: 700; font-size: .78rem; padding: .15rem .7rem; border-radius: 999px;
}
.ml-semana__valor {
    display: block; margin-top: .8rem; font-size: 1.7rem; font-weight: 800; color: var(--terracota);
}
.ml-semana__prog { margin-top: 1rem; text-align: left; }
.ml-semana__prog summary {
    cursor: pointer; font-weight: 800; color: var(--teal);
    text-align: center; list-style: none; padding: .3rem;
}
.ml-semana__prog summary::-webkit-details-marker { display: none; }
.ml-semana__prog summary::after { content: " ▾"; }
.ml-semana__prog[open] summary::after { content: " ▴"; }
.ml-semana__prog ul { list-style: none; margin: .6rem 0 0; padding: 0; }
.ml-semana__prog li { padding: .55rem 0; border-top: 1px dashed #e0d6bd; font-size: .88rem; }
.ml-semana__fecha { display: block; font-weight: 800; color: var(--verde-osc); font-size: .8rem; }
.ml-semana__tema { display: block; font-weight: 600; }
.ml-semana__loc { display: block; color: var(--gris); font-size: .78rem; }
.ml-invierno__notas { font-weight: 600; opacity: .92; margin-bottom: 1.6rem; }

/* ---------- SECCIONES ---------- */
.ml-section { padding: 5rem 1.2rem; }
.ml-section--cream { background: #fff; }
.ml-section--forest { background: linear-gradient(160deg, var(--verde-osc), var(--verde)); color: #fff; }
.ml-section__inner { max-width: 1100px; margin: 0 auto; }
.ml-narrow { max-width: 760px; }
.ml-eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .18em;
    font-weight: 800; font-size: .78rem; color: var(--terracota);
    margin-bottom: .5rem;
}
.ml-eyebrow--light { color: var(--amarillo); }
.ml-section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: inherit; }
.ml-section--cream h2 { color: var(--verde-osc); }
.ml-lead { font-size: 1.2rem; font-weight: 600; }
.ml-cita {
    margin: 2rem 0 0; padding: 1.2rem 1.6rem; border-left: 5px solid var(--terracota);
    background: var(--crema); border-radius: 0 14px 14px 0;
    font-size: 1.15rem; font-style: italic; color: var(--verde-osc); line-height: 1.6;
}

/* ---------- CARDS EXPERIENCIAS ---------- */
.ml-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem; margin-top: 2rem;
}
.ml-card {
    background: var(--crema); border-radius: 18px; padding: 1.7rem;
    border: 1px solid #efe7d2; transition: transform .18s, box-shadow .18s;
}
.ml-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.ml-card__icono { font-size: 2.2rem; }
.ml-card h3 { color: var(--terracota); margin: .4rem 0 .2rem; }
.ml-card__edades {
    display: inline-block; background: var(--amarillo-suave); color: var(--tinta);
    font-weight: 700; font-size: .78rem; padding: .15rem .7rem; border-radius: 999px;
}
.ml-card__bajada { font-weight: 600; margin: .8rem 0 .4rem; }
.ml-card__detalle { color: var(--gris); font-size: .92rem; margin: 0; }

/* ---------- PERSONA (Liliana) ---------- */
.ml-persona { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
.ml-persona__foto {
    flex: 0 0 auto;
    width: 200px; height: 200px; border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--amarillo);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.ml-persona__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-persona__texto { flex: 1; min-width: 260px; }
.ml-persona__rol { font-weight: 700; color: var(--amarillo); margin-top: -.3rem; }

/* ---------- TAGS ---------- */
.ml-tags { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.ml-tag {
    background: var(--amarillo-suave); color: var(--verde-osc);
    font-weight: 700; padding: .5rem 1rem; border-radius: 999px; font-size: .95rem;
}

/* ---------- CTA ---------- */
.ml-cta {
    text-align: center; padding: 5rem 1.2rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(242,197,49,.4), transparent 55%),
        var(--terracota);
    color: #fff;
}
.ml-cta__inner { max-width: 640px; margin: 0 auto; }
.ml-cta h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.ml-cta p { font-size: 1.15rem; margin-bottom: 2rem; }
.ml-cta__botones { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.ml-cta__mail { margin-top: 1.4rem; font-size: 1rem; }
.ml-cta__mail a { color: #fff; font-weight: 700; }

/* ---------- GALERÍA ---------- */
.ml-galeria {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem; margin-top: 2rem;
}
.ml-galeria__item {
    margin: 0; border-radius: 16px; overflow: hidden;
    aspect-ratio: 4 / 3; box-shadow: var(--sombra);
    border: 3px solid var(--amarillo);
}
.ml-galeria__item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .3s ease;
}
.ml-galeria__item:hover img { transform: scale(1.06); }

/* ---------- MAPA ---------- */
.ml-mapa {
    margin-top: 2rem; border-radius: 18px; overflow: hidden;
    box-shadow: var(--sombra); border: 4px solid var(--amarillo);
    line-height: 0;
}
.ml-mapa iframe { width: 100%; height: 360px; border: 0; display: block; }
.ml-mapa__dir { margin-top: .9rem; font-weight: 600; }
.ml-mapa__dir a { color: var(--terracota); }

/* ---------- CALENDARIO ---------- */
.ml-meses {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.4rem; margin-top: 2rem;
}
.ml-mes {
    background: var(--crema); border-radius: 18px; padding: 1.5rem;
    border: 1px solid #efe7d2; box-shadow: var(--sombra);
}
.ml-mes__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.ml-mes__icono { font-size: 2.2rem; }
.ml-mes__head h3 { margin: 0; color: var(--verde-osc); font-size: 1.4rem; }
.ml-mes__tema {
    display: inline-block; background: var(--teal); color: #fff;
    font-weight: 700; font-size: .78rem; padding: .1rem .7rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .08em;
}
.ml-mes__lista { list-style: none; margin: 0; padding: 0; }
.ml-mes__lista li {
    display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem;
    padding: .7rem 0; border-top: 1px dashed #e0d6bd;
}
.ml-mes__fecha {
    grid-row: span 2; align-self: start;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--amarillo); color: var(--verde-osc);
    display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.ml-mes__act { font-weight: 600; font-size: .95rem; }
.ml-mes__hora { color: var(--gris); font-size: .85rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.ml-faq { margin-top: 2rem; }
.ml-faq__item {
    background: var(--crema); border: 1px solid #efe7d2; border-radius: 14px;
    padding: 1rem 1.3rem; margin-bottom: .9rem;
}
.ml-faq__item summary {
    cursor: pointer; font-weight: 700; color: var(--verde-osc); font-size: 1.05rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.ml-faq__item summary::-webkit-details-marker { display: none; }
.ml-faq__item summary::after { content: "+"; color: var(--terracota); font-size: 1.5rem; font-weight: 800; }
.ml-faq__item[open] summary::after { content: "−"; }
.ml-faq__item p { margin: .8rem 0 0; color: var(--tinta); }

/* ---------- WHATSAPP FLOTANTE ---------- */
.ml-whatsapp {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366;
    display: grid; place-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    transition: transform .18s, box-shadow .18s;
    animation: ml-wa-pulse 2.6s ease-out infinite;
}
.ml-whatsapp:hover { transform: scale(1.08); box-shadow: 0 10px 24px rgba(0,0,0,.34); }
@keyframes ml-wa-pulse {
    0%   { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.55); }
    70%  { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 520px) {
    .ml-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- FOOTER ---------- */
.ml-footer { background: var(--verde-osc); color: #d9e6d6; text-align: center; padding: 2.5rem 1.2rem; }
.ml-footer__logo {
    width: 140px; height: 140px; object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--amarillo);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    margin-bottom: .8rem;
}
.ml-footer p { margin: .3rem 0; font-size: .92rem; }
.ml-footer__credit { margin-top: 1rem !important; font-size: .85rem; opacity: .8; }
.ml-footer__credit a { color: var(--amarillo); font-weight: 700; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
    .ml-pilares { grid-template-columns: repeat(2, 1fr); }
    .ml-nav__burger { display: block; font-size: 1.6rem; cursor: pointer; color: var(--verde-osc); }
    .ml-nav__links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, .08);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .ml-nav__links li { width: 100%; text-align: center; padding: .2rem 0; }
    .ml-nav__toggle:checked ~ .ml-nav__links { max-height: 420px; padding: .8rem 0; }
    .ml-nav__cta { display: inline-block; margin: .4rem 0; }
}
@media (max-width: 520px) {
    .ml-pilares { grid-template-columns: 1fr; }
    .ml-persona { justify-content: center; text-align: center; }
}
