/* =========================================================================
   Programa Quiero Mi Barrio Las Quebradas — La Ligua
   Hoja de estilos institucional (sin dependencias de build)
   ========================================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --navy-900: #081229;
    --navy-800: #0d1b3e;
    --navy-700: #122a5c;
    --navy-600: #173672;
    --blue-700: #124a8f;
    --blue-600: #1a5cab;
    --blue-500: #2470c9;
    --blue-400: #5b9be0;
    --blue-100: #e7f0fb;
    --red: #e2231a;
    --red-600: #c1180f;
    --red-100: #fdecea;
    --green: #16a34a;
    --green-600: #128a3e;
    --green-100: #e7f7ee;
    --wa: #25d366;
    --wa-dark: #0f7a41;
    --orange: #e8890c;
    --orange-600: #cf7a0a;
    --orange-100: #fdf1e0;
    --amber: #f0b429;
    --ink: #0f1f3d;
    --ink-soft: #33456a;
    --muted: #5b6b86;
    --line: #e3e9f2;
    --bg: #ffffff;
    --bg-light: #f2f6fc;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 40px -24px rgba(13, 27, 62, .35);
    --shadow-lg: 0 34px 64px -34px rgba(13, 27, 62, .5);
    --container: 1220px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.25rem);
}

/* ----------------------------------------------------------- Botones ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-weight: 700;
    font-size: .95rem;
    padding: .85rem 1.4rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
    line-height: 1;
    white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 16px 30px -14px rgba(226, 35, 26, .8); }
.btn--red:hover { background: var(--red-600); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-600); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-600); }
.btn--spotify { background: #1db954; color: #fff; }
.btn--spotify:hover { background: #17a74a; }
.btn--block { width: 100%; padding: .95rem 1rem; }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }

/* ------------------------------------------------------------ Topbar ---- */
.topbar {
    background: var(--navy-800);
    color: #cbd6ea;
    font-size: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 40px;
    padding-block: .35rem;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: 15px; height: 15px; flex: none; opacity: .9; }
