/* =====================================================================
   I.E.P.S.M. N° 60113 Rumococha — Hoja de estilos principal
   Paleta: azul marino · celeste · beige
   ===================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-2: #13305A;
  --navy-3: #1D4373;
  --sky: #5AA9E0;
  --sky-2: #8CC8F0;
  --sky-soft: #E4F1FB;
  --beige: #F3E9D7;
  --beige-2: #FAF6EE;
  --sand: #E3D2B4;
  --gold: #E7B53C;
  --green: #2F8F5B;
  --red: #E0393E;
  --ink: #18212F;
  --muted: #5D6878;
  --line: #E7DFD0;
  --white: #fff;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow: 0 14px 40px -12px rgba(11, 31, 58, .22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, .35);
  --ease: cubic-bezier(.22, .8, .25, 1);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .5em 1.1em; font-size: .85rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sky { background: var(--sky); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(90, 169, 224, .8); }
.btn-sky:hover { background: var(--sky-2); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 31, 58, .6); }
.btn-navy:hover { background: var(--navy-3); }
.btn-beige { background: var(--beige); color: var(--navy); }
.btn-beige:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--navy-3); }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .3em .85em; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-navy  { background: var(--navy); color: #fff; }
.badge-sky   { background: var(--sky-soft); color: var(--navy-3); }
.badge-gold  { background: #FCEFC9; color: #8A6410; }
.badge-green { background: #DDF2E5; color: #1E6B41; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info i { color: var(--sky); margin-right: 6px; }
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-social a:hover { color: var(--sky); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .3s; }
.site-header.scrolled .header-inner { height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; transition: height .3s, transform .4s var(--ease); }
.site-header.scrolled .brand img { height: 46px; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--sky); }
.brand-text strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { position: relative; padding: 8px 14px; font-weight: 600; font-size: .93rem; color: var(--navy); border-radius: 999px; white-space: nowrap; transition: background .2s; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 3px; border-radius: 3px; background: var(--sky); transition: width .3s var(--ease), left .3s var(--ease); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 22px; left: calc(50% - 11px); }
.main-nav a.active { color: var(--navy-3); }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--navy); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero, .page-hero, .article-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% 20%, var(--navy-3) 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero { padding: 80px 0 150px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 14s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: var(--sky); top: -120px; right: -80px; }
.b2 { width: 320px; height: 320px; background: #3E6FB5; bottom: -100px; left: -80px; animation-delay: -5s; }
.b3 { width: 200px; height: 200px; background: var(--beige); top: 40%; left: 45%; opacity: .15; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -25px) scale(1.08); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 50px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; font-weight: 600; color: var(--sky-2); margin-bottom: 22px; }
.eyebrow i { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 600; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--sky-2); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--sky); opacity: .35; border-radius: 4px; z-index: -1; }
.lead { font-size: 1.1rem; color: rgba(255, 255, 255, .8); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.crest-ring { position: relative; width: min(360px, 80vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(243, 233, 215, .16), rgba(243, 233, 215, .02) 70%); border: 1px dashed rgba(255, 255, 255, .22); }
.crest-ring::before { content: ''; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(90, 169, 224, .25); animation: spin 40s linear infinite; border-top-color: var(--sky); }
.crest-glow { position: absolute; width: 70%; height: 70%; border-radius: 50%; background: var(--sky); filter: blur(60px); opacity: .45; }
.crest { position: relative; width: 72%; filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .4)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(250, 246, 238, .95); color: var(--navy); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite; }
.hero-chip i { color: var(--sky); }
.chip-1 { top: 10%; left: 0; }
.chip-2 { bottom: 18%; left: -4%; animation-delay: -2s; }
.chip-2 i { color: var(--green); }
.chip-3 { top: 52%; right: -4%; animation-delay: -4s; }
.chip-3 i { color: var(--navy-3); }

.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }
.hero-wave path { fill: var(--beige-2); }

/* ---------- Estadísticas ---------- */
.stats { position: relative; margin-top: -90px; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 34px 16px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: var(--line); }
.stat i { font-size: 1.5rem; color: var(--sky); width: 54px; height: 54px; display: grid; place-items: center; background: var(--sky-soft); border-radius: 16px; margin-bottom: 12px; }
.stat strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 500; margin-top: 4px; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-beige { background: var(--beige); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { margin: 0; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.section-tag::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.section-tag.light { color: var(--sky-2); }
.section-sub { color: var(--muted); max-width: 620px; margin: 14px auto 0; }

/* Bienvenida */
.welcome-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.welcome-media { position: relative; }
.welcome-card { position: relative; z-index: 1; background: var(--navy); color: rgba(255, 255, 255, .88); padding: 44px 40px; border-radius: 28px; box-shadow: var(--shadow-lg); font-size: 1.05rem; }
.welcome-card > i { font-size: 2.4rem; color: var(--sky); margin-bottom: 16px; display: block; }
.welcome-card p { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; line-height: 1.55; }
.welcome-sign { display: flex; align-items: center; gap: 14px; padding-top: 20px; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.welcome-sign strong { display: block; color: #fff; }
.welcome-sign small { color: var(--sky-2); }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); font-size: 1.2rem; }
.welcome-deco { position: absolute; inset: 24px -24px -24px 24px; border-radius: 28px; background: repeating-linear-gradient(45deg, var(--sand) 0 2px, transparent 2px 12px); z-index: 0; }
.welcome-text p { color: var(--muted); }
.levels { display: grid; gap: 16px; margin: 26px 0 32px; }
.level { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.level:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.level h3 { font-size: 1.2rem; margin-bottom: 4px; }
.level p { margin: 0; font-size: .93rem; }
.level-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; }
.level-icon.sky { background: var(--sky-soft); color: var(--navy-3); }
.level-icon.navy { background: var(--navy); color: var(--sky-2); }

/* Imagen marcador (sin foto) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; }
.ph img { width: 34%; max-width: 120px; opacity: .9; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); transition: transform .6s var(--ease); }
.ph::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 16px 16px; }
.ph-navy  { background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.ph-sky   { background: linear-gradient(135deg, var(--sky), #3C83C0); }
.ph-gold  { background: linear-gradient(135deg, #E9C46A, #C99A2E); }
.ph-green { background: linear-gradient(135deg, #4FA977, #22704A); }

/* Noticias – portada */
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.news-feature { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-feature-media { display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-feature-media > img, .news-mini-media > img, .card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-feature:hover .news-feature-media > img, .news-feature:hover .ph img,
.card:hover .card-media > img, .card:hover .ph img, .news-mini:hover .news-mini-media > img { transform: scale(1.06); }
.news-feature-body { padding: 28px 30px 30px; }
.news-feature-body h3 { font-size: 1.7rem; margin: 12px 0 10px; }
.news-feature-body h3 a:hover, .card h3 a:hover, .news-mini h4 a:hover { color: var(--navy-3); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 4px; }
.news-feature-body p { color: var(--muted); }
.news-list { display: grid; gap: 18px; align-content: start; }
.news-mini { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); align-items: center; transition: box-shadow .3s, transform .3s var(--ease); }
.news-mini:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-mini-media { display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }
.news-mini h4 { font-size: 1.05rem; margin: 8px 0 6px; }
.news-mini small { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--muted); }
.meta i { color: var(--sky); margin-right: 4px; }
.meta.light { color: rgba(255, 255, 255, .78); }
.meta.light i { color: var(--sky-2); }

/* Tarjetas */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.card-media .badge { position: absolute; top: 14px; left: 14px; box-shadow: var(--shadow-sm); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin: 10px 0; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }

/* Eventos */
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.event-card { display: flex; gap: 20px; padding: 22px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-2); }
.event-date { flex: none; width: 76px; height: 84px; border-radius: 18px; background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 20px -10px rgba(11, 31, 58, .6); }
.event-date strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.event-date span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--sky-2); }
.event-body h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.event-body p { color: var(--muted); font-size: .93rem; margin-bottom: 8px; }
.event-when { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--green); background: #DDF2E5; padding: 2px 10px; border-radius: 999px; }

