/* Colcoders landing. Dark theme.
   Conversion color: every primary button uses brand pink (--cta). */

:root {
  --brand-pink: #CD185C;
  --brand-pink-hover: #E0286F;
  --brand-green: #30DD36;
  --brand-turquoise: #3FD3CB;
  --gray-50: #F7F8F8;

  --bg: #1A2022;
  --bg-alt: #232B2D;
  --surface: #20282A;
  --text: #F1F4F4;
  --text-sec: #A9B5B7;
  --accent: var(--brand-green);   /* figures, highlights */
  --on-accent: #12181A;
  --cta: var(--brand-pink);        /* the single conversion color */
  --on-cta: #FFFFFF;
  --border: #33403F;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --header-h: 72px;
  --radius: 12px;

  color-scheme: dark;
}

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

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brand-turquoise);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section { padding: clamp(64px, 8vw, 112px) 24px; }

.section-title {
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 40px 0;
  max-width: 60ch;
  color: var(--text-sec);
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Icons (Lucide, stroke-based) ---------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 36px; height: 36px; stroke-width: 1.75; }

/* ---------- Logo ---------- */
.logo {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-turq  { color: var(--brand-turquoise); text-shadow: 0 0 6px rgba(63,211,203,0.85), 0 0 14px rgba(63,211,203,0.5); }
.logo-pink  { color: var(--brand-pink);      text-shadow: 0 0 6px rgba(205,24,92,0.85), 0 0 14px rgba(205,24,92,0.5); }
.logo-green { color: var(--brand-green);     text-shadow: 0 0 6px rgba(48,221,54,0.85), 0 0 14px rgba(48,221,54,0.5); }
.logo-dot   { color: var(--text); }
.logo--inline { font-size: inherit; }
.logo--footer { font-size: 20px; }

/* ---------- Buttons: one conversion color ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms cubic-bezier(.2,.8,.2,1);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--on-cta);
  box-shadow: 0 6px 20px rgba(205, 24, 92, 0.35);
}
.btn-primary:hover { background: var(--brand-pink-hover); border-color: var(--brand-pink-hover); }

.btn-secondary {
  background: rgba(26, 32, 34, 0.25);
  border-color: var(--gray-50);
  color: var(--gray-50);
}
.btn-secondary:hover { border-color: var(--cta); background: rgba(205, 24, 92, 0.18); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; box-shadow: none; }
.btn-block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row--center { justify-content: center; margin-top: 40px; }

.goal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(63, 211, 203, 0.6);
  border-radius: 999px;
  background: rgba(18, 24, 26, 0.6);
  color: var(--brand-turquoise);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.goal-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-turquoise);
  box-shadow: 0 0 8px var(--brand-turquoise);
}
.goal-pill--inline { vertical-align: middle; font-size: 15px; margin-left: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-bar > .logo { display: flex; align-items: center; height: 40px; }

.nav { display: flex; align-items: center; gap: 24px; }

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}
.nav-link:hover { color: #FFFFFF; border-bottom-color: var(--cta); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mobile-menu[hidden] { display: none; }

.mobile-nav-link {
  padding: 14px 0;
  font-size: 17px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:last-child { border-bottom: none; }

@media (max-width: 1079.98px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
}
@media (min-width: 1080px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 520px;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Left-to-right dark overlay: keeps the white text legible and mutes the
   bright shapes on the left of the photo, while the faces on the right/bottom
   stay clear. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,24,26,0.9) 0%, rgba(18,24,26,0.78) 38%, rgba(18,24,26,0.3) 62%, rgba(18,24,26,0) 80%),
    linear-gradient(180deg, rgba(18,24,26,0.35) 0%, rgba(18,24,26,0) 30%);
}

.hero-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 52px) 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.hero-eyebrow { margin: 0 0 16px 0; }

.hero-title {
  margin: 0 0 18px 0;
  max-width: 21ch;
  color: #FFFFFF;
  font-size: clamp(28px, 3.3vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  margin: 0 0 28px 0;
  max-width: 46ch;
  color: #E6ECEC;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero-sub strong { color: #FFFFFF; }

/* Mobile: photo on top, text block below on the solid background. */
@media (max-width: 767.98px) {
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-img { height: 100%; object-fit: cover; object-position: center 60%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(18,24,26,0) 60%, var(--bg) 100%); }
  .hero-content {
    position: static;
    padding: 8px 20px 48px 20px;
    background: var(--bg);
  }
  .hero-title { max-width: none; text-shadow: none; }
  .hero-sub { text-shadow: none; }
  .hero .cta-row { width: 100%; }
  .hero .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- El problema y la solución ---------- */
.porque { background: var(--bg); }

.porque .section-title { margin-bottom: 40px; }

.porque-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}

