/* ============================================================
   MOVIMIENTO RENOVACIÓN 63 — Estilos
   ============================================================ */

:root {
  --r-red: #ff3000;
  --r-red-dark: #d62700;
  --r-ink: #0e0e0e;
  --r-paper: #ffffff;
  --r-cream: #f7f3ee;
  --r-line: rgba(14, 14, 14, 0.12);
  --r-mute: rgba(14, 14, 14, 0.55);

  --f-display: "Archivo Black", "Inter", system-ui, sans-serif;
  --f-cond: "Barlow Condensed", "Archivo Narrow", "Inter", sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background: var(--r-paper);
  color: var(--r-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--r-red); color: #fff; }

/* ============== UTIL ============== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 13px;
  color: var(--r-red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--r-red);
  color: #fff;
  font-family: var(--f-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--r-ink); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--r-ink);
  border: 1.5px solid var(--r-ink);
}
.btn.ghost:hover { background: var(--r-ink); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--r-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo small {
  display: block;
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 11px;
  color: var(--r-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.nav-links a {
  color: var(--r-ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--r-red); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.menu-btn { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn { padding: 10px 16px; font-size: 12px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 38px; height: 38px; align-items: center; justify-content: center;
    border: 1px solid var(--r-line); border-radius: 8px;
  }
  .menu-btn span { width: 18px; height: 2px; background: var(--r-ink); }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 24px var(--pad-x);
    border-bottom: 1px solid var(--r-line);
  }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--r-red);
  color: #fff;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  min-height: 0;
  align-items: center;
  padding: 48px 0 60px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-tag {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.hero-tag::before {
  content: ""; width: 34px; height: 2px; background: #fff;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 .it {
  font-style: italic;
  font-family: "Archivo Black", serif;
  color: rgba(255, 255, 255, 0.92);
  display: inline-block;
  padding: 0 0.18em 0 0.04em;
  margin: 0 -0.1em 0 -0.04em;
}
.hero h1 .num {
  display: inline-block;
  background: #fff;
  color: var(--r-red);
  padding: 0 0.12em;
  line-height: 0.9;
  transform: skewX(-6deg);
  margin: 0 0.05em;
}
.hero p.lede {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  max-width: 460px;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--r-red); }
.hero .btn:hover { background: var(--r-ink); color: #fff; }
.hero .btn.ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.6);
}
.hero .btn.ghost:hover { background: #fff; color: var(--r-red); border-color: #fff; }

.hero-fist {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-fist img {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.25));
  animation: punch 6s ease-in-out infinite;
}
@keyframes punch {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(8px, -12px) rotate(-1.5deg); }
}

/* Background texture / numbers */
.hero-bg-63 {
  position: absolute;
  right: -4%;
  bottom: -18%;
  font-family: var(--f-display);
  font-size: clamp(240px, 36vw, 600px);
  line-height: 0.8;
  color: rgba(255,255,255,0.07);
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.hero-stripes {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-ticker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--r-ink);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 3;
}
.ticker-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 0;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-track .dot {
  width: 8px; height: 8px; background: var(--r-red); border-radius: 50%;
  display: inline-block;
}
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 44px 0 76px; gap: 24px; }
  .hero-fist { display: none; }
  .hero-bg-63 { right: -10%; bottom: -8%; opacity: 0.7; }
}