/* Valores */
.values { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.values::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--sky); filter: blur(140px); opacity: .18; top: -300px; left: 50%; transform: translateX(-50%); }
.values h2 { color: #fff; }
.values .section-sub { color: rgba(255, 255, 255, .7); }
.values-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { text-align: center; padding: 40px 28px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .35s var(--ease), background .35s; }
.value:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .09); }
.value span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--beige); color: var(--navy); font-size: 1.8rem; }
.value h3 { color: #fff; font-size: 1.6rem; }
.value p { color: rgba(255, 255, 255, .72); margin: 0; }

/* Galería */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-grid .gallery-item:first-child { grid-row: span 2; }
.gallery-item { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--sand); }
.gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item img { transition: transform .7s var(--ease); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(11, 31, 58, .85)); transform: translateY(100%); transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover span { transform: none; }
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry .gallery-item { margin-bottom: 16px; break-inside: avoid; }
.masonry .gallery-item img { width: 100%; height: auto; }

/* Galería organizada en álbumes (fecha, hora y título) */
.album-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.album-filter a { padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--navy); transition: background .25s, color .25s, border-color .25s; }
.album-filter a:hover { border-color: var(--sky); }
.album-filter a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.albums { display: flex; flex-direction: column; gap: 56px; }
.album-head { display: flex; align-items: center; gap: 20px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--line); }
.album-date { flex: none; width: 80px; height: 92px; border-radius: 18px; background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; box-shadow: 0 10px 20px -10px rgba(11, 31, 58, .6); }
.album-date strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.album-date span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--sky-2); }
.album-date small { font-size: .7rem; color: rgba(255, 255, 255, .7); }
.album-info h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 8px; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.album-grid.has-feature .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.album-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 999; display: none; place-items: center; background: rgba(6, 16, 31, .92); padding: 30px; }
.lightbox.open { display: grid; animation: fade .3s; }
.lightbox figure { margin: 0; max-width: 1000px; text-align: center; }
.lightbox img { max-height: 80vh; border-radius: 14px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 500; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: var(--sky); color: var(--navy); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* CTA */
.cta { padding: 0 0 96px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 54px 60px; border-radius: 32px; background: linear-gradient(120deg, var(--sky) 0%, #3E86C6 100%); position: relative; overflow: hidden; flex-wrap: wrap; }
.cta-inner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .14); }
.cta h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta p { margin: 0; color: var(--navy-2); max-width: 560px; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Páginas internas ---------- */
.page-hero { padding: 70px 0 110px; }
.page-hero .container, .article-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 14px 0 10px; }
.page-hero h1 i { color: var(--sky); font-size: .8em; margin-right: 6px; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 640px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255, 255, 255, .65); flex-wrap: wrap; }
.crumbs > i { font-size: .65rem; }
.crumbs a:hover { color: var(--sky-2); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.search-field { position: relative; flex: 1 1 280px; max-width: 380px; }
.search-field i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; transition: border-color .2s, box-shadow .2s; }
.search-field input:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .87rem; font-weight: 600; color: var(--navy); transition: all .2s; }
.chip small { opacity: .55; margin-left: 4px; }
.chip:hover { border-color: var(--sky); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Archivo de noticias por año / mes */
.archive-bar { display: grid; gap: 12px; padding: 18px 20px; margin: -16px 0 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.archive-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.archive-row + .archive-row { padding-top: 12px; border-top: 1px dashed var(--line); }
.archive-label { min-width: 64px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.archive-label i { color: var(--sky); margin-right: 4px; }
.news-month { color: var(--navy); }
.news-month i { color: var(--sky); font-size: 1.1rem; }
.news-group { margin-bottom: 44px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); }
.pagination a:hover { border-color: var(--sky); color: var(--navy-3); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty, .empty-state { text-align: center; color: var(--muted); }
.empty-state { padding: 60px 20px; background: #fff; border-radius: 24px; border: 2px dashed var(--line); }
.empty-state i { font-size: 3rem; color: var(--sky); margin-bottom: 14px; }

/* Artículo */
.article-hero { padding: 60px 0 140px; }
.article-hero .badge { margin: 22px 0 14px; }
.article-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 18px; }
.article-cover { margin-top: -100px; position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: var(--navy); }
.article-cover > img { width: 100%; height: 100%; object-fit: cover; }
.article-lead { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; color: var(--navy-2); margin: 40px 0 26px; padding-left: 20px; border-left: 4px solid var(--sky); }
.article-content { font-size: 1.07rem; line-height: 1.85; }
.article-content h2, .article-content h3 { margin-top: 1.6em; }
.article-content a { color: var(--navy-3); text-decoration: underline; text-decoration-color: var(--sky); }
.article-content blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--beige); border-radius: 14px; font-style: italic; }
.share { display: flex; align-items: center; gap: 10px; margin: 44px 0 80px; padding-top: 26px; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; font-size: 1rem; transition: transform .2s; }
.share a:hover, .share button:hover { transform: translateY(-3px); }
.share .fb { background: #1877F2; }
.share .wa { background: #25D366; }
.share .copy { background: var(--navy); }

/* Actividades */
.agenda-grid { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.calendar { position: sticky; top: 100px; background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-head h3 { margin: 0; font-size: 1.25rem; }
.cal-head a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--beige); color: var(--navy); transition: background .2s; }
.cal-head a:hover { background: var(--sky); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .88rem; font-weight: 500; position: relative; }
.cal-day.has { background: var(--sky-soft); color: var(--navy-3); font-weight: 700; cursor: help; }
.cal-day.has::after { content: ''; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); }
.cal-day.today { background: var(--navy); color: #fff; }
.cal-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); margin-top: 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.dot.has { background: var(--sky-soft); border: 1px solid var(--sky); }
.dot.today { background: var(--navy); }
.cal-list { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); font-size: .87rem; display: grid; gap: 8px; }
.cal-list strong { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .75rem; margin-right: 8px; }
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.tabs a { padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .2s; }
.tabs a.active { background: var(--navy); color: #fff; }
.month-title { font-size: 1.4rem; display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.month-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.timeline { display: grid; gap: 16px; margin-bottom: 34px; }
.tl-item { display: flex; gap: 20px; }
.tl-body { flex: 1; display: flex; gap: 18px; padding: 20px 22px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.tl-body:hover { box-shadow: var(--shadow); border-color: var(--sky-2); }
.tl-img { width: 130px; height: 100px; object-fit: cover; border-radius: 14px; flex: none; }
.tl-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-body h4 { font-size: 1.2rem; margin: 10px 0 6px; }
.tl-body p { color: var(--muted); font-size: .94rem; margin-bottom: 8px; }

/* Nosotros */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { padding: 44px 40px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); border-top: 6px solid var(--sky); }
.mv-card.dark { background: var(--navy); color: rgba(255, 255, 255, .85); border-top-color: var(--beige); }
.mv-card.dark h2 { color: #fff; }
.mv-card p { color: inherit; margin: 0; font-size: 1.04rem; }
.mv-card:not(.dark) p { color: var(--muted); }
.mv-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy-3); font-size: 1.5rem; margin-bottom: 20px; }
.mv-card.dark .mv-icon { background: rgba(255, 255, 255, .1); color: var(--sky-2); }
.history-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: center; }
.history-crest { display: grid; place-items: center; padding: 40px; border-radius: 50%; background: radial-gradient(circle, #fff 30%, transparent 70%); }
.history-crest img { width: 80%; filter: drop-shadow(0 20px 30px rgba(11, 31, 58, .25)); animation: bob 7s ease-in-out infinite; }
.prose { color: var(--muted); font-size: 1.04rem; }
.symbols-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.symbol { padding: 30px 24px; text-align: center; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.symbol:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.symbol span { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 20px; font-size: 1.5rem; }
.symbol span.sky { background: var(--sky-soft); color: var(--navy-3); }
.symbol span.navy { background: var(--navy); color: #fff; }
.symbol span.green { background: #DDF2E5; color: var(--green); }
.symbol span.red { background: #FDE2E2; color: var(--red); }
.symbol h3 { font-size: 1.2rem; }
.symbol p { color: var(--muted); font-size: .93rem; margin: 0; }
.anthem { display: flex; align-items: center; gap: 28px; max-width: 760px; margin: 0 auto; padding: 30px 36px; border-radius: 28px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); border-top: 6px solid var(--sky); }
.anthem-crest { width: 96px; height: auto; flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); transition: transform .6s var(--ease); }
.anthem.playing .anthem-crest { animation: bob 3s ease-in-out infinite; }
.anthem-body { flex: 1; min-width: 0; }
.anthem-body small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-2); }
.anthem-body strong { display: block; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin: 2px 0 16px; }
.anthem-controls { display: flex; align-items: center; gap: 14px; }
.anthem-play { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.1rem; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(90, 169, 224, .8); transition: transform .25s var(--ease), background .25s; }
.anthem-play:hover { background: var(--sky-2); transform: scale(1.06); }
.anthem-play .fa-play { margin-left: 3px; }
.anthem-time { font-size: .82rem; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); min-width: 36px; text-align: center; }
.anthem-progress { flex: 1; min-width: 0; height: 6px; margin: 0; border-radius: 999px; appearance: none; -webkit-appearance: none; cursor: pointer; background: linear-gradient(var(--sky), var(--sky)) 0 / var(--p, 0%) 100% no-repeat, rgba(255, 255, 255, .18); }
.anthem-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.anthem-progress::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.team-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.team-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; font-size: .92rem; color: var(--navy); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.team-tabs button i { color: var(--sky); }
.team-tabs button span { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--sky-soft); color: var(--navy-3); font-size: .78rem; }
.team-tabs button:hover { border-color: var(--sky); }
.team-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.team-tabs button.active i { color: var(--sky-2); }
.team-tabs button.active span { background: rgba(255, 255, 255, .15); color: #fff; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; animation: teamIn .45s var(--ease); }
.team-grid[hidden] { display: none; }
@keyframes teamIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.team-card { flex: 0 1 230px; padding: 28px 20px 24px; text-align: center; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--sky), var(--navy-3)); }
.team-photo img, .team-photo span { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; }
.team-photo img { object-fit: cover; }
.team-photo span { display: grid; place-items: center; background: var(--beige); color: var(--navy); font-family: var(--font-head); font-size: 2.2rem; font-weight: 600; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.director-quote { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.director-quote p { font-family: var(--font-head); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.5; color: #fff; }
.director-quote footer { color: var(--sky-2); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; margin-bottom: 60px; }
.contact-info p { color: var(--muted); }
.contact-info ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info li > span { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--sky-2); font-size: 1.1rem; }
.contact-info li strong { display: block; color: var(--navy); }
.contact-info li div { color: var(--muted); font-size: .95rem; }
.contact-form { background: #fff; padding: 36px; border-radius: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--beige-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px var(--sky-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field small { color: var(--red); font-size: .8rem; }
.map { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Alertas */
.alert { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; font-weight: 500; font-size: .93rem; }
.alert span { flex: 1; }
.alert-success { background: #DDF2E5; color: #1E6B41; }
.alert-error { background: #FDE2E2; color: #A12227; }
.alert-info { background: var(--sky-soft); color: var(--navy-3); }
.alert-close { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .72); padding-top: 110px; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; }
.footer-wave path { fill: var(--beige-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 76px; }
.footer-brand h3 { color: #fff; font-size: 1.1rem; }
.footer-brand h3 span { font-size: 1.6rem; color: var(--sky-2); }
.footer-motto { font-family: var(--font-head); font-style: italic; color: var(--beige); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--sky-2); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact i { color: var(--sky); margin-top: 5px; width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dev-credit { opacity: .8; white-space: nowrap; }
.dev-credit i { color: var(--sky); margin-right: 4px; }
.dev-credit strong { color: #fff; letter-spacing: .04em; }
.to-top { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); transition: transform .3s; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 2rem; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .6); transition: transform .3s var(--ease), box-shadow .3s; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 14px 30px -6px rgba(37, 211, 102, .75); }
.wa-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--navy); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translate(0, -50%); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 640px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 1.75rem; } .wa-tip { display: none; } }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 1000; transition: transform .4s var(--ease); font-weight: 500; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) and (min-width: 1081px) {
  .main-nav a:not(.btn) { padding: 8px 10px; font-size: .88rem; }
}
@media (max-width: 1080px) {
  /* backdrop-filter crearía un contenedor para el menú fijo: se usa fondo sólido en móvil */
  .site-header { background: var(--beige-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(320px, 85vw); flex-direction: column; align-items: stretch; gap: 4px; padding: 100px 24px 24px; background: var(--navy); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; box-shadow: var(--shadow-lg); overflow-y: auto; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { color: #fff; padding: 14px 16px; font-size: 1.05rem; }
  .main-nav a:not(.btn):hover, .main-nav a.active { background: rgba(255, 255, 255, .08); color: var(--sky-2); }
  .main-nav a::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .symbols-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 50px 0 140px; }
  .hero-grid, .welcome-grid, .news-layout, .agenda-grid, .contact-grid, .history-grid, .mv-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .events-grid, .values-grid { grid-template-columns: 1fr; }
  .calendar { position: static; }
  .welcome-grid { gap: 50px; }
  .history-crest { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hide-sm { display: none; }
  .topbar-info span:first-child { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand img { height: 46px; }
  .brand-text strong { font-size: 1.2rem; }
  .cards-grid, .form-row, .footer-grid, .symbols-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .album-head { gap: 14px; }
  .album-date { width: 64px; height: 76px; }
  .album-date strong { font-size: 1.6rem; }
  .album-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
  .news-mini { grid-template-columns: 100px 1fr; }
  .hero-chip { font-size: .75rem; padding: 8px 12px; }
  .chip-3 { right: 0; }
  .chip-2 { left: 0; }
  .cta-inner { padding: 40px 28px; }
  .contact-form { padding: 24px; }
  .tl-body { flex-direction: column; }
  .tl-img { width: 100%; height: 160px; }
  .event-date { width: 64px; height: 74px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .welcome-deco { inset: 16px -10px -16px 16px; }
  .anthem { flex-direction: column; text-align: center; gap: 16px; padding: 28px 22px; }
  .anthem-crest { width: 72px; }
  .anthem-controls { gap: 10px; }
  .team-grid { gap: 14px; }
  .team-card { flex-basis: calc(50% - 7px); padding: 20px 12px; }
  .team-photo { width: 90px; height: 90px; }
  .team-photo span { font-size: 1.7rem; }
}

/* ---------- Plataforma Digital ---------- */
.platforms-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.platform-card { flex: 0 1 340px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 28px 30px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.platform-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 240px; margin-bottom: 22px; padding: 16px; border-radius: 18px; background: var(--beige-2); overflow: hidden; }
.platform-logo img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.platform-card:hover .platform-logo img { transform: scale(1.05); }
.platform-logo i { font-size: 3.5rem; color: var(--sky); }
.platform-card h3 { font-size: 1.35rem; margin: 0 0 8px; }
.platform-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.platform-card .btn { margin-top: 14px; }
.btn-disabled { background: var(--line); color: var(--muted); cursor: default; }
.btn-disabled:hover { transform: none; }

/* Listas generadas por el editor (Quill 2) */
.article-content ol li[data-list="bullet"] { list-style-type: disc; }
.article-content .ql-ui { display: none; }