.porque-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.porque-card--problema { background: var(--surface); color: var(--text-sec); }
.porque-card--problema .icon { color: var(--text-sec); }
.porque-card--solucion {
  background: linear-gradient(160deg, rgba(48,221,54,0.10), rgba(63,211,203,0.06));
  border-color: rgba(48, 221, 54, 0.45);
}
.porque-card--solucion .icon { color: var(--accent); }

.porque-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.porque-card--problema .porque-tag { background: rgba(169,181,183,0.14); color: var(--text-sec); }
.porque-card--solucion .porque-tag { background: var(--accent); color: var(--on-accent); }

.porque-stat {
  margin: 4px 0 0 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.porque-card--solucion .porque-stat { color: var(--accent); font-size: clamp(32px, 3.6vw, 44px); }

.porque-text {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.5;
}

.porque-apoyo {
  margin: 4px 0 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 16px;
  line-height: 1.55;
}
.porque-card--solucion .porque-apoyo { border-top-color: rgba(48, 221, 54, 0.3); color: #C9D3D4; }
.porque-dato { color: var(--accent); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.porque-fuente {
  margin: auto 0 0 0;
  padding-top: 8px;
  color: #8C989A;
  font-size: 12.5px;
  line-height: 1.4;
}

.porque-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cta);
  text-underline-offset: 4px;
}
.porque-link .icon { width: 16px; height: 16px; color: #FF4F8F; transition: transform 160ms ease; }
.porque-link:hover .icon { transform: translateX(3px); }

.porque-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.porque-arrow .icon { width: 32px; height: 32px; }

@media (max-width: 799.98px) {
  .porque-grid { grid-template-columns: 1fr; }
  .porque-arrow { transform: rotate(90deg); }
}

/* ---------- Nuestro impacto ---------- */
.impacto {
  padding: clamp(64px, 8vw, 112px) 24px;
  background: var(--bg-alt);
}

.impacto-highlight {
  display: inline-block;
  margin: 0 0 48px 0;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
}

.impacto-title {
  margin: 0 0 24px 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.impacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.impacto-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.impacto-num {
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.impacto-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-50);
}

.js-motion .impacto .reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 420ms ease-out;
}
.js-motion .impacto .impacto-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}
.js-motion .impacto .impacto-card:nth-child(2) { transition-delay: 80ms; }
.js-motion .impacto .impacto-card:nth-child(3) { transition-delay: 160ms; }
.js-motion .impacto .impacto-card:nth-child(4) { transition-delay: 240ms; }
.js-motion .impacto.is-highlight .impacto-highlight,
.js-motion .impacto.is-title .impacto-title { clip-path: inset(0 0 0 0); }
.js-motion .impacto.is-cards .impacto-card { opacity: 1; transform: translateY(0); }

/* ---------- Egresados: qué pasó después ---------- */
.egresados { margin-top: 56px; }
.egresados-title {
  margin: 0 0 20px 0;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.egresados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.egresado {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cta);
  background: var(--bg);
}
.egresado-foto {
  width: 104px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brand-turquoise);
  box-shadow: 0 0 0 6px rgba(63, 211, 203, 0.12);
  background: var(--bg-alt);
}
.egresado-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.egresado-texto { margin: 0; flex: 1; }
.egresado-texto p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
}
.egresado-autor { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--border); }
.egresado-nombre { color: var(--text); font-size: 16px; font-weight: 700; }
.egresado-cargo { color: var(--brand-turquoise); font-size: 14px; font-weight: 500; line-height: 1.4; }