/* ============== SECTION COMMONS ============== */
section.s { padding: clamp(80px, 9vw, 140px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.section-head .lede {
  font-size: 17px;
  color: var(--r-mute);
  max-width: 480px;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ============== MISIÓN / VISIÓN ============== */
.mv {
  background: var(--r-cream);
  position: relative;
  overflow: hidden;
}
.mv::before {
  content: "RENOVAR";
  position: absolute;
  top: -20px; left: -2%;
  font-family: var(--f-display);
  font-size: clamp(140px, 22vw, 360px);
  color: rgba(255,48,0,0.04);
  letter-spacing: -0.04em;
  line-height: 0.8;
  pointer-events: none;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
}
.mv-card {
  background: #fff;
  border: 1px solid var(--r-line);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.mv-card h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  text-transform: uppercase;
  line-height: 1;
  margin: 12px 0 24px;
}
.mv-card p { font-size: 18px; line-height: 1.55; color: #333; }
.mv-card .num {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--r-red);
  letter-spacing: 0.16em;
}
.mv-card.featured {
  background: var(--r-ink);
  color: #fff;
}
.mv-card.featured p { color: rgba(255,255,255,0.85); }
.mv-card.featured .num { color: var(--r-red); }

@media (max-width: 800px) {
  .mv-grid { grid-template-columns: 1fr; }
}

/* ============== HISTORIA ============== */
.historia {
  background: var(--r-paper);
}
.historia-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: start;
}
.historia-body p {
  font-size: 18px;
  line-height: 1.65;
  color: #2a2a2a;
  margin-bottom: 20px;
}
.historia-body p strong { color: var(--r-ink); }
.historia-body p .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(255,48,0,0.25) 60%);
  padding: 0 2px;
}
.historia-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat {
  background: var(--r-cream);
  padding: 28px;
  border-left: 4px solid var(--r-red);
}
.stat .v {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--r-red);
}
.stat .l {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--r-mute);
  margin-top: 8px;
}
.stat.dark {
  background: var(--r-ink);
  border-color: var(--r-red);
}
.stat.dark .v { color: #fff; }
.stat.dark .l { color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
  .historia-grid { grid-template-columns: 1fr; gap: 40px; }
  .historia-side { position: static; }
}

/* Sectors marquee */
.sectors {
  margin-top: 60px;
  border-top: 1px solid var(--r-line);
  border-bottom: 1px solid var(--r-line);
  overflow: hidden;
  padding: 18px 0;
}
.sectors-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 16px;
  animation: ticker 50s linear infinite;
  width: max-content;
}
.sectors-track span { color: var(--r-ink); }
.sectors-track .sep { color: var(--r-red); }

/* ============== DIRECTOR · Marlon Torres ============== */
.director {
  background: var(--r-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
}

.director-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.director-bg .db-num {
  position: absolute;
  right: -3%;
  bottom: -22%;
  font-family: var(--f-display);
  font-size: clamp(360px, 48vw, 760px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 48, 0, 0.08);
  user-select: none;
}
.director-bg .db-stripe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--r-red) 0 16%, transparent 16% 100%);
}

.director-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* PHOTO with offset red panel & tag */
.director-figure {
  position: relative;
  padding: 24px 24px 0 0;
}
.director-figure::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 70%; height: 88%;
  background: var(--r-red);
  z-index: 0;
}
.director-figure::after {
  content: "";
  position: absolute;
  top: -16px; left: -16px;
  width: 88px; height: 88px;
  background: url('assets/logo-principal.png') center / contain no-repeat;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.director-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--r-red);
}
.director-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.05) saturate(1.04);
  transition: transform .6s ease;
}
.director-figure:hover .director-frame img { transform: scale(1.03); }
.director-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  background: #fff;
  color: var(--r-ink);
  padding: 8px 14px 8px 12px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.director-tag svg { color: var(--r-red); }

/* COPY */
.director-copy { position: relative; z-index: 1; }

.director-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.director-eyebrow .de-num { color: var(--r-red); }
.director-eyebrow .de-line {
  flex: 0 0 48px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.director-name {
  font-family: var(--f-display);
  font-size: clamp(60px, 9vw, 132px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.director-name .name-red {
  color: var(--r-red);
  display: inline-block;
}

.director-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  font-family: var(--f-cond);
}
.director-role .dr-pill {
  background: #fff;
  color: var(--r-ink);
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}
.director-role .dr-sep {
  color: var(--r-red);
  font-family: var(--f-display);
  font-size: 18px;
}
.director-role .dr-prov {
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
}

.director-quote {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 36px;
  position: relative;
  padding: 6px 0 6px 28px;
  border-left: 3px solid var(--r-red);
  color: #fff;
}
.director-quote .dq-mark {
  position: absolute;
  left: -2px;
  top: -30px;
  font-family: var(--f-display);
  font-size: 80px;
  line-height: 1;
  color: var(--r-red);
  opacity: 0.85;
}
.director-quote .dq-hl {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 48, 0, 0.35) 60%);
  padding: 0 4px;
}

