/* =========================================================
   UECAJS — hoja de estilos
   Colores y tipografías según el Manual de Identidad Ecugenius v2.2
   (2.6 Valores cromáticos · 2.7 Tipografía corporativa):
     Rojo  #E30A18  (C0 M100 Y100 K0)
     Gris  #282727  (K95)
   Tipografía: Helvetica (fuente del sistema; en Windows/Android cae a Arial).
   No añadir otros colores de marca.
   ========================================================= */
/* Tipografía: Helvetica, sin descarga: se usa la del sistema */

:root {
  --red: #E30A18;      /* rojo corporativo */
  --ink: #282727;      /* gris corporativo (K95) */
  --bg: #EFEFEF;       /* neutros derivados del gris/plata del escudo */
  --white: #FFFFFF;
  --text: #282727;
  --muted: #5E5C5C;
  --line: #D9D8D8;

  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --r: 22px;
  --r-lg: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.05rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.g-red :focus-visible, .pill-red:focus-visible { outline-color: var(--ink); }

.eyebrow { display: block; font: 800 .78rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .7em; }
.eyebrow-light { color: rgba(255,255,255,.85); }

/* ---------- Botones píldora ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 .82rem var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 18px 34px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color .2s, transform .2s, color .2s;
}
.pill:hover { transform: translateY(-2px); }
.pill-red { background: var(--red); color: #fff; }
.pill-red:hover { filter: brightness(.9); }
.pill-white { background: #fff; color: var(--ink); }
.pill-sm { padding: 13px 26px; }
.pill-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill-outline:hover { background: #fff; color: var(--ink); }
.site-header.scrolled .pill-outline { color: var(--ink); }
.site-header.scrolled .pill-outline:hover { background: var(--ink); color: #fff; }
body.menu-open .site-header .pill-outline { color: #fff; }
.pill.is-soon { opacity: .55; cursor: not-allowed; }
.pill.is-soon:hover { transform: none; background: transparent; color: inherit; }
.header-actions { gap: 12px !important; }
.menu-portals-title { margin-top: 34px; }
.menu-portals { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { background: var(--white); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .menu-btn { background: var(--ink); }
.site-header.scrolled .menu-btn span { background: #fff; }
body.menu-open .site-header { background: var(--ink); box-shadow: none; }
body.menu-open .site-header .brand { color: #fff; }
body.menu-open .menu-btn { background: #fff; }
body.menu-open .menu-btn span { background: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; transition: padding .3s; }
.site-header.scrolled .header-inner { padding: 12px 40px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); transition: width .3s, height .3s; }
.site-header.scrolled .brand-logo { width: 52px; height: 52px; filter: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font: 600 1.7rem var(--display); letter-spacing: .04em; }
.brand-text small { font: 700 .62rem/1.25 var(--body); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.menu-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menú a pantalla completa */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-inner { max-width: var(--wrap); margin: 0 auto; padding: 140px 40px 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.menu-main { list-style: none; margin: 0; padding: 0; }
.menu-main a { display: block; font: 500 clamp(2rem, 4.4vw, 3.4rem)/1.25 var(--display); text-decoration: none; padding: 4px 0; }
.menu-main a:hover { color: var(--red); }
.menu-side { border-left: 1px solid rgba(255,255,255,.2); padding-left: 40px; align-self: start; }
.menu-side .eyebrow { color: var(--red); }
body.menu-open { overflow: hidden; }

/* Lema vertical */
.side-tagline {
  position: fixed; right: 14px; top: 50%; z-index: 40; margin: 0;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font: 800 .78rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}

/* ---------- Portada ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 980px; overflow: hidden; color: #fff; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 45%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(40,39,39,.7) 0%, rgba(40,39,39,.25) 45%, transparent 70%),
  linear-gradient(180deg, rgba(40,39,39,.55) 0%, rgba(40,39,39,.05) 30%, rgba(40,39,39,.2) 55%, rgba(40,39,39,.9) 100%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 110px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 .eyebrow { font-family: var(--body); text-shadow: none; max-width: 60ch; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 800 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(5px); } }
}

/* ---------- Intro ---------- */
.intro { position: relative; padding: 110px 0 90px; overflow: hidden; }
.intro::before {
  content: ""; position: absolute; left: -80px; top: 0; width: 340px; height: 100%;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(40,39,39,.07) 14px 15px);
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent);
}
.intro-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 48px; align-items: center; }
.intro-title { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.intro-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; color: #fff; }
.intro-card img, .photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.intro-card:hover img, .photo-card:hover img { transform: scale(1.04); }
.intro-card::after, .photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(40,39,39,.85)); }
.intro-card-label, .photo-card > span { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; font: 600 2rem/1.1 var(--display); }
.intro-text { text-align: right; }
.intro-text .pill { margin-top: 12px; }

