/* ===========================================================
   APEL TDF — Hoja de estilos (rediseño)
   Paleta editable abajo. Identidad: navy + celeste fueguino + ámbar.
   =========================================================== */
:root {
  --azul-900: #0a2540;
  --azul-800: #0c2e52;
  --azul-700: #103a66;
  --azul-500: #1d5fa8;
  --azul-300: #4b8fd6;
  --celeste:  #39a7e5;
  --celeste-claro: #8fd2f5;
  --ambar:    #f5a623;
  --ambar-d:  #e08e08;

  --tinta:    #15212e;
  --gris:     #576678;
  --linea:    #e6ecf3;
  --bg:       #ffffff;
  --bg-alt:   #f3f7fc;

  --radius:   18px;
  --radius-sm: 11px;
  --shadow-sm: 0 4px 14px rgba(16,58,102,.08);
  --shadow:   0 14px 38px rgba(16,58,102,.12);
  --shadow-lg: 0 28px 70px rgba(10,37,64,.22);
  --maxw:     1160px;

  --ff-title: "Sora", system-ui, sans-serif;
  --ff-body:  "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; font-size: calc(100% * var(--a11y-font, 1)); }
body {
  margin: 0; font-family: var(--ff-body); color: var(--tinta);
  background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--ff-title); line-height: 1.14; margin: 0 0 .4em; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.center { text-align: center; margin-top: 2.6rem; }
.hidden { display: none; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-title); font-weight: 600; font-size: .98rem;
  padding: .74rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--ambar), var(--ambar-d)); color: #2a1a00; box-shadow: 0 10px 24px rgba(245,166,35,.4); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(245,166,35,.5); }
.btn--ghost { background: transparent; border-color: var(--azul-300); color: var(--azul-700); }
.btn--ghost:hover { background: var(--azul-700); border-color: var(--azul-700); color: #fff; }
.btn--light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; color: var(--azul-900); }
.btn--lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1.05rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ===== Topbar ===== */
.topbar { background: var(--azul-900); color: #cfe0f2; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; flex-wrap: wrap; }
.topbar__item { opacity: .85; }
.topbar__social { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; }
.topbar__social a { font-weight: 600; color: #fff; }
.topbar__social a:hover { color: var(--ambar); }
.topbar__access { background: var(--celeste); color: var(--azul-900) !important; padding: .2rem .7rem; border-radius: 999px; }
.topbar__access:hover { background: var(--celeste-claro); }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.nav__inner { display: flex; align-items: center; gap: 1.4rem; padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand__logo { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--ff-title); font-size: 1.35rem; color: var(--azul-900); letter-spacing: .5px; }
.brand__text small { color: var(--gris); font-size: .72rem; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav__links a { font-weight: 600; font-size: .95rem; color: var(--azul-900); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--ambar); transition: width .2s; }
.nav__links a:hover::after { width: 100%; }
.nav__access { color: var(--celeste) !important; }
.nav__cta { margin-left: 0; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--azul-900); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; color: #fff; min-height: 86vh; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; background: url('assets/portada.jpg') center 30% / cover no-repeat; transform: scale(1.04); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(7,26,48,.95) 0%, rgba(9,36,66,.86) 40%, rgba(9,38,70,.42) 78%, rgba(9,38,70,.18) 100%),
    radial-gradient(700px 420px at 88% 0%, rgba(57,167,229,.35), transparent 60%);
}
.hero__inner { position: relative; padding: 5rem 0 6rem; width: min(100% - 2.4rem, var(--maxw)); }
.hero__content { max-width: 700px; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28); color: #eaf3ff; padding: .42rem 1rem;
  border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1.4rem;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 4px rgba(245,166,35,.3); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--ambar); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: rgba(245,166,35,.4); border-radius: 4px; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: #dde9f7; max-width: 600px; margin-top: 1.1rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }

/* ===== Franja de valores ===== */
.strip { background: #fff; margin-top: -1px; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 1.4rem 0 .4rem; }
.strip__item { display: flex; gap: .85rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--bg-alt); border-radius: var(--radius-sm); border: 1px solid var(--linea); }
.strip__item span { font-size: 1.7rem; line-height: 1; }
.strip__item strong { display: block; color: var(--azul-900); font-family: var(--ff-title); font-size: 1rem; }
.strip__item p { margin: .1rem 0 0; color: var(--gris); font-size: .85rem; }

/* ===== Secciones ===== */
.section { padding: 5.5rem 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 3.2rem; }
.eyebrow { display: inline-block; color: var(--celeste); font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
.eyebrow--light { color: var(--ambar); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--azul-900); letter-spacing: -.5px; }
.section__head p { color: var(--gris); font-size: 1.08rem; margin: 0; }

/* ===== Grids ===== */
.grid { display: grid; gap: 1.7rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Institucional ===== */
.inst { gap: 3rem; align-items: center; }
.inst__media { position: relative; display: grid; place-items: center; padding: 1.5rem; }
.inst__media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, var(--bg-alt), transparent 70%); border-radius: 50%; }
.inst__escudo { position: relative; width: 78%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 14px 36px rgba(16,58,102,.28); border: 6px solid #fff; }
.inst__badge { position: relative; margin-top: .6rem; text-align: center; font-family: var(--ff-title); font-weight: 700; color: var(--azul-700); font-size: .92rem; line-height: 1.3; }
.prose p { color: #34475a; margin: 0 0 1.1rem; }
.prose strong { color: var(--azul-900); }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.mini-card { background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.mini-card span { font-size: 1.5rem; }
.mini-card strong { display: block; color: var(--azul-900); margin: .2rem 0; font-family: var(--ff-title); }
.mini-card p { margin: 0; color: var(--gris); font-size: .9rem; }

.cd { margin-top: 4rem; }
.cd__title { text-align: center; font-size: 1.6rem; color: var(--azul-900); }
.cd__note { text-align: center; color: var(--gris); font-style: italic; margin-bottom: 1.8rem; font-size: .92rem; }
.cd__sub { text-align: center; color: var(--azul-700); font-size: 1.2rem; margin: 2.6rem 0 1.4rem; }
.member { text-align: center; background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius); padding: 1.6rem 1rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member__avatar { width: 76px; height: 76px; display: grid; place-items: center; font-size: 1.45rem; font-family: var(--ff-title); font-weight: 700; color: #fff; margin: 0 auto .8rem; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--celeste), var(--azul-500)); }
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member strong { display: block; color: var(--azul-900); }
.member span { color: var(--gris); font-size: .9rem; }

/* ===== Noticias ===== */
.news { display: flex; gap: 1rem; background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.news:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news__date { flex: 0 0 74px; background: linear-gradient(160deg, var(--azul-700), var(--azul-900)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--ff-title); font-weight: 700; font-size: .8rem; }
.news__date span { font-size: 1.55rem; }
.news__body { padding: 1.3rem 1.3rem 1.3rem 0; }
.news--foto { flex-direction: column; }
.news--foto .news__body { padding: 1.2rem 1.3rem; }
.news__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.tag { display: inline-block; background: #e3f0fb; color: var(--azul-500); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .25rem .6rem; border-radius: 6px; }
.tag--accent { background: #fff0d6; color: var(--ambar-d); }
.news h3 { font-size: 1.15rem; color: var(--azul-900); margin: .6rem 0 .3rem; }
.news p { color: var(--gris); font-size: .95rem; margin: 0 0 .7rem; }
.news__link { color: var(--azul-500); font-weight: 600; font-size: .9rem; }
.news__link:hover { color: var(--ambar-d); }

/* ===== Beneficios ===== */
.benefit { background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.benefit::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--celeste), var(--ambar)); transition: width .3s; }
.benefit:hover { transform: translateY(-5px); border-color: var(--celeste-claro); box-shadow: var(--shadow); }
.benefit:hover::before { width: 100%; }
.benefit__icon { font-size: 2rem; margin-bottom: .7rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--bg-alt); }
.benefit h3 { font-size: 1.2rem; color: var(--azul-900); }
.benefit p { color: var(--gris); margin: 0; font-size: .96rem; }

/* ===== Galería ===== */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.galeria__item { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1; position: relative; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galeria__item::after { content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; background: rgba(10,37,64,.45); opacity: 0; transition: opacity .25s; }
.galeria__item:hover img { transform: scale(1.08); }
.galeria__item:hover::after { opacity: 1; }
.galeria__empty { color: var(--gris); }
.ig-embeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 800px; margin: 0 auto; }
.ig-embeds .instagram-media { width: 100% !important; min-width: 0 !important; max-width: 100% !important; height: 540px !important; margin: 0 !important; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
@media (max-width: 640px) { .ig-embeds { grid-template-columns: 1fr; max-width: 380px; } .ig-embeds .instagram-media { height: 560px !important; } }
.fb-row { display: flex; gap: 1.5rem; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.fb-card { width: 500px; max-width: 100%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.fb-card .fb-page, .fb-card span, .fb-card iframe { width: 100% !important; max-width: 100% !important; }
.fb-aside { width: 320px; max-width: 100%; background: linear-gradient(135deg, var(--azul-900), var(--azul-700)); color: #fff; border-radius: 14px; padding: 2rem 1.6rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; text-align: center; box-shadow: var(--shadow); }
.fb-aside__logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: var(--shadow); }
.fb-aside h4 { color: #fff; font-size: 1.3rem; margin: 0; }
.fb-aside p { color: #dbe8f7; margin: 0; font-size: .95rem; }
.fb-aside__btns { display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; }
@media (max-width: 980px) { .galeria { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .galeria { grid-template-columns: repeat(2, 1fr); } }

/* ===== Banner "Nuestra obra" ===== */
.obra-cta { background: linear-gradient(135deg, var(--azul-900), var(--azul-700) 60%, var(--azul-500)); color: #fff; text-align: center; }
.obra-cta__box { max-width: 720px; }
.obra-cta__box h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .2rem 0 .6rem; }
.obra-cta__box p { color: #dbe8f7; font-size: 1.08rem; margin: 0 0 1.6rem; }

/* ===== Popup del reel ===== */
.obra-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 3vh 3vw; }
.obra-modal[hidden] { display: none; }
.obra-modal__backdrop { position: absolute; inset: 0; background: rgba(4,16,30,.88); backdrop-filter: blur(4px); }
.obra-modal__box { position: relative; z-index: 1; width: min(1000px, 96vw); animation: modalIn .35s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.obra-modal__close { position: absolute; top: -16px; right: -10px; z-index: 10; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--azul-900); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-lg); }
.obra-modal__close:hover { background: var(--ambar); }
.obra-modal .obra { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 88vh; min-height: 0; border-radius: var(--radius); overflow: hidden; }

/* ===== La obra (reel cinematográfico) ===== */
.obra { position: relative; height: 80vh; min-height: 460px; max-height: 760px; background: #06182e; overflow: hidden; color: #fff; }
.obra__head { position: absolute; top: 1.8rem; left: 0; right: 0; z-index: 4; text-align: center; pointer-events: none; }
.obra__head h2 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.8rem); margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.obra__head .eyebrow--light { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.obra__stage { position: absolute; inset: 0; }
.obra__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #06182e; }
.obra__overlay { position: absolute; inset: 0; z-index: 3; }
.obra__playbtn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 6; width: 76px; height: 76px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); color: #fff; font-size: 1.6rem; cursor: pointer; backdrop-filter: blur(4px); }
.obra__playbtn:hover { background: var(--ambar); color: var(--azul-900); border-color: var(--ambar); }
.obra__stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,24,46,.55) 0%, rgba(6,24,46,.05) 24%, rgba(6,24,46,.05) 52%, rgba(6,24,46,.9) 100%); }
.obra__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
.obra__slide.is-active { opacity: 1; }
.obra__img { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
.obra__slide.is-active .obra__img { animation: kenA 7.5s ease-out forwards; }
.obra__slide.is-active.alt .obra__img { animation: kenB 7.5s ease-out forwards; }
@keyframes kenA { from { transform: scale(1); } to { transform: scale(1.14) translate(-2.5%, -2%); } }
@keyframes kenB { from { transform: scale(1.14) translate(2.5%, 1.5%); } to { transform: scale(1); } }
.obra__caption { position: absolute; left: 0; right: 0; bottom: 3.4rem; z-index: 4; text-align: center; padding: 0 1.4rem; }
.obra__caption p { display: inline-block; max-width: 900px; margin: 0; font-family: var(--ff-title); font-weight: 700; line-height: 1.25;
  font-size: clamp(1.25rem, 3.4vw, 2.1rem); text-shadow: 0 2px 28px rgba(0,0,0,.7); }
.obra__caption p.show { animation: capUp .9s ease both; }
@keyframes capUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.obra__progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 5; background: rgba(255,255,255,.16); }
.obra__progress span { display: block; height: 100%; width: 0; background: var(--ambar); }
.obra__dots { position: absolute; bottom: 1.4rem; left: 0; right: 0; z-index: 5; display: flex; gap: .5rem; justify-content: center; }
.obra__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, transform .2s; }
.obra__dots button.on { background: var(--ambar); transform: scale(1.25); }
.obra__sound { position: absolute; top: 1.3rem; right: 1.3rem; z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 1.1rem; backdrop-filter: blur(4px); }
.obra__sound:hover { background: rgba(0,0,0,.6); }
.obra__cierre { display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, var(--azul-900), var(--azul-700) 60%, var(--azul-500)); }
.obra__cierre[hidden] { display: none; }  /* clave: que NO tape los videos hasta el final */
.obra__cierre img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 1rem; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.obra__cierre strong { display: block; font-family: var(--ff-title); font-size: clamp(1.4rem, 4vw, 2.3rem); max-width: 760px; padding: 0 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.obra__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9fb6d4; }
.obra__gate { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; border: 0; cursor: pointer; color: #fff; font-family: var(--ff-title); background: linear-gradient(135deg, rgba(10,37,64,.94), rgba(16,58,102,.9)); }
.obra__gate[hidden] { display: none; }
.obra__gate-play { width: 92px; height: 92px; border-radius: 50%; background: var(--ambar); color: var(--azul-900); display: grid; place-items: center; font-size: 2.3rem; padding-left: 7px; box-shadow: 0 12px 34px rgba(245,166,35,.55); transition: transform .2s; }
.obra__gate:hover .obra__gate-play { transform: scale(1.09); }
.obra__gate-txt { font-size: 1.35rem; font-weight: 700; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .obra { height: 72vh; }
  /* Popup a prueba de balas: caja fija ocupando TODA la pantalla, no se puede correr */
  .obra-modal { padding: 0; display: block; }
  .obra-modal__box { position: fixed; inset: 0; width: auto; max-width: none; height: auto; margin: 0; animation: none; }
  .obra-modal .obra { width: 100%; height: 100%; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
  .obra-modal__close { position: fixed; top: 10px; right: 10px; z-index: 11; }
  .obra__gate-play { width: 76px; height: 76px; font-size: 1.9rem; }
  .obra__gate-txt { font-size: 1.1rem; }
  .obra__cierre strong { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  /* matar el desborde horizontal en celular (causa del "se corre") */
  body { overflow-x: clip; }
  img, video { max-width: 100%; }
  .ig-embeds, .fb-row, .fb-card, .comercios, .container { max-width: 100%; }
  .ig-embeds .instagram-media, .ig-embeds iframe,
  .fb-card, .fb-card .fb-page, .fb-card span, .fb-card iframe { width: 100% !important; max-width: 100% !important; }
}

/* ===== Salón ===== */
.salon { max-width: 860px; margin: 0 auto; text-align: center; }
.salon__stats { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.salon__stat { background: var(--bg-alt); border: 1px solid var(--linea); border-radius: var(--radius-sm); padding: 1rem 1.6rem; min-width: 140px; }
.salon__stat strong { display: block; font-family: var(--ff-title); font-size: 1.4rem; color: var(--azul-900); }
.salon__stat span { color: var(--gris); font-size: .85rem; }
.salon__list { list-style: none; padding: 0; margin: 0 auto 1.8rem; max-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; text-align: left; }
.salon__list li { background: var(--bg); border: 1px solid var(--linea); border-radius: 10px; padding: .7rem 1rem; color: var(--tinta); font-size: .95rem; }
.salon__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 620px) { .salon__list { grid-template-columns: 1fr; } }

/* ===== Embed de YouTube (responsivo 16:9) ===== */
.yt-embed { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Video gestión ===== */
.video-wrap { max-width: 860px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-wrap video { width: 100%; display: block; }

/* ===== Afiliación / CTA ===== */
.section--cta { color: #fff; position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background: linear-gradient(120deg, var(--azul-900), var(--azul-700) 55%, var(--azul-500)); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 85% 10%, rgba(57,167,229,.35), transparent 60%), radial-gradient(500px 300px at 5% 100%, rgba(245,166,35,.18), transparent 55%); }
.afiliacion { position: relative; align-items: center; gap: 3rem; }
.afiliacion__text h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.afiliacion__text p { color: #dbe8f7; font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2.1rem; color: #eaf3ff; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; background: var(--ambar); color: var(--azul-900); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }

/* ===== Formularios ===== */
.card { background: #fff; border-radius: var(--radius); padding: 2.1rem; box-shadow: var(--shadow-lg); }
.form h3 { color: var(--azul-900); font-size: 1.3rem; margin-bottom: 1.2rem; }
.form__row, .form__grid { margin-bottom: 1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--azul-900); }
.form input, .form select, .form textarea {
  width: 100%; margin-top: .35rem; padding: .72rem .9rem; border: 1.5px solid var(--linea);
  border-radius: var(--radius-sm); font-family: var(--ff-body); font-size: .95rem; color: var(--tinta);
  background: #fbfdff; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(57,167,229,.2); }
.form textarea { resize: vertical; }
.form__hint { font-size: .82rem; color: var(--gris); text-align: center; margin: .8rem 0 0; }

/* ===== Contacto ===== */
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); transition: transform .15s; }
.contact-card:hover { transform: translateX(5px); }
.contact-card__icon { font-size: 1.4rem; }
.contact-card strong { color: var(--azul-900); display: block; }
.contact-card p { margin: .15rem 0 0; color: var(--gris); font-size: .92rem; }
.contact-card em { font-size: .82rem; color: #9aa7b4; }
.contact-social { display: flex; gap: .8rem; margin-top: .4rem; }

/* ===== Footer ===== */
.footer { background: var(--azul-900); color: #c3d4e8; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.4rem; padding: 3.4rem 0; }
.footer__logo { height: 66px; width: 66px; border-radius: 50%; object-fit: cover; margin-bottom: .9rem; }
.footer__brand p { font-size: .9rem; max-width: 360px; }
.footer__social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer__social a { font-weight: 600; color: #fff; }
.footer__social a:hover { color: var(--ambar); }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav strong { color: #fff; font-family: var(--ff-title); margin-bottom: .2rem; }
.footer__nav a:hover { color: var(--ambar); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer__bottom .container { display: flex; justify-content: space-between; padding: 1.2rem 0; flex-wrap: wrap; gap: .5rem; }

/* ===== Reveal al hacer scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0;
    padding: .5rem 0; border-bottom: 1px solid var(--linea); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .9rem 1.2rem; width: 100%; }
  .nav__inner { justify-content: space-between; }
  .hero { min-height: auto; }
  .hero__overlay { background: linear-gradient(180deg, rgba(8,30,54,.86), rgba(9,38,70,.78)), radial-gradient(600px 320px at 90% 0%, rgba(57,167,229,.3), transparent 60%); }
  .hero__inner { padding: 3.5rem 0 5rem; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
  .inst { gap: 1.6rem; }
  .mini-cards { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .topbar__item { display: none; }
  .topbar__social { margin-left: 0; width: 100%; justify-content: center; }
  .topbar__inner { justify-content: center; }
}

/* Los estilos del módulo de accesibilidad están en accessibility.css
   (compartido por index y las páginas de app/). */

/* Espacio para que el botón flotante de accesibilidad no tape el footer */
.footer__bottom .container { padding-left: 74px; }
@media (max-width: 760px) { .footer__bottom .container { padding-left: 64px; } }

@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } .hero__media { transform: none; } }

/* ===== Comercios y descuentos adheridos ===== */
.com-filtros { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 2rem; }
.com-filtro { padding: .45rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--bg); color: var(--azul-700); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.com-filtro:hover { border-color: var(--celeste); }
.com-filtro.is-on { background: var(--azul-700); border-color: var(--azul-700); color: #fff; }
.comercio { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.comercio:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--celeste-claro); }
.comercio__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.comercio__logo { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--linea); }
.comercio__logo img { width: 100%; height: 100%; object-fit: cover; }
.comercio__ini { font-family: var(--ff-title); font-weight: 800; font-size: 1.7rem; color: var(--azul-500); }
.comercio__desc { background: linear-gradient(135deg, var(--ambar), var(--ambar-d)); color: #2a1a00; font-family: var(--ff-title); font-weight: 800; font-size: 1.05rem; padding: .4rem .8rem; border-radius: 10px; box-shadow: 0 6px 16px rgba(245,166,35,.35); white-space: nowrap; }
.comercio__rubro { display: inline-block; align-self: flex-start; background: #e3f0fb; color: var(--azul-500); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .22rem .6rem; border-radius: 6px; margin-bottom: .5rem; }
.comercio h3 { font-size: 1.2rem; color: var(--azul-900); margin: 0 0 .4rem; }
.comercio p { color: var(--gris); font-size: .94rem; margin: 0 0 .8rem; }
.comercio__meta { margin-top: auto; display: flex; flex-direction: column; gap: .25rem; font-size: .86rem; color: var(--gris); }
.comercio__meta a { color: var(--azul-500); font-weight: 600; }
.comercio__meta a:hover { color: var(--celeste); }

/* ===== Reserva del salón (formulario público) ===== */
.reserva { max-width: 820px; margin-inline: auto; background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.form__msg { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.form__msg--ok { background: #e7f6ec; color: #1d7a3a; border: 1px solid #bfe4cb; }
.form__msg--err { background: #fdecec; color: #c0392b; border: 1px solid #f3c4c0; }
@media (max-width: 600px) { .reserva { padding: 1.4rem; } }

/* ===== Agenda de actividades ===== */
.agenda { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.evento { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--bg); border: 1px solid var(--linea); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.evento:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--celeste-claro); }
.evento__fecha { flex: 0 0 auto; width: 72px; text-align: center; background: linear-gradient(135deg, var(--azul-700), var(--azul-900)); color: #fff; border-radius: 14px; padding: .7rem 0; line-height: 1; }
.evento__dia { display: block; font-family: var(--ff-title); font-weight: 800; font-size: 1.9rem; }
.evento__mes { display: block; font-size: .78rem; letter-spacing: 1px; margin-top: .25rem; color: var(--celeste-claro); }
.evento__body { flex: 1; min-width: 0; }
.evento__body h3 { font-size: 1.22rem; color: var(--azul-900); margin: .35rem 0 .3rem; }
.evento__meta { color: var(--celeste); font-weight: 600; font-size: .9rem; }
.evento__body p { color: var(--gris); margin: .5rem 0 0; font-size: .96rem; }
@media (max-width: 540px) { .evento { gap: .9rem; padding: 1.1rem; } .evento__fecha { width: 60px; } .evento__dia { font-size: 1.6rem; } }