.director-creds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.director-creds li {
  padding: 22px 18px 22px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.director-creds li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.director-creds .dc-v {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 0.9;
  color: var(--r-red);
  letter-spacing: -0.02em;
}
.director-creds .dc-l {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .director-wrap { grid-template-columns: 1fr; gap: 40px; }
  .director-figure { max-width: 440px; margin: 0 auto; padding: 16px 16px 0 0; }
  .director-figure::after { width: 64px; height: 64px; top: -12px; left: -12px; }
  .director-creds { grid-template-columns: 1fr 1fr; }
  .director-creds li:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); }
}
@media (max-width: 500px) {
  .director-creds { grid-template-columns: 1fr; }
  .director-creds li { padding: 18px 0; }
  .director-creds li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.15); }
  .director-creds li:last-child { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; }
  .director-quote { font-size: 20px; padding-left: 20px; }
  .director-quote .dq-mark { font-size: 56px; top: -16px; }
}

/* ============== ESCUELA ============== */
.escuela {
  background: var(--r-cream);
  position: relative;
}
.escuela-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.escuela-card {
  background: #fff;
  border: 1px solid var(--r-line);
  padding: clamp(32px, 4vw, 56px);
}
.escuela-card .label {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--r-red);
  font-weight: 700;
  margin-bottom: 16px;
}
.escuela-card h3 {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 0.96;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.escuela-card p { margin-bottom: 18px; color: #2a2a2a; line-height: 1.6; }

.escuela-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--r-line);
  margin: 32px 0;
  border: 1px solid var(--r-line);
}
.module {
  background: #fff;
  padding: 20px;
}
.module .n {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--r-red);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.module .t {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.escuela-visual {
  aspect-ratio: 4 / 5;
  background: var(--r-ink);
  color: #fff;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.escuela-visual::before {
  content: "GOBERNANZA";
  position: absolute;
  bottom: -40px; right: -10px;
  font-family: var(--f-display);
  font-size: 28vw;
  line-height: 0.8;
  color: var(--r-red);
  opacity: 0.18;
  letter-spacing: -0.03em;
}
.escuela-visual .meta {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.escuela-visual .big {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative; z-index: 2;
}
.escuela-visual .pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: relative; z-index: 2;
}
.escuela-visual .pill {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .escuela-grid { grid-template-columns: 1fr; }
  .escuela-modules { grid-template-columns: 1fr; }
}

/* ============== GALERÍA ============== */
.galeria { background: var(--r-paper); }
.galeria-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab {
  padding: 10px 18px;
  border: 1px solid var(--r-line);
  border-radius: 999px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: var(--r-ink);
  transition: all .15s;
}
.tab:hover { border-color: var(--r-ink); }
.tab.active {
  background: var(--r-ink); color: #fff; border-color: var(--r-ink);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 200px;
  gap: 14px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  background: var(--r-cream);
  cursor: pointer;
  transition: transform .25s ease;
}
.gal-item:hover { transform: translateY(-2px); }
.gal-item .ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.15)),
    repeating-linear-gradient(45deg,
      rgba(0,0,0,0.04) 0 10px,
      rgba(0,0,0,0.08) 10px 20px);
}
.gal-item.red .ph {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35)),
    var(--r-red);
}
.gal-item.dark .ph {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.15)),
    var(--r-ink);
}
.gal-item .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: #fff;
  z-index: 2;
}
.gal-item .meta .tg {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  background: var(--r-red);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 6px;
}
.gal-item .meta .ti {
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.gal-item .ph-ic {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.85);
  color: var(--r-ink);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Gallery shapes */
.gal-item.w2 { grid-column: span 2; }
.gal-item.w3 { grid-column: span 3; }
.gal-item.h2 { grid-row: span 2; }

@media (max-width: 900px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gal-item.w3, .gal-item.w2 { grid-column: span 2; }
  .gal-item.h2 { grid-row: span 1; }
}

/* ============== SEDES ============== */
.sedes { background: var(--r-cream); position: relative; }

.sedes-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.search-wrap {
  position: relative;
  display: flex; align-items: center;
}
.search-wrap input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--r-line);
  padding: 16px 20px 16px 48px;
  font: 500 16px var(--f-body);
  color: var(--r-ink);
  outline: none;
  transition: border-color .15s;
}
.search-wrap input:focus { border-color: var(--r-red); }
.search-wrap .ic {
  position: absolute; left: 16px;
  width: 20px; height: 20px;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fpill {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--r-line);
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--r-ink);
  cursor: pointer;
  transition: all .15s;
}
.fpill:hover { border-color: var(--r-ink); }
.fpill.active { background: var(--r-red); border-color: var(--r-red); color: #fff; }
.fpill .ct {
  display: inline-block;
  margin-left: 6px;
  background: rgba(0,0,0,0.08);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
}
.fpill.active .ct { background: rgba(255,255,255,0.25); }

.sedes-summary {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--r-mute);
  font-weight: 600;
  margin-bottom: 16px;
}
.sedes-summary strong { color: var(--r-ink); }

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.sede-card {
  background: #fff;
  border: 1px solid var(--r-line);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s;
  position: relative;
  overflow: hidden;
}
.sede-card:hover { border-color: var(--r-ink); transform: translateY(-2px); }
.sede-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sede-card .badge {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  background: var(--r-cream);
  color: var(--r-ink);
}
.sede-card .badge.Cantonal { background: var(--r-ink); color: #fff; }
.sede-card .badge.Parroquial { background: var(--r-red); color: #fff; }
.sede-card .canton {
  font-family: var(--f-cond);
  font-size: 11px;
  color: var(--r-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.sede-card h4 {
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-top: 4px;
}
.sede-card .direccion {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}
.sede-card .resp {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--r-line);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.sede-card .resp .ini {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--r-red); color: #fff;
  font-family: var(--f-display);
  font-size: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sede-card .resp .nm {
  font-weight: 600;
  color: var(--r-ink);
  line-height: 1.2;
}
.sede-card .resp .rl {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: var(--r-mute);
  font-weight: 600;
}

.empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--r-mute);
  border: 1px dashed var(--r-line);
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
}

.sede-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  position: relative;
}
.sede-more-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--r-line);
  z-index: 0;
}
.sede-more-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #fff;
  border: 1.5px solid var(--r-ink);
  color: var(--r-ink);
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
  transition: background .15s, color .15s, transform .15s;
}
.sede-more-btn:hover {
  background: var(--r-ink);
  color: #fff;
  transform: translateY(-1px);
}
.sede-more-btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
  font-weight: 700;
}
.sede-more-btn:hover .arrow {
  transform: translateY(2px);
}