@media (max-width: 899.98px) {
  .egresados-grid { grid-template-columns: 1fr; }
  .egresado { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
  .egresado-foto { grid-row: span 2; width: 88px; }
}
@media (max-width: 479.98px) {
  .egresado { display: flex; }
}

/* ---------- Quiénes somos ---------- */
.quienes {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.quienes-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.parallax-on .quienes-img { top: -6%; height: 112%; will-change: transform; }

.quienes-veil { position: absolute; inset: 0; background: rgba(26, 32, 34, 0.35); }

.quienes-panel {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: clamp(20px, 5vw, 48px) clamp(20px, 6vw, 80px);
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(26, 32, 34, 0.86);
}

.quienes-title {
  margin: 0 0 20px 0;
  color: #F1F4F4;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
}
.quienes-title span { background: var(--accent); color: var(--on-accent); padding: 2px 10px; }

.quienes-panel p { margin: 0; color: #F1F4F4; font-size: 18px; line-height: 1.6; }

/* ---------- Transparencia: aporte ---------- */
.aporte { background: var(--bg); }

/* Fila principal: beca (acción) + meta (efecto), lado a lado */
.aporte-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.aporte-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.aporte-card--destacada {
  border: 2px solid var(--cta);
  background: linear-gradient(170deg, rgba(205,24,92,0.16), var(--surface) 70%);
}

.aporte-badge {
  position: absolute;
  top: -13px;
  right: 20px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--on-cta);
  font-size: 12px;
  font-weight: 700;
}

.beca-foto {
  position: relative;
  margin: -32px -28px 8px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.beca-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 45%;
  background: var(--bg-alt);
}
.beca-foto figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 10px;
  background: linear-gradient(to top, rgba(18,24,26,0.85), rgba(18,24,26,0));
  color: #E6ECEC;
  font-size: 12.5px;
  font-weight: 500;
}

.beca-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.aporte-nombre { margin: 0; color: var(--text); font-size: 22px; font-weight: 700; }
.aporte-cop { margin: 2px 0 0 0; color: #8C989A; font-size: 14px; font-variant-numeric: tabular-nums; }
.aporte-monto {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.aporte-monto span:last-child { font-size: 0.4em; font-weight: 600; color: var(--text-sec); letter-spacing: 0.04em; }

.beca-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(205, 24, 92, 0.35);
}
.beca-selector-label { color: var(--text); font-size: 16px; font-weight: 600; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #4A5557;
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.stepper-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.stepper-btn:hover:not(:disabled) { background: rgba(205, 24, 92, 0.2); }
.stepper-btn:disabled { color: #5C6A6D; cursor: not-allowed; }
.stepper-valor {
  min-width: 44px;
  text-align: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.beca-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(18, 24, 26, 0.6);
}
.beca-total-label { color: var(--text-sec); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.beca-total-usd { color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.beca-total-cop { color: #C9D3D4; font-size: 14px; font-variant-numeric: tabular-nums; }
.beca-total-nota { margin-top: 4px; color: #FF4F8F; font-size: 13px; font-weight: 600; }

#beca-card .btn-block { margin-top: 6px; }
.beca-nota { margin: 0; color: #8C989A; font-size: 13px; text-align: center; }

/* ---------- Meta: avance de becas ---------- */
.meta-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(63,211,203,0.10), transparent 70%),
    var(--surface);
}

.meta-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-turquoise);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-cifra { margin: 0; display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.meta-cifra-num {
  color: var(--text);
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.meta-cifra-de { color: var(--text-sec); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
.meta-cifra-label { margin: 8px 0 18px 0; color: var(--text); font-size: 17px; font-weight: 500; }

.meta-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.meta-bar-fill,
.meta-bar-tuyo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  transition: width 320ms ease-out, left 320ms ease-out;
}
.meta-bar-fill { background: var(--cta); border-radius: 999px 0 0 999px; z-index: 1; }
.meta-bar-tuyo { background: repeating-linear-gradient(-45deg, var(--brand-turquoise) 0 6px, rgba(63,211,203,0.6) 6px 12px); }

.meta-pct { margin: 10px 0 0 0; color: var(--text-sec); font-size: 15px; }
.meta-pct strong { color: var(--text); font-variant-numeric: tabular-nums; }

.meta-faltan {
  margin: auto 0 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.meta-corte { margin: -16px 0 0 0; color: #8C989A; font-size: 13px; }
.meta-corte[hidden] { display: none; }

/* 50 cupos dibujados como personas */
.cupos {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(8px, 1.2vw, 14px) clamp(4px, 0.8vw, 10px);
}
.cupo {
  position: relative;
  width: 100%;
  max-width: 34px;
  aspect-ratio: 3 / 4;
  justify-self: center;
  --cupo-color: #3A4547;
  transition: transform 220ms ease;
}
.cupo::before,
.cupo::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cupo-color);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
.cupo::before { top: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; }
.cupo::after { bottom: 0; width: 88%; height: 46%; border-radius: 999px 999px 4px 4px; }
.cupo--financiada { --cupo-color: var(--cta); }
.cupo--financiada::before, .cupo--financiada::after { box-shadow: 0 0 10px rgba(205,24,92,0.45); }
.cupo--tuyo { --cupo-color: var(--brand-turquoise); transform: translateY(-3px); }
.cupo--tuyo::before, .cupo--tuyo::after { box-shadow: 0 0 10px rgba(63,211,203,0.55); }

.cupos-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-sec);
  font-size: 14px;
}
.cupos-leyenda li { display: inline-flex; align-items: center; gap: 8px; }
.cupo-dot { width: 12px; height: 12px; border-radius: 50%; background: #3A4547; }
.cupo-dot--financiada { background: var(--cta); }
.cupo-dot--tuyo { background: var(--brand-turquoise); }

/* ---------- Aportes menores (opción secundaria) ---------- */
.aporte-menor { margin-top: 40px; }
.aporte-menor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.aporte-menor-title { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; }
.aporte-menor-sub { margin: 0; color: var(--text-sec); font-size: 15px; }

.aporte-menor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.aporte-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.aporte-chip > .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(63, 211, 203, 0.12);
  color: var(--brand-turquoise);
}
.aporte-chip-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.aporte-chip-monto { color: var(--text); font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.aporte-chip-monto small { color: var(--text-sec); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.aporte-chip-desc { color: var(--text-sec); font-size: 14px; }
.aporte-chip-cop { color: #8C989A; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.aporte-chip-go { color: #FF4F8F; display: inline-flex; }
.aporte-chip-go .icon { width: 20px; height: 20px; transition: transform 160ms ease; }
.aporte-chip:hover,
.aporte-chip:focus-visible { border-color: var(--cta); background: linear-gradient(170deg, rgba(205,24,92,0.10), var(--surface) 70%); }
.aporte-chip:hover .aporte-chip-go .icon,
.aporte-chip:focus-visible .aporte-chip-go .icon { transform: translateX(4px); }

@media (max-width: 959.98px) {
  .aporte-layout { grid-template-columns: 1fr; gap: 24px; }
  .aporte-menor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479.98px) {
  .beca-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .beca-selector-label { white-space: nowrap; }
}

/* ---------- Formación ---------- */
.formacion { padding: clamp(64px, 8vw, 112px) 0; background: var(--bg-alt); }

.formacion-title {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px 24px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
}

.evento-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: var(--bg);
  font-family: var(--font-sans);
}
.evento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.evento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: rgba(26, 32, 34, 0.18);
  transition: background 0.18s ease;
}
.evento-info { display: none; }
.evento-tile:hover .evento-overlay,
.evento-tile:focus-visible .evento-overlay { background: rgba(26, 32, 34, 0.82); }
.evento-tile:hover .evento-info,
.evento-tile:focus-visible .evento-info { display: block; }

.evento-nombre { margin-bottom: 4px; color: var(--accent); font-size: 18px; font-weight: 700; }
.evento-asistentes { margin-bottom: 8px; color: #F1F4F4; font-size: 13px; }
.evento-resumen { margin-bottom: 14px; color: #D6DCDC; font-size: 13px; line-height: 1.4; }
.evento-ver {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #F1F4F4;
  border-radius: var(--radius);
  color: #F1F4F4;
  font-size: 13px;
  font-weight: 600;
}

@media (hover: none) {
  .evento-overlay,
  .evento-tile:hover .evento-overlay { background: linear-gradient(to top, rgba(26,32,34,0.88) 0%, rgba(26,32,34,0) 55%); }
  .evento-info { display: block; }
  .evento-info > :not(.evento-nombre) { display: none; }
  .evento-nombre { margin-bottom: 0; }
}

/* ---------- El Reto (empresas) ---------- */
.reto {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 24px;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(205,24,92,0.22), transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(63,211,203,0.10), transparent 70%),
    #151B1D;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.reto-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.reto-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: #FF4F8F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reto-title {
  margin: 0 0 20px 0;
  color: #FFFFFF;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.reto-text {
  margin: 0 0 28px 0;
  max-width: 56ch;
  color: #DCE3E3;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.reto-pasos {
  list-style: none;
  margin: 0 0 36px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reto-pasos li { display: flex; align-items: flex-start; gap: 14px; color: var(--text); font-size: 17px; line-height: 1.45; }
.reto-pasos .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(205, 24, 92, 0.16);
  color: #FF4F8F;
}
.reto-pasos li span { padding-top: 9px; }

.reto-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius);
  border: 1px solid rgba(205, 24, 92, 0.5);
  background: rgba(18, 24, 26, 0.7);
}
.reto-meta-num {
  font-size: clamp(96px, 14vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--cta);
  text-shadow: 0 0 40px rgba(205, 24, 92, 0.45);
}
.reto-meta-label { margin-top: 12px; color: var(--text); font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.3; }
.reto-meta-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; color: var(--text-sec); font-size: 15px; }

/* Photo of the youth at work, with the goal badge overlapping it */
.reto-visual { position: relative; padding: 0 0 48px 0; }
.reto-foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 75%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.reto-visual .reto-meta {
  position: absolute;
  right: -24px;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  max-width: 320px;
  padding: 16px 22px;
  background: rgba(18, 24, 26, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.reto-visual .reto-meta-num { grid-row: span 2; font-size: clamp(56px, 5.4vw, 76px); }
.reto-visual .reto-meta-label { margin-top: 0; font-size: 16px; line-height: 1.3; }
.reto-visual .reto-meta-foot { margin-top: 6px; padding-top: 6px; font-size: 12.5px; line-height: 1.35; }

@media (max-width: 899.98px) {
  .reto-inner { grid-template-columns: 1fr; }
  .reto-visual .reto-meta { right: 16px; }
}
@media (max-width: 479.98px) {
  .reto-visual { padding-bottom: 0; }
  .reto-visual .reto-meta { position: relative; right: auto; margin: -28px 12px 0; max-width: none; }
}

/* ---------- Brecha de talento digital (dentro de El Reto) ---------- */
.brecha {
  --demanda: #26AAA3;
  --oferta: #E0286F;
  margin-bottom: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.brecha-head { max-width: 720px; margin-bottom: 32px; }
.brecha-title {
  margin: 0 0 12px 0;
  color: #FFFFFF;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.brecha-lead { margin: 0; color: #C9D3D4; font-size: 17px; line-height: 1.6; }

.brecha-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.brecha-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 24, 26, 0.7);
}
.brecha-stat-num {
  color: var(--text);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.brecha-stat-label { color: var(--text-sec); font-size: 15px; line-height: 1.4; }

.brecha-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.brecha-chart {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 24, 26, 0.7);
}
.brecha-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.brecha-chart-title { margin: 0; color: var(--text); font-size: 18px; font-weight: 700; }

.brecha-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 14px;
}
.brecha-legend li { display: inline-flex; align-items: center; gap: 8px; }
.brecha-legend small { color: var(--text-sec); font-size: 12px; }
.brecha-key { width: 12px; height: 12px; border-radius: 3px; }
.brecha-key--demanda { background: var(--demanda); }
.brecha-key--oferta { background: var(--oferta); }

.brecha-rows { margin: 0; padding: 0; list-style: none; }
.brecha-row {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  outline: none;
  transition: background-color 140ms ease;
}
.brecha-row + .brecha-row { border-top: 1px solid rgba(51, 64, 63, 0.6); }
.brecha-row:hover,
.brecha-row:focus-visible { background: rgba(255, 255, 255, 0.04); }
.brecha-row:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-turquoise); }

.brecha-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.3; }
.brecha-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(48, 221, 54, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.brecha-bars { display: flex; flex-direction: column; gap: 2px; padding-right: 64px; }
.brecha-bar {
  position: relative;
  width: var(--v);
  min-width: 4px;
  height: 14px;
  border-radius: 0 4px 4px 0;
}
.brecha-bar--demanda { background: var(--demanda); }
.brecha-bar--oferta { background: var(--oferta); }
.brecha-bar span {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.brecha-bar--oferta span { color: var(--text-sec); font-weight: 500; }

.brecha-tip {
  position: absolute;
  right: 8px;
  top: -6px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0F1416;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 120ms ease;
}
.brecha-row:hover .brecha-tip,
.brecha-row:focus-visible .brecha-tip { opacity: 1; }

.brecha-tabla { margin-top: 16px; color: var(--text-sec); font-size: 14px; }
.brecha-tabla summary { cursor: pointer; color: var(--text-sec); text-decoration: underline; text-underline-offset: 3px; }
.brecha-tabla table { width: 100%; margin-top: 12px; border-collapse: collapse; color: var(--text); }
.brecha-tabla th, .brecha-tabla td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; font-variant-numeric: tabular-nums; }
.brecha-tabla thead th { color: var(--text-sec); font-weight: 600; }
.brecha-tabla td { text-align: right; }

.brecha-hallazgo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(224, 40, 111, 0.55);
  background: linear-gradient(170deg, rgba(205,24,92,0.20), rgba(18,24,26,0.7) 70%);
}
.brecha-hallazgo-kicker { color: #FF4F8F; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brecha-hallazgo-title { margin: 0; color: #FFFFFF; font-size: 24px; font-weight: 700; }
.brecha-hallazgo-text { margin: 0; color: #DCE3E3; font-size: 16px; line-height: 1.55; }
.brecha-hallazgo-text strong { color: #FFFFFF; }
.brecha-hallazgo-text--ours { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(224, 40, 111, 0.35); color: var(--text-sec); font-size: 15px; }

.brecha-nota { margin: 16px 0 0 0; color: #8C989A; font-size: 12.5px; line-height: 1.5; max-width: 90ch; }

@media (max-width: 899.98px) {
  .brecha-body { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
  .brecha-stats { grid-template-columns: 1fr; }
  .brecha-row { grid-template-columns: 1fr; gap: 10px; }
  .brecha-tip { display: none; }
}

/* ---------- Aliados ---------- */
.aliados { background: #FFFFFF; padding-bottom: clamp(48px, 6vw, 72px); }
.aliados .section-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 32px; color: #303A3C; }

.aliados-logos { display: flex; flex-wrap: wrap; gap: 20px; }
.aliado {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 120px;
  padding: 18px 28px;
  border-radius: var(--radius);
  border: 1px solid #E2E7E7;
  background: #FFFFFF;
}
.aliado img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.aliados-cta { margin: 28px 0 0 0; color: #5C6A6D; font-size: 17px; }
.aliados :focus-visible { outline-color: var(--brand-pink); }
.aliados-cta a { color: var(--brand-pink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 559.98px) {
  .aliado { width: calc(50% - 10px); height: 100px; padding: 14px 18px; }
}

/* ---------- Contacto: vías para involucrarse ---------- */
.contacto { background: var(--bg-alt); border-top: 1px solid var(--border); }
.contacto-head { max-width: 760px; }
.contacto-head .section-lead { margin-bottom: 40px; }

.vias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.via-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.via-card:hover,
.via-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cta);
  background: linear-gradient(170deg, rgba(205,24,92,0.10), var(--bg) 60%);
}

.via-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(63, 211, 203, 0.12);
  color: var(--brand-turquoise);
}
.via-card--aporte .via-icon { background: rgba(205, 24, 92, 0.16); color: #FF4F8F; }

.via-aud { color: var(--text-sec); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.via-title { color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.25; }
.via-desc { color: var(--text-sec); font-size: 15px; line-height: 1.5; }

.via-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: #FF4F8F;
  font-size: 15px;
  font-weight: 700;
}
.via-go .icon { width: 18px; height: 18px; transition: transform 160ms ease; }
.via-card:hover .via-go .icon,
.via-card:focus-visible .via-go .icon { transform: translateX(4px); }

.contacto-otro { margin: 28px 0 0 0; color: var(--text-sec); font-size: 16px; }
.contacto-otro a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cta); text-underline-offset: 4px; }

@media (max-width: 959.98px) { .vias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599.98px) { .vias-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(56px, 7vw, 80px) 24px 28px;
  background: #12181A;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
  gap: 40px 32px;
  padding-bottom: 40px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 320px; }
.footer-tagline { margin: 0; color: var(--text-sec); font-size: 15px; line-height: 1.55; }

.footer-col-title {
  margin: 0 0 14px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-sec);
  font-size: 15px;
  transition: color 140ms ease;
}
.footer-col a:hover,
.footer-col a:focus-visible { color: var(--text); text-decoration: underline; text-decoration-color: var(--cta); text-underline-offset: 4px; }

.footer-social .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 140ms ease, color 140ms ease;
}
.footer-social a:hover .icon,
.footer-social a:focus-visible .icon { border-color: var(--cta); color: #FF4F8F; }

.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); }
.footer-note { margin: 0 0 12px 0; color: #8C989A; font-size: 13px; line-height: 1.5; }
.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
}
.footer-copy { margin: 0; color: #8C989A; font-size: 13px; }
.footer-top-link { color: var(--text-sec); font-size: 13px; font-weight: 600; }
.footer-top-link:hover { color: var(--text); }

@media (max-width: 899.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 479.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 24, 26, 0.82);
  animation: cc-fadein 160ms ease-out;
}
.modal-overlay[hidden] { display: none; }
@keyframes cc-fadein { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--bg);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.modal-info { padding: 32px; }
.modal-title { margin: 0 0 12px 0; padding-right: 40px; color: var(--text); font-size: 24px; font-weight: 700; }
.modal-title span {
  background: var(--accent);
  color: var(--on-accent);
  padding: 2px 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.modal-asistentes { margin-bottom: 16px; color: var(--text); font-size: 15px; font-weight: 700; }
.modal-asistentes:empty { display: none; }
.modal-datos { margin: 0 0 16px 0; padding-left: 18px; color: var(--text-sec); font-size: 14px; line-height: 1.8; }
.modal-desc { margin: 0; max-width: 65ch; color: var(--text-sec); font-size: 15px; line-height: 1.6; }
.modal-media { position: relative; min-height: 320px; background: var(--bg-alt); }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius);
  background: rgba(26, 32, 34, 0.6);
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
}
.modal-arrow[hidden] { display: none; }
.modal-arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.modal-arrow--prev { left: 12px; }
.modal-arrow--next { right: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