/* ---------- En un vistazo ---------- */
.glance { padding: 40px 0 90px; }
.glance > .wrap > h2 { font-weight: 400; margin-bottom: 1em; }
.g-card {
  position: relative; display: grid; grid-template-columns: 1fr 300px; gap: 56px;
  border-radius: var(--r-lg); padding: 64px 64px 60px; color: #fff; margin-bottom: 22px;
}
.g-navy { background: var(--ink); }
.g-red { background: var(--red); }
.g-card h3 { color: #fff; margin: 0; }
.g-count { position: absolute; top: 24px; left: 40px; font: 800 .72rem var(--body); letter-spacing: .1em; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.14); }
.g-head { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.g-icon { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; }
.g-icon svg { width: 44px; height: 44px; }
.g-body > p { max-width: 62ch; color: rgba(255,255,255,.88); }
.g-body .pill { margin-top: 10px; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 18px; }
.levels > div { border-top: 1px solid rgba(255,255,255,.3); padding-top: 16px; }
.level-name { font: 600 1.3rem/1.2 var(--display); margin-bottom: 4px; }
.level-meta { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.levels p:last-child { color: rgba(255,255,255,.85); font-size: .97rem; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.ticks li { padding-left: 26px; position: relative; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.day { list-style: none; margin: 0 0 14px; padding: 0; columns: 2; column-gap: 40px; }
.day li { break-inside: avoid; display: flex; gap: 18px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.day time { font-weight: 800; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.muted-light { color: rgba(255,255,255,.65); }
.g-side { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.g-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 6px solid rgba(255,255,255,.12); }
.g-side blockquote { margin: 0; text-align: right; font: italic 400 1.02rem/1.5 var(--body); padding-right: 22px; border-right: 3px solid #fff; }
.g-side cite { display: block; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.35); font: italic .82rem var(--body); opacity: .8; }

/* ---------- Tarjetas con foto ---------- */
.cta-cards { padding: 40px 0 110px; }
.cards-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 26px; align-items: center; }
.photo-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; color: #fff; }
.photo-card-tall { aspect-ratio: 4 / 5; }

/* ---------- Admisiones ---------- */
.admissions { padding: 100px 0; background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li::before { content: "0" counter(s); display: block; font: 600 3.2rem/1 var(--display); color: var(--red); margin-bottom: 14px; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); }
.note { margin-top: 40px; color: var(--muted); font-style: italic; }

/* ---------- Historia ---------- */
.history { padding: 100px 0; }
.history-box { background: var(--ink); border-top: 6px solid var(--red); color: #fff; border-radius: var(--r-lg); padding: 60px 64px; }
.history-box h2 { color: #fff; }
.timeline { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.timeline li { position: relative; padding-left: 34px; }
.t-tag { position: absolute; left: 0; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); font: 800 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.t-year { display: block; font: 600 3.4rem/1 var(--display); margin-bottom: 14px; letter-spacing: -.02em; }
.timeline p { color: rgba(255,255,255,.8); font-size: .97rem; }
.pillars { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 36px; }
.pillars dt { font: 600 1.4rem var(--display); margin-bottom: 6px; }
.pillars dd { margin: 0; color: rgba(255,255,255,.75); }
.values-list { margin: 0; padding: 0; list-style: none; }
.values-list li { padding: 4px 0 4px 16px; position: relative; }
.values-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; background: var(--red, #E30A18); border-radius: 50%; }

/* ---------- Aliados ---------- */
.allies { padding: 20px 0 100px; }
.allies h2 { margin-bottom: 1.1em; }
.allies-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.allies-grid .ally { flex: 0 0 calc((100% - 44px) / 3); }
.ally {
  position: relative; background: var(--white); border-radius: var(--r); height: 150px;
  display: grid; place-items: center; padding: 26px 30px; border-bottom: 4px solid transparent;
  transition: border-color .2s, transform .2s;
}
.ally:hover { border-bottom-color: var(--red); transform: translateY(-3px); }
.ally img { max-width: 78%; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.ally-link { position: absolute; inset: 0; display: grid; place-items: center; padding: 26px 30px; }
.ally-name { display: none; font: 600 1.35rem var(--display); color: var(--ink); letter-spacing: .02em; }
.ally.no-logo img { display: none; }
.ally.no-logo .ally-name { display: block; }

/* ---------- Contacto ---------- */
.dept-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.dept { background: #fff; border-radius: 18px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; border-left: 4px solid var(--red); }
.dept h3 { font-size: 1.25rem; margin: 0; }
.dept h3 span { color: var(--red); font-weight: 500; }
.dept-desc { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }
.dept-hours { margin: 0; font-size: .9rem; color: var(--ink); text-align: right; grid-row: 1; grid-column: 2; }
.dept-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.pill-wa { background: #1F8F4E; color: #fff; padding: 11px 20px; }
.pill-wa:hover { background: #18773F; }
.pill-wa svg { flex: none; }
.dept-tel { font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.dept-tel:hover { color: var(--red); }
.address { margin-top: 22px; color: var(--muted); }
.address strong { color: var(--ink); margin-right: 6px; }
.form-note { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }

.contact { padding: 40px 0 110px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { color: var(--ink); }
.form { background: #fff; border-radius: var(--r); padding: 40px; display: grid; gap: 6px; box-shadow: 0 20px 50px rgba(40,39,39,.08); }
.form h3 { font-size: 1.8rem; margin-bottom: 10px; }
.form label { font-weight: 700; font-size: .95rem; color: var(--ink); margin-top: 10px; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #F7F7F8; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(227,10,24,.25); }
.form [aria-invalid="true"] { border-color: var(--red); }
.form .pill { margin-top: 18px; justify-self: start; }
.form-status { margin: 6px 0 0; font-size: .95rem; color: var(--red); min-height: 1.4em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 28px; }
.site-footer { border-top: 6px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer address { font-style: normal; color: rgba(255,255,255,.8); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- WhatsApp flotante con selector ---------- */
.wa-widget { position: fixed; right: 44px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-float {
  display: flex; align-items: center; gap: 8px; background: #1F8F4E; color: #fff; border: 0; cursor: pointer;
  font: 600 1rem var(--body); padding: 12px 20px 12px 14px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .2s, background-color .2s;
}
.wa-float:hover { background: #18773F; transform: translateY(-2px); }
.wa-panel { width: 300px; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.22); border-top: 4px solid var(--red); }
.wa-panel[hidden] { display: none; }
.wa-panel-title { font: 600 1.05rem var(--display); color: var(--ink); margin: 2px 6px 10px; }
.wa-panel a { display: block; text-decoration: none; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.wa-panel a:hover { background: var(--bg); }
.wa-panel strong { display: block; font-weight: 600; }
.wa-panel span { display: block; font-size: .85rem; line-height: 1.4; color: var(--muted); margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .portal-link.hide-mobile { display: none; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-title { grid-column: 1 / -1; }
  .g-card { grid-template-columns: 1fr; padding: 64px 40px 44px; gap: 36px; }
  .g-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .g-photo { width: 160px; height: 160px; flex: none; }
  .steps, .timeline { grid-template-columns: 1fr 1fr; }
  .allies-grid .ally { flex-basis: calc((100% - 22px) / 2); }
  .side-tagline { display: none; }
  .wa-widget { right: 20px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .header-inner, .site-header.scrolled .header-inner { padding: 12px 18px; }
  .hide-mobile { display: none; }
  .brand-logo, .site-header.scrolled .brand-logo { width: 46px; height: 46px; }
  .brand-text strong { font-size: 1.45rem; }
  .menu-btn { width: 48px; height: 48px; }
  .menu-inner { grid-template-columns: 1fr; padding: 110px 18px 40px; gap: 32px; }
  .menu-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; }
  .hero { height: 88vh; }
  .hero-img { object-position: 45% 40%; }
  .hero-copy { bottom: 90px; }
  .intro { padding: 70px 0 50px; }
  .intro-grid, .contact-grid, .footer-grid, .levels, .pillars, .cards-grid { grid-template-columns: 1fr; }
  .intro-text { text-align: left; }
  .intro-card { aspect-ratio: 4 / 3; }
  .g-card { padding: 60px 22px 32px; border-radius: var(--r); }
  .g-count { left: 22px; }
  .g-head { gap: 16px; }
  .g-icon { width: 62px; height: 62px; }
  .g-icon svg { width: 32px; height: 32px; }
  .g-side { flex-direction: column; align-items: flex-end; }
  .ticks, .day { grid-template-columns: 1fr; columns: 1; }
  .photo-card, .photo-card-tall { aspect-ratio: 16 / 10; }
  .steps, .timeline { grid-template-columns: 1fr; }
  .history-box { padding: 40px 22px; border-radius: var(--r); }
  .admissions, .history { padding: 70px 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .allies-grid { gap: 14px; }
  .allies-grid .ally { flex-basis: calc((100% - 14px) / 2); }
  .ally { height: 110px; padding: 18px; }
  .form { padding: 24px; }
  .wa-widget { right: 14px; bottom: 14px; }
  .wa-float { padding: 14px; }
  .wa-panel { width: min(300px, calc(100vw - 28px)); }
  .dept { grid-template-columns: 1fr; }
  .dept-hours { grid-row: auto; grid-column: auto; text-align: left; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Lema bajo el escudo en el pie */
.brand-footer { flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.motto { flex-basis: 100%; margin: 16px 0 0; font: 500 1.05rem var(--display); letter-spacing: .04em; color: rgba(255,255,255,.85); }

/* ============ GALERÍA ============ */
.gallery { padding: 100px 0; }
.gallery .section-head { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { font: 600 .92rem var(--body); border: 0; border-radius: 999px; padding: 10px 18px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.is-on { background: var(--red); color: #fff; box-shadow: none; }
.gal-grid { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 16px; }
.gal-grid li { break-inside: avoid; margin-bottom: 16px; }
.gal-grid li[hidden] { display: none; }
.gal-grid a { display: block; position: relative; border-radius: 16px; overflow: hidden; background: var(--line); }
.gal-grid img { width: 100%; height: auto; transition: transform .4s ease; }
.gal-grid a:hover img { transform: scale(1.03); }
.gal-grid .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--red); }
.gal-grid .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20,20,20,.94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 10px; display: block; }
.lightbox figcaption { color: #fff; margin-top: 14px; text-align: center; font-size: 1rem; }
.lb-close, .lb-nav { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .gallery { padding: 70px 0; }
  .gal-grid { columns: 2; column-gap: 10px; }
  .gal-grid li { margin-bottom: 10px; }
  .lightbox figure { padding: 64px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}