/* ============== REDES SOCIALES ============== */
.redes {
  background: var(--r-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.redes-marquee {
  background: var(--r-red);
  padding: 14px 0;
  overflow: hidden;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.rm-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.rm-track .rm-dot {
  color: #fff;
  font-size: 14px;
  align-self: center;
}

.redes-inner {
  padding: clamp(80px, 9vw, 130px) var(--pad-x);
  position: relative;
  z-index: 2;
}

.redes-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.redes-head .eyebrow {
  margin-bottom: 20px;
}
.redes-head h2 {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.redes-head h2 .hl-redes {
  color: var(--r-red);
}
.redes-head p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto;
}

/* ============ ICON ORBS ============ */
.redes-icons {
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

.ri-orb {
  --rc: #1877F2;
  --rc-grad: var(--rc);
  position: relative;
  width: clamp(110px, 12vw, 150px);
  height: clamp(110px, 12vw, 150px);
  border-radius: 50%;
  background: var(--rc-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  isolation: isolate;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(40px) scale(0.6);
}
.ri-instagram {
  --rc: #dc2743;
  --rc-grad: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Entrance animation (triggered by IntersectionObserver via data-reveal-like) */
.redes-icons.in .ri-orb {
  animation: orbDrop .9s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.redes-icons.in .ri-orb:nth-child(1) { animation-delay: .05s; }
.redes-icons.in .ri-orb:nth-child(2) { animation-delay: .18s; }
.redes-icons.in .ri-orb:nth-child(3) { animation-delay: .31s; }

@keyframes orbDrop {
  0%   { opacity: 0; transform: translateY(-80px) scale(0.3) rotate(-20deg); }
  60%  { opacity: 1; transform: translateY(10px) scale(1.08) rotate(2deg); }
  80%  { transform: translateY(-4px) scale(0.98) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.ri-orb .ri-svg {
  width: 44%;
  height: 44%;
  position: relative;
  z-index: 2;
  transition: transform .35s ease;
}

/* Pulse ring */
.ri-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--rc);
  opacity: 0;
  animation: orbPulse 2.6s ease-out infinite;
  z-index: 0;
}
/* TikTok is black — invisible on dark BG, use white pulse */
.ri-orb[data-social="tiktok"] .ri-pulse {
  border-color: rgba(255, 255, 255, 0.75);
}
.redes-icons.in .ri-orb:nth-child(1) .ri-pulse { animation-delay: 1.2s; }
.redes-icons.in .ri-orb:nth-child(2) .ri-pulse { animation-delay: 1.5s; }
.redes-icons.in .ri-orb:nth-child(3) .ri-pulse { animation-delay: 1.8s; }
@keyframes orbPulse {
  0%   { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Floating idle motion */
.redes-icons.in .ri-orb {
  animation: orbDrop .9s cubic-bezier(.34, 1.56, .64, 1) forwards,
             orbFloat 5s ease-in-out infinite;
}
.redes-icons.in .ri-orb:nth-child(1) { animation-delay: .05s, 1s; }
.redes-icons.in .ri-orb:nth-child(2) { animation-delay: .18s, 1.4s; }
.redes-icons.in .ri-orb:nth-child(3) { animation-delay: .31s, 1.8s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

.ri-orb:hover {
  animation-play-state: paused;
  transform: translateY(-12px) scale(1.08) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.ri-orb:hover .ri-svg {
  transform: scale(1.1) rotate(-6deg);
}

/* Label below */
.ri-label {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: color .25s ease, transform .25s ease;
}
.ri-orb:hover .ri-label {
  color: #fff;
  transform: translateX(-50%) translateY(2px);
}

@media (max-width: 600px) {
  .redes-icons { gap: 36px; padding-bottom: 40px; }
  .ri-orb { width: 90px; height: 90px; }
  .ri-label { font-size: 10px; top: calc(100% + 14px); }
}
.cta {
  background: var(--r-red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  z-index: 2;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.cta h2 {
  font-family: var(--f-display);
  font-size: clamp(44px, 6.5vw, 110px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cta p.lede {
  font-size: 18px;
  opacity: 0.92;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.cta-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  transition: padding-left .2s ease;
}
.cta-channel:last-child { border-bottom: 1px solid rgba(255,255,255,0.22); }
.cta-channel:hover { padding-left: 8px; }
.cta-channel .ic {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  flex-shrink: 0;
}
.cta-channel .ic svg { width: 18px; height: 18px; }
.cta-channel .lbl {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}
.cta-channel .val {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0;
}
.cta-channel .arrow {
  margin-left: auto;
  font-family: var(--f-display);
  font-size: 22px;
  opacity: 0.6;
  transition: transform .2s ease, opacity .2s ease;
}
.cta-channel:hover .arrow { transform: translateX(4px); opacity: 1; }

.contact-card {
  background: #fff;
  color: var(--r-ink);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  z-index: 2;
}
.contact-card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.contact-card .sub {
  color: var(--r-mute);
  font-size: 14px;
  margin-bottom: 24px;
}
.contact-card form {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-card label {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--r-mute);
  margin-bottom: 4px;
  display: block;
}
.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  background: var(--r-cream);
  border: 1px solid var(--r-line);
  padding: 12px 14px;
  font: 500 15px var(--f-body);
  color: var(--r-ink);
  outline: none;
  transition: border-color .15s, background .15s;
  border-radius: 0;
}
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  border-color: var(--r-red);
  background: #fff;
}
.contact-card textarea { resize: vertical; min-height: 90px; font-family: var(--f-body); }
.contact-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-card button.submit {
  background: var(--r-red);
  color: #fff;
  padding: 14px 22px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  cursor: pointer;
  transition: background .15s;
}
.contact-card button.submit:hover { background: var(--r-ink); }
.contact-card .legal {
  font-size: 11px;
  color: var(--r-mute);
  line-height: 1.5;
  margin-top: 4px;
}

.cta-bg-r {
  position: absolute;
  left: -8%;
  top: 50%; transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: 60vw;
  line-height: 0.8;
  color: rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card .row { grid-template-columns: 1fr; }
}

/* Floating contact button + menu */
.contact-fab-wrap {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 90;
}

.contact-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--r-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(255, 48, 0, 0.4);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  cursor: pointer;
  border: 0;
  position: relative;
  z-index: 2;
}
.contact-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255, 48, 0, 0.55); }
.contact-fab svg { width: 26px; height: 26px; }
.contact-fab .cf-close { display: none; }
.contact-fab-wrap.open .contact-fab { background: var(--r-ink); transform: rotate(0); }
.contact-fab-wrap.open .contact-fab .cf-chat { display: none; }
.contact-fab-wrap.open .contact-fab .cf-close { display: block; }

.contact-fab::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 48, 0, 0.5);
  animation: cfpulse 2.4s ease-out infinite;
  z-index: -1;
}
.contact-fab-wrap.open .contact-fab::after { display: none; }
@keyframes cfpulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.contact-menu {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  transform: translateY(8px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: bottom left;
}
.contact-menu[hidden] { display: none; }
.contact-fab-wrap.open .contact-menu {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.contact-menu .cm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 10px;
  color: var(--r-ink);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, transform .15s;
}
.contact-menu .cm-item:hover {
  background: var(--r-cream);
  transform: translateX(2px);
}
.contact-menu .cm-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.contact-menu .cm-ic svg { width: 18px; height: 18px; }
.contact-menu .cm-tx { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 13px; }

/* Stagger entrance animation */
.contact-fab-wrap.open .contact-menu .cm-item {
  animation: cmFade .28s ease both;
}
.contact-fab-wrap.open .contact-menu .cm-item:nth-child(1) { animation-delay: .02s; }
.contact-fab-wrap.open .contact-menu .cm-item:nth-child(2) { animation-delay: .06s; }
.contact-fab-wrap.open .contact-menu .cm-item:nth-child(3) { animation-delay: .10s; }
.contact-fab-wrap.open .contact-menu .cm-item:nth-child(4) { animation-delay: .14s; }
.contact-fab-wrap.open .contact-menu .cm-item:nth-child(5) { animation-delay: .18s; }
@keyframes cmFade {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

footer.foot {
  background: var(--r-ink);
  color: #fff;
  padding: 80px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.foot-brand img { height: 56px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.foot-brand h4 {
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.foot-brand p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; max-width: 320px; }
.foot-col h5 {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--r-red);
  font-weight: 700;
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: rgba(255,255,255,0.85); font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: var(--r-red); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  transition: all .15s;
}
.foot-bottom .socials a:hover { background: var(--r-red); border-color: var(--r-red); }

/* Developer credit */
.foot-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
}
.foot-credit:hover {
  border-color: #25D366;
  color: #fff;
  background: rgba(37, 211, 102, 0.12);
}
.foot-credit .fc-by { color: rgba(255,255,255,0.45); }
.foot-credit .fc-name {
  color: #fff;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.foot-credit .fc-dot {
  color: var(--r-red);
  margin: 0 1px;
}
.foot-credit .fc-wa {
  color: #25D366;
  flex-shrink: 0;
}
.foot-credit:hover .fc-wa {
  animation: cwaSpin .6s ease;
}
@keyframes cwaSpin {
  0% { transform: rotate(0); }
  50% { transform: rotate(-12deg) scale(1.15); }
  100% { transform: rotate(0); }
}

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============== MODAL ============== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal h3 {
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.modal .close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--r-line);
  font-size: 20px;
  background: #fff;
}

/* ============== SCROLL REVEAL ============== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track, .sectors-track, .contact-fab::after { animation: none !important; }
  .hero-fist img { animation: none !important; }
}

/* ============ MOBILE REFINEMENTS ============ */
@media (max-width: 700px) {
  :root { --pad-x: 18px; }
  section.s { padding: 64px 0; }

  .nav-inner { height: 64px; gap: 12px; }
  .nav-logo img { height: 32px; }
  .nav-logo > div > div:first-child { font-size: 15px; }
  .nav-logo small { font-size: 10px; }
  .nav-cta .btn { padding: 9px 14px; font-size: 11px; }

  /* HERO */
  .hero-grid { padding: 48px 0 96px; min-height: auto; gap: 24px; }
  .hero-tag { font-size: 12px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(44px, 13vw, 72px); line-height: 0.9; }
  .hero h1 .num { transform: none; padding: 0 0.08em; }
  .hero p.lede { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-bg-63 { font-size: 80vw; right: -8%; bottom: -4%; }
  .ticker-track { font-size: 12px; gap: 40px; padding: 12px 0; }
  .hero-ticker { padding: 0; }

  /* SECTIONS HEAD */
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(34px, 10vw, 56px); }
  .section-head .lede { font-size: 15px; }

  /* MV */
  .mv-card { padding: 28px 22px; }
  .mv-card p { font-size: 16px; }

  /* HISTORIA */
  .historia-body p { font-size: 16px; }
  .historia-side { gap: 12px; }
  .stat { padding: 22px 20px; }
  .stat .v { font-size: clamp(40px, 12vw, 56px); }
  .stat .l { font-size: 11px; letter-spacing: 0.12em; }
  .sectors-track { font-size: 13px; gap: 28px; }

  /* DIRECTOR (extra mobile tweaks; see main rules above for full layout) */
  .director-name { font-size: clamp(48px, 13vw, 80px); }

  /* ESCUELA */
  .escuela-card { padding: 28px 22px; }
  .escuela-modules { grid-template-columns: 1fr 1fr; gap: 1px; }
  .module { padding: 16px 14px; }
  .module .t { font-size: 13px; }
  .escuela-visual { padding: 28px 22px; aspect-ratio: auto; min-height: 360px; }
  .escuela-visual::before { font-size: 36vw; }

  /* GALERIA */
  .galeria-grid { grid-auto-rows: 140px; gap: 8px; }
  .galeria-tabs { gap: 6px; margin-bottom: 24px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .galeria-tabs::-webkit-scrollbar { display: none; }
  .galeria-tabs .tab { flex-shrink: 0; padding: 8px 14px; font-size: 11px; }
  .gal-item .meta .ti { font-size: 13px; }

  /* SEDES */
  .search-wrap input { padding: 14px 16px 14px 44px; font-size: 15px; }
  .filter-pills { gap: 6px; }
  .fpill { padding: 8px 12px; font-size: 11px; }
  .sedes-summary { font-size: 11px; margin-bottom: 12px; }
  .sedes-grid { gap: 10px; grid-template-columns: 1fr; }
  .sede-card { padding: 20px; }

  /* CTA / CONTACTO */
  .cta-inner { padding: 64px 0; }
  .cta h2 { font-size: clamp(40px, 12vw, 64px); }
  .cta p.lede { font-size: 16px; }
  .cta-channel .val { font-size: 16px; }
  .cta-channel .ic { width: 32px; height: 32px; }
  .contact-card { padding: 24px 20px; }
  .contact-card h3 { font-size: 22px; }

  /* FOOTER */
  footer.foot { padding: 56px 0 24px; }
  .foot-grid { gap: 28px; margin-bottom: 32px; }
  .foot-brand img { height: 44px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 18px; font-size: 10px; }

  /* Contact FAB safer position on mobile */
  .contact-fab-wrap { bottom: 16px; left: 16px; }
  .contact-fab { width: 52px; height: 52px; }
  .contact-fab svg { width: 22px; height: 22px; }
  .contact-menu { min-width: 200px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 32px; }
  .director-name { font-size: 44px; }
}