.topbar__item--center { color: #aebbd6; }
.topbar__link:hover { color: #fff; }

/* ------------------------------------------------------------ Header ---- */
.site-header {
    position: sticky;
    top: 10px;
    z-index: 60;
    width: min(1180px, calc(100% - 1.6rem));
    margin: 10px auto;
    background: linear-gradient(135deg, #f8b91e 0%, #f0a606 100%);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 20px;
    box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .6);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 74px;
    padding-block: .55rem;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { height: 44px; width: 44px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.04; color: #fff; }
.brand__text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text small { font-size: .72rem; font-weight: 600; opacity: .95; }
.brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .5rem .85rem;
    height: 54px;
    box-shadow: 0 8px 20px -16px rgba(13, 27, 62, .6);
}
.brand__logo img { height: 100%; width: auto; max-width: 168px; object-fit: contain; }
.brand__logo--qmb img { max-width: 190px; }
.brand__divider { width: 1px; height: 46px; background: var(--line); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 1.65rem; }
.nav__list a {
    position: relative;
    font-size: .92rem;
    font-weight: 700;
    color: #ffffff;
    padding: .35rem 0;
    transition: opacity .2s ease;
}
.nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -.15rem;
    height: 2px;
    background: #ffffff;
    transition: right .25s ease;
}
.nav__list a:hover { opacity: .82; }
.nav__list a:hover::after,
.nav__list a.is-active::after { right: 0; }
.nav__list a.is-active { opacity: 1; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .18);
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    margin-left: auto;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* -------------------------------------------------------------- Hero ---- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(43, 106, 190, .55), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(120, 60, 140, .35), transparent 62%),
        linear-gradient(140deg, #12356f 0%, #0d1b3e 58%, var(--navy-900) 100%);
    color: #fff;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    z-index: -1;
}
.hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -62px;
    height: 120px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.35fr .95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5rem, 9vw, 7rem);
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    font-weight: 600;
    color: #dbe6fb;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: .45rem .95rem;
    backdrop-filter: blur(6px);
}
.badge__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .22);
}
.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.55rem);
    font-weight: 900;
    margin: 1.4rem 0 1.1rem;
    letter-spacing: -.03em;
}
.hero h1 span {
    display: block;
    background: linear-gradient(96deg, #8fc7ff 0%, #a9c9ff 38%, #ffb99f 78%, #ff9e8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    color: #c5d4ee;
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    max-width: 560px;
    line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.stats {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}
.hero-aside { display: grid; gap: 1.1rem; align-content: center; }
.hero-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: .6rem;
    min-height: 116px;
    box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .65);
}
.hero-logo img { max-height: 100px; width: auto; max-width: 100%; object-fit: contain; }
.stats__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #cdd9ef;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    margin-bottom: 1.15rem;
}
.stats__title svg { width: 20px; height: 20px; }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 1rem 1.05rem;
}
.stat__value { font-size: 1.65rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat__label { font-size: .8rem; color: #a9bcda; margin-top: .4rem; }
.stat--amber .stat__value { color: var(--amber); }
.stat--blue .stat__value { color: #8ec5ff; }
.stat--green .stat__value { color: #4ade80; }
.stat--pink .stat__value { color: #f6a7b8; }

/* ----------------------------------------------------------- Sección ---- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--navy-800); color: #fff; }
.section__head { max-width: 780px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.eyebrow {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: .9rem;
}
.eyebrow--red { color: var(--red); }
.eyebrow--amber { color: #e0a52a; }
.section--dark .eyebrow { color: #e0a52a; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: inherit; }
.section__sub { color: var(--muted); font-size: clamp(.98rem, 1.3vw, 1.08rem); margin-top: 1rem; line-height: 1.7; }
.section--dark .section__sub { color: #b9c6de; }

/* ------------------------------------------------------------- Tarjeta -- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ------------------------------------------------------------ Historia -- */
.historia__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.historia__card { display: flex; flex-direction: column; padding: 1.6rem; height: 100%; }
.historia__card--media { padding: 0; }

.book {
    position: relative;
    border-radius: 12px;
    padding: 1.1rem 1rem;
    min-height: 226px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(150deg, #1f5fb0 0%, #123a7a 55%, #0c2a5c 100%);
    box-shadow: 0 24px 34px -20px rgba(13, 27, 62, .8);
    overflow: hidden;
}
.book::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120px 120px at 80% 20%, rgba(255, 255, 255, .18), transparent 70%),
        radial-gradient(160px 90px at 10% 90%, rgba(226, 35, 26, .35), transparent 70%);
    opacity: .9;
}
.book > * { position: relative; }
.book__kicker {
    align-self: flex-start;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    padding: .3rem .55rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.book__title { font-size: 1.18rem; font-weight: 800; line-height: 1.2; }
.book__sub { font-size: .76rem; color: #c9daf6; margin-top: .35rem; }
.book__foot { font-size: .72rem; color: #b7c9e8; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: .6rem; }

.book-main { display: grid; grid-template-columns: 170px 1fr; gap: 1.4rem; align-items: start; }
.book-cover {
    position: relative;
    width: 100%;
    max-width: 170px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 26px 40px -22px rgba(13, 27, 62, .85);
    background: #fff;
}
.book-cover img { width: 100%; height: auto; display: block; }
.book-cover__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, .93);
    color: var(--navy-800);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .26rem .45rem;
    border-radius: 6px;
    box-shadow: 0 8px 16px -10px rgba(13, 27, 62, .7);
}
.book-cover__badge svg { width: 11px; height: 11px; }
.book-cover__mark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .93);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-cover__mark svg { width: 13px; height: 13px; }
.book-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.7rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}
.book-file { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--muted); }
.book-file svg { color: var(--red); }
.book-file em { font-style: normal; color: var(--orange-600); font-weight: 700; }
.btn--disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.media-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--muted);
}
.media-foot span { display: inline-flex; align-items: center; gap: .5rem; }
.media-foot svg { width: 17px; height: 17px; color: var(--ink-soft); }
.wip-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9a5b06;
    background: var(--orange-100);
    border: 1px solid #f4d7a4;
    border-radius: 999px;
    padding: .4rem .9rem;
}
.wip-badge svg { width: 15px; height: 15px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .74rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .3rem .7rem;
    background: var(--blue-100);
    color: var(--blue-700);
}
.pill--blue { background: var(--blue-100); color: var(--blue-700); }
.pill--green { background: var(--green-100); color: var(--green-600); }
.pill--orange { background: var(--orange-100); color: var(--orange-600); }
.pill--red { background: var(--red-100); color: var(--red-600); }

.historia__body h3 { font-size: 1.42rem; margin-bottom: .7rem; }
.historia__body p { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.checklist { display: grid; gap: .6rem; margin-top: 1.1rem; }
.checklist li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--ink-soft); }
.checklist li svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.check--green svg { color: var(--green); }
.check--blue svg { color: var(--blue-500); }
.check--amber svg { color: var(--orange); }

.media { position: relative; }
.media img { width: 100%; height: 300px; object-fit: cover; }
.media__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 34px -12px rgba(226, 35, 26, .9);
    border: 3px solid rgba(255, 255, 255, .85);
    transition: transform .2s ease;
}
.media__play svg { width: 26px; height: 26px; margin-left: 3px; }
.media__play:hover { transform: scale(1.08); }
.media__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem 1.3rem 1.1rem;
    background: linear-gradient(transparent, rgba(6, 14, 32, .92));
    color: #fff;
}
.media__tag {
    display: inline-flex;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--red);
    padding: .28rem .55rem;
    border-radius: 6px;
    margin-bottom: .55rem;
}
.media__overlay h4 { font-size: 1.05rem; }
.historia__card .historia__desc { padding: 1.4rem 1.5rem 1.5rem; }
.historia__desc h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.historia__desc p { color: var(--muted); font-size: .94rem; line-height: 1.7; }

/* -------------------------------------------------------------- Agenda -- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card--pad { padding: 1.7rem; display: flex; flex-direction: column; height: 100%; }
.icon-tile {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.05rem;
}
.icon-tile svg { width: 25px; height: 25px; }
.icon-tile--blue { background: var(--blue-100); color: var(--blue-600); }
.icon-tile--green { background: var(--green-100); color: var(--green); }
.icon-tile--orange { background: var(--orange-100); color: var(--orange); }
.card--pad h3 { font-size: 1.3rem; margin: .85rem 0 .6rem; }
.card--pad > p { color: var(--muted); font-size: .94rem; line-height: 1.7; }
.card--pad .checklist { margin: 1.15rem 0 1.4rem; }
.card--pad .btn { margin-top: auto; }

/* ----------------------------------------------------------- Proyectos -- */
.proyectos__grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 1.6rem; align-items: start; }
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.7rem;
}
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.panel__head h3 { font-size: 1.35rem; }
.panel__head p { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
.filters { display: flex; gap: .4rem; background: var(--bg-light); padding: .3rem; border-radius: 10px; }
.filters button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    padding: .42rem .85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s ease;
}
.filters button.is-active { background: #fff; color: var(--navy-800); box-shadow: 0 6px 14px -10px rgba(13, 27, 62, .7); }

.proyectos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.proyecto {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    transition: .2s ease;
    display: flex;
    flex-direction: column;
}
.proyecto:hover { border-color: #c9d7ee; box-shadow: var(--shadow); transform: translateY(-3px); }
.proyecto__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.proyecto__cat { font-size: .74rem; color: var(--muted); }
.proyecto h4 { font-size: 1rem; margin-bottom: .5rem; }
.proyecto p { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.proyecto__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--muted);
}
.proyecto__status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.proyecto__status svg { width: 15px; height: 15px; }
.status--done { color: var(--blue-600); }
.status--progress { color: var(--green); }

.panel--dark {
    background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
    color: #fff;
    border: 0;
    box-shadow: var(--shadow-lg);
}
.panel--dark .icon-tile { background: rgba(232, 137, 12, .18); color: var(--amber); }
.panel--dark .eyebrow { color: #f2c265; margin-bottom: .7rem; }
.panel--dark h3 { font-size: 1.5rem; line-height: 1.25; }
.panel--dark p { color: #c2cfe6; font-size: .93rem; line-height: 1.7; margin-top: .9rem; }
.panel--dark .checklist { margin: 1.4rem 0; }
.panel--dark .checklist li { color: #dbe4f4; }
.panel--dark .checklist li svg { color: var(--amber); }

/* ---------------------------------------------------------- Comunidad -- */
.grid-3--dark .card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: none;
    color: #fff;
}
.com-card { padding: 1.5rem; display: flex; flex-direction: column; height: 100%; position: relative; }
.com-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.com-card__head > svg { width: 22px; height: 22px; opacity: .55; }
.com-card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.com-card > p { color: #b7c5de; font-size: .92rem; line-height: 1.7; }

.player {
    margin-top: 1.2rem;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: .95rem;
    display: flex;
    gap: .85rem;
    align-items: center;
}
.player__btn {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}
.player__btn svg { width: 18px; height: 18px; margin-left: 2px; }
.player__info { flex: 1; min-width: 0; }
.player__title { font-size: .88rem; font-weight: 700; }
.player__sub { font-size: .75rem; color: #a9b8d4; margin-top: .15rem; }
.player__bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .18); margin-top: .7rem; overflow: hidden; }
.player__bar span { display: block; height: 100%; width: 34%; background: var(--red); border-radius: 999px; }
.player__times { display: flex; justify-content: space-between; font-size: .72rem; color: #9fb0ce; margin-top: .35rem; }

.episodios__label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #93a4c4; margin: 1.2rem 0 .6rem; }
.episodio { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .75rem; border-radius: 10px; font-size: .85rem; color: #d5deef; transition: background .2s ease; }
.episodio:hover { background: rgba(255, 255, 255, .06); }
.episodio span { color: #93a4c4; font-size: .78rem; }

.social { display: grid; gap: .7rem; margin-top: 1.2rem; }
.social a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    transition: .2s ease;
}
.social a:hover { background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.social__icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.social__icon svg { width: 19px; height: 19px; }
.social__icon--fb { background: #1877f2; }
.social__icon--ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.social__icon--yt { background: #ff0000; }
.social__text { flex: 1; min-width: 0; }
.social__text b { display: block; font-size: .88rem; font-weight: 700; }
.social__text small { font-size: .76rem; color: #a9b8d4; }
.social a > svg { width: 16px; height: 16px; opacity: .5; }

.grid-3--dark .card--wa { background: linear-gradient(160deg, rgba(37, 211, 102, .18), rgba(15, 122, 65, .12)); border-color: rgba(37, 211, 102, .38); }
.grid-3--dark .card--wa .checklist { margin: 1.2rem 0 1.4rem; }
.grid-3--dark .card--wa .checklist li { color: #dae8de; }

/* ----------------------------------------------------------- Galería --- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-wip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .7rem;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
    border: 2px dashed #c9d7ee;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.gallery-wip__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--orange-100);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .4rem;
}
.gallery-wip__icon svg { width: 30px; height: 30px; }
.gallery-wip h3 { font-size: 1.4rem; }
.gallery-wip p { color: var(--muted); max-width: 480px; line-height: 1.7; }
.gallery__item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, rgba(6, 14, 32, .45));
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }

/* ------------------------------------------------------------ Footer --- */
.site-footer { background: var(--navy-800); color: #c6d2e7; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr;
    gap: 2.5rem;
    padding: clamp(2.8rem, 5vw, 4rem) 0 2.5rem;
}
.footer__brandcard {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: .9rem 1.1rem;
    margin-bottom: 1.2rem;
}
.footer__brandcard img { height: 72px; width: auto; object-fit: contain; }
.footer__brandcard .divider { width: 1px; height: 56px; background: var(--line); }
.site-footer p { font-size: .9rem; line-height: 1.7; color: #9fb0ce; }
.footer__title { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 1.1rem; }
.footer__list { display: grid; gap: .65rem; }
.footer__list a { font-size: .9rem; color: #c6d2e7; transition: color .2s ease; }
.footer__list a:hover { color: #fff; }
.footer__contact { display: grid; gap: .9rem; }
.footer__contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: #c6d2e7; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; color: var(--amber); }
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
    color: #8b9cbb;
}

/* --------------------------------------------------- WhatsApp flotante -- */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 34px -12px rgba(37, 211, 102, .8);
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------- Animación --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- Responsive --- */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero-aside { max-width: 560px; }
    .proyectos__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .topbar__item--center { display: none; }
}

@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        border-radius: 0 0 18px 18px;
        padding: 0 1.25rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease;
    }
    .nav.is-open { max-height: 420px; padding: 1rem 1.25rem 1.5rem; }
    .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
    .nav__list a { color: #38475f; padding: .7rem 0; border-bottom: 1px solid var(--line); }
    .nav__list a:hover { color: var(--blue-600); opacity: 1; }
    .nav__list a::after { display: none; }
    .site-header__inner { position: relative; min-height: 76px; }
    .grid-3 { grid-template-columns: 1fr; }
    .historia__grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .topbar__item--center { display: none; }
    .topbar__inner { justify-content: space-between; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .hero-logo { padding: .5rem; min-height: 88px; }
    .hero-logo img { max-height: 76px; }
    .book-main { grid-template-columns: 1fr; }
    .book-cover { margin: 0 auto; }
    .proyectos-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer__bottom { justify-content: center; text-align: center; }
    .footer__brandcard img { height: 54px; }
    .footer__brandcard .divider { height: 42px; }
}

@media (max-width: 480px) {
    .brand__img { height: 40px; max-width: 200px; }
    .hero h1 { font-size: 1.95rem; }
    .hero-logo { padding: .45rem; min-height: 76px; }
    .hero-logo img { max-height: 64px; }
    .stats__grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}
