:root {
  --purple: #6f60a8;
  --purple-dark: #3e336f;
  --purple-soft: #9185c7;
  --aqua: #95dce2;
  --aqua-dark: #36aeb8;
  --paper: #f7f2f6;
  --ink: #1e1b2e;
  --muted: #6b6080;
  --coral: #e88472;
  --white: #ffffff;
  --line: rgba(111, 96, 168, 0.14);
  --shadow-sm: 0 1px 2px rgba(62,51,111,0.04), 0 4px 12px rgba(62,51,111,0.06);
  --shadow: 0 1px 2px rgba(62,51,111,0.04), 0 8px 24px rgba(62,51,111,0.08), 0 24px 48px rgba(62,51,111,0.06);
  --shadow-lg: 0 2px 4px rgba(62,51,111,0.04), 0 12px 32px rgba(62,51,111,0.12), 0 32px 64px rgba(62,51,111,0.10);
  --radius: 10px;
  --radius-lg: 16px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Tamaño base de carga en todos los dispositivos (PC, tablet y móvil).
     El usuario puede ampliar/reducir con el zoom del navegador por encima. */
  zoom: 0.88;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(at 20% 10%, rgba(111,96,168,0.06) 0px, transparent 60%),
    radial-gradient(at 90% 5%,  rgba(149,220,226,0.07) 0px, transparent 55%),
    radial-gradient(at 60% 90%, rgba(232,132,114,0.04) 0px, transparent 50%);
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(111, 96, 168, 0.10);
  background: rgba(247, 242, 246, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(111,96,168,0.08), 0 4px 24px rgba(62,51,111,0.10);
  background: rgba(247, 242, 246, 0.92);
}

/* Header se compacta al hacer scroll */
.site-header.scrolled .nav { min-height: 62px; }
.site-header.scrolled .brand img {
  width: 44px;
  height: 44px;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.nav {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: min-height 0.3s var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--purple-dark);
  transition: transform 0.3s var(--spring);
}

.brand:hover { transform: translateY(-1px); }

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(149,220,226,0.25), rgba(111,96,168,0.18));
  box-shadow: 0 4px 14px rgba(62,51,111,0.12);
  transition: transform 0.4s var(--spring), box-shadow 0.3s ease;
}

.brand:hover img {
  transform: rotate(-5deg) scale(1.06);
  box-shadow: 0 8px 22px rgba(62,51,111,0.22);
}

.brand span {
  max-width: 136px;
  line-height: 1.1;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--purple-dark);
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links a {
  position: relative;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--purple-dark);
  transition: background 0.25s var(--ease-out), transform 0.25s var(--spring), color 0.2s ease;
  display: inline-block;
}

/* Subrayado animado que crece desde el centro */
.nav-links a:not(.donate)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--aqua-dark);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:not(.donate):hover {
  background: rgba(149, 220, 226, 0.22);
  transform: translateY(-1px);
}

.nav-links a:not(.donate):hover::after { width: 22px; }

.nav-links a.active {
  background: linear-gradient(135deg, rgba(149,220,226,0.4), rgba(149,220,226,0.22));
  box-shadow: inset 0 0 0 1px rgba(54,174,184,0.25);
}

.nav-links a.active::after { width: 22px; }

/* Los íconos del menú solo se muestran en el panel móvil expandible */
.nav-ico { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   WIDGET DE EMERGENCIA — "Ruta de Ayuda Psicológica" (flotante permanente)
   ══════════════════════════════════════════════════════════════════════ */
.sos-fab {
  position: fixed;
  right: 20px;
  bottom: 96px; /* elevado para no tapar el banner/footer inferior */
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 20px 14px 15px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  /* Degradado vivo con luz superior (acabado "botón de cristal") */
  background:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 46%),
    linear-gradient(120deg, #f09a84, var(--coral) 42%, #c9503b 85%);
  background-size: 100% 100%, 220% 220%;
  animation: sosGrad 7s ease-in-out infinite;
  /* Sombras en capas + halo del color del botón */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 3px 8px rgba(201, 80, 59, 0.28),
    0 12px 30px rgba(201, 80, 59, 0.4),
    0 3px 10px rgba(62, 51, 111, 0.16);
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease, filter 0.3s ease;
}

/* Destello que recorre el botón cada pocos segundos */
.sos-fab::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -55%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-20deg);
  animation: sosSheen 4.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes sosSheen {
  0%, 58%  { left: -55%; }
  82%, 100%{ left: 140%; }
}
@keyframes sosGrad {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50%      { background-position: 0 0, 100% 50%; }
}

.sos-fab:hover {
  transform: translateY(-3px) scale(1.035);
  filter: saturate(1.12) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 6px 14px rgba(201, 80, 59, 0.32),
    0 20px 44px rgba(201, 80, 59, 0.48),
    0 4px 14px rgba(62, 51, 111, 0.2);
}
.sos-fab:active { transform: translateY(-1px) scale(0.99); }
.sos-fab:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.75); outline-offset: 3px; }

.sos-fab .sos-fab-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.34), rgba(255,255,255,0.14));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 6px rgba(160, 55, 38, 0.28);
}
/* Corazón relleno con latido sutil */
.sos-fab .sos-fab-ico svg {
  fill: #fff;
  stroke: #fff;
  filter: drop-shadow(0 1px 2px rgba(160, 55, 38, 0.35));
  animation: sosBeat 2.3s ease-in-out infinite;
}
@keyframes sosBeat {
  0%, 40%, 100% { transform: scale(1); }
  48%           { transform: scale(1.14); }
  56%           { transform: scale(1); }
  64%           { transform: scale(1.1); }
  72%           { transform: scale(1); }
}
/* Anillo latente que llama la atención */
.sos-fab .sos-fab-ico::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: sosPulse 2.3s ease-out infinite;
}
@keyframes sosPulse {
  0%   { transform: scale(0.82); opacity: 0.85; }
  70%  { transform: scale(1.32); opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay + modal */
.sos-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(30, 27, 46, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sos-overlay.open { opacity: 1; visibility: visible; }

.sos-modal {
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s var(--spring);
  overscroll-behavior: contain;
}
.sos-overlay.open .sos-modal { transform: none; }

.sos-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: 24px 24px 0 0;
}
.sos-head .sos-back {
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  place-items: center;
  flex-shrink: 0;
}
.sos-head .sos-back.show { display: grid; }
.sos-head h3 { margin: 0; font-size: 1.05rem; flex: 1; line-height: 1.25; }
.sos-head .sos-close {
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.sos-head .sos-close:hover, .sos-head .sos-back:hover { background: rgba(255,255,255,0.32); }

.sos-body { padding: 16px 18px 20px; }
.sos-intro { margin: 2px 4px 14px; color: var(--muted); font-size: 0.92rem; }

.sos-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--spring), border-color 0.2s ease, background 0.2s ease;
}
.sos-item:hover { transform: translateY(-2px); border-color: rgba(111,96,168,0.4); background: rgba(149,220,226,0.10); }
.sos-item .sos-item-ico {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(111,96,168,0.09);
  color: var(--purple);
}
.sos-item strong { display: block; font-weight: 800; font-size: 0.97rem; }
.sos-item span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }

/* Variante de emergencia (roja) */
.sos-item.danger { border-color: rgba(209,91,72,0.35); background: rgba(232,132,114,0.07); }
.sos-item.danger .sos-item-ico { background: rgba(209,91,72,0.14); color: #c9503b; }
.sos-item.danger:hover { background: rgba(232,132,114,0.14); }

/* Bloque de consejos (primeros auxilios) */
.sos-tips {
  margin: 4px 0 14px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(149,220,226,0.14);
  border: 1px solid rgba(54,174,184,0.2);
}
.sos-tips li { margin: 0 0 8px 2px; font-size: 0.9rem; line-height: 1.45; }
.sos-tips li:last-child { margin-bottom: 0; }
.sos-tips strong { color: var(--purple-dark); }

@media (max-width: 520px) {
  .sos-fab { right: 14px; bottom: 86px; padding: 12px 15px 12px 13px; font-size: 0.84rem; }
  .sos-fab .sos-fab-label { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .sos-fab,
  .sos-fab::after,
  .sos-fab .sos-fab-ico::after,
  .sos-fab .sos-fab-ico svg { animation: none; }
}

@keyframes navPanelPop {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-btn {
  flex-shrink: 0;
  padding: 7px 13px;
  border: 1.5px solid rgba(111,96,168,0.5);
  border-radius: 999px;
  background: rgba(111,96,168,0.06);
  color: var(--purple-dark);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s ease,
              border-color 0.2s ease, transform 0.2s var(--spring),
              box-shadow 0.2s ease;
}

.lang-btn:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(111,96,168,0.28);
}

.lang-btn:active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

.admin-login-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1.5px solid rgba(111,96,168,0.45);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--purple-dark);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 6px 18px rgba(62,51,111,0.12);
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  background: var(--purple-dark);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(62,51,111,0.28);
}

.admin-login-btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.donate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef9382, var(--coral) 60%, #d96d59);
  color: var(--white);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(232, 132, 114, 0.4);
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease;
}

/* Brillo que barre al hover */
.donate::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
}

.donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 132, 114, 0.55);
}

.donate:hover::before { left: 130%; }

.donate:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(62, 51, 111, 0.86) 0%, rgba(62, 51, 111, 0.62) 44%, rgba(62, 51, 111, 0.16) 100%),
    url("../assets/hero-community.jpg") center / cover;
  color: var(--white);
}

.hero-inner,
.page-hero-inner,
.section-inner,
.footer-inner {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 700px;
  padding: 72px 0;
  will-change: transform;
}

/* Hero h1 shimmer sweep */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 {
    background: linear-gradient(
      105deg,
      #ffffff          0%,
      #cef0f3         30%,
      rgba(255,255,255,0.6) 48%,
      #ffffff          52%,
      #cef0f3         70%,
      #95dce2        100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear 1.2s infinite;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--aqua);
}

/* Eyebrow line se dibuja al cargar */
@keyframes lineIn {
  from { width: 0; opacity: 0; }
  to   { width: 38px; opacity: 1; }
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 3px;
  background: var(--aqua);
  animation: lineIn 0.55s var(--ease-out) 0.3s both;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
  color: var(--purple-dark);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6.8rem);
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 22px 0 30px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease-out),
              background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.button.primary {
  background: var(--aqua);
  color: var(--purple-dark);
  box-shadow: 0 2px 8px rgba(149,220,226,0.35);
}

.button.primary:hover {
  box-shadow: 0 6px 20px rgba(149,220,226,0.5);
  background: #a8e5ea;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}

.stat {
  min-height: 130px;
  padding: 26px 32px;
  background: var(--white);
  transition: background 0.25s var(--ease-out), transform 0.25s var(--spring);
  cursor: default;
}

.stat:hover {
  background: rgba(149,220,226,0.12);
  transform: translateY(-2px);
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--purple);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--white);
}

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(1.7rem, 4vw, 3.5rem);
}

.section-title p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mp-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(111,96,168,0.10);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out),
              border-color 0.3s ease;
}

.mp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(111,96,168,0.18);
}

.mp-card::before {
  content: "";
  display: block;
  height: 9px;
  background: linear-gradient(90deg, var(--aqua) 0 72%, var(--purple) 72% 100%);
}

.mp-card.pad {
  padding: 28px;
}

.mp-card h3 {
  font-size: 1.25rem;
}

.mp-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.obj-num {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(111, 96, 168, 0.09);
  user-select: none;
  font-family: 'Playfair Display', serif;
  transition: transform 0.3s var(--spring), color 0.3s ease;
}

.mp-card:hover .obj-num {
  transform: scale(1.1) translateY(-2px);
  color: rgba(111, 96, 168, 0.22);
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(149, 220, 226, 0.28);
  border: 1px solid rgba(149,220,226,0.45);
  color: var(--purple-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 10px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease-out);
}

/* Tinte de marca sutil que desaparece al hover */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(111,96,168,0.18), rgba(54,174,184,0.10));
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 0.5s var(--ease-out);
}

.image-frame:hover::after { opacity: 0; }

.image-frame:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.image-frame:hover img { transform: scale(1.06); }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.values span {
  padding: 10px 16px;
  border: 1px solid rgba(111,96,168,0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  color: var(--purple-dark);
  font-size: 0.88rem;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--spring), background 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.values span:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(149,220,226,0.28);
  border-color: rgba(111,96,168,0.28);
  box-shadow: 0 4px 12px rgba(62,51,111,0.10);
}

.values--centered {
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.values--centered span {
  padding: 14px 24px;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(149,220,226,0.22), rgba(111,96,168,0.12));
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 74px 0 58px;
  background:
    linear-gradient(90deg, rgba(248, 243, 242, 0.98), rgba(248, 243, 242, 0.82)),
    url("../assets/women-pattern.png") top center / cover;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.16rem;
}

.quote-band {
  background: linear-gradient(135deg, var(--aqua) 0%, #78d4dc 100%);
  color: var(--purple-dark);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: "\201C";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20rem;
  font-weight: 900;
  color: rgba(62,51,111,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.quote-band strong {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  position: relative;
}

.media-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.media-card .spotify-embed {
  margin-top: 22px;
}

.media-art {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(111, 96, 168, 0.18), rgba(149, 220, 226, 0.22)),
    url("../assets/women-pattern.png") center / cover;
}

.media-art .play {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--purple);
  font-size: 2rem;
  box-shadow: var(--shadow);
}

.embed-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed rgba(111, 96, 168, 0.45);
  border-radius: var(--radius);
  background: rgba(149, 220, 226, 0.16);
  color: var(--purple-dark);
  text-align: center;
  font-weight: 800;
}

.podcast-embed-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.spotify-embed {
  display: block;
  width: 100%;
  min-height: 352px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(62, 51, 111, 0.08);
}

.podcast-layout {
  align-items: start;
}

.episode-browser {
  display: grid;
  gap: 16px;
}

.episode-list {
  display: grid;
  gap: 10px;
}

.episode-option {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(149, 220, 226, 0.14);
  color: var(--purple-dark);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.episode-option strong {
  line-height: 1.2;
}

.episode-option span {
  color: var(--muted);
  font-size: 0.86rem;
}

.episode-option.active,
.episode-option:hover {
  border-color: rgba(111, 96, 168, 0.5);
  background: rgba(149, 220, 226, 0.34);
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-dark) 0%, #2a2050 100%);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(62,51,111,0.22), 0 1px 0 rgba(255,255,255,0.06) inset;
  position: relative;
  overflow: hidden;
}

.contact-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(149,220,226,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 20%, rgba(111,96,168,0.14) 0%, transparent 50%);
  pointer-events: none;
}

.contact-strip h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.contact-strip p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.qr {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid var(--white);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 0 0 3px rgba(149,220,226,0.5);
}

.site-footer {
  padding: 36px 0;
  background: linear-gradient(135deg, #1a1630 0%, #0f0d1a 100%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  border-top: 1px solid rgba(111,96,168,0.15);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: rgba(255,255,255,0.9);
  font-weight: 800;
  letter-spacing: 0.01em;
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 12px 0;
    position: relative;
  }

  /* ── Botón ☰ → ✕ al abrir ─────────────────────────────────────────── */
  .nav-toggle.open {
    background: var(--purple-dark);
    color: #fff;
    font-size: 0;
  }
  .nav-toggle.open::before {
    content: "✕";
    font-size: 20px;
    line-height: 1;
  }

  /* ── Panel móvil expandible tipo tarjeta (tap en ☰) ───────────────── */
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform-origin: top right;
    animation: navPanelPop 0.28s var(--spring);
  }

  /* Cada opción es una fila: ícono a la izquierda + etiqueta */
  .nav-links.open a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    background: transparent;
    font-size: 0.98rem;
    text-align: left;
    line-height: 1.2;
  }

  .nav-links.open a::after { display: none; }

  .nav-links.open a:hover,
  .nav-links.open a.active {
    background: rgba(149, 220, 226, 0.22);
    transform: none;
  }

  .nav-links.open .nav-ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(111, 96, 168, 0.08);
    color: var(--purple);
  }

  .nav-links.open a.active .nav-ico {
    background: rgba(54, 174, 184, 0.14);
    color: var(--aqua-dark);
  }

  /* Donaciones destacado al final de la lista */
  .nav-links.open a.donate {
    margin-top: 6px;
    padding: 13px 14px;
    font-size: 0.98rem;
    background: linear-gradient(135deg, var(--coral), #d76a57);
    color: #fff;
  }
  .nav-links.open a.donate .nav-ico {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .admin-login-btn,
  .lang-btn {
    width: auto;
    order: 3;
  }

  .nav-links.open .donate {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(62, 51, 111, 0.88), rgba(62, 51, 111, 0.68)),
      url("../assets/hero-community.jpg") center / cover;
  }

  .stats,
  .grid.two,
  .grid.three,
  .split,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .image-frame img {
    height: 330px;
  }

  .qr {
    width: 110px;
    height: 110px;
  }
}

/* ─── PREMIUM MULTIMEDIA CAROUSEL ─────────────────────────────────────────── */

.pmc-section {
  background: #111116;
  overflow: hidden;
  padding: 64px 0 52px;
  position: relative;
}

/* Fondo dinámico blurred — imagen del episodio activo */
.pmc-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(48px) brightness(0.28) saturate(1.6);
  transform: scale(1.08);
  z-index: 0;
  transition: opacity 0.5s ease;
}

/* Overlay oscuro encima del bg para profundidad */
.pmc-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(17,17,22,0.35) 0%, rgba(17,17,22,0.72) 100%);
}

/* Todo el contenido por encima del fondo */
.pmc-layer {
  position: relative;
  z-index: 1;
}

.pmc-section .section-title .tag {
  background: rgba(149, 220, 226, 0.15);
  color: var(--aqua);
}

.pmc-section .section-title h2 {
  color: #fff;
}

.pmc-section .section-title p {
  color: rgba(255, 255, 255, 0.5);
}

.pmc-track-wrap {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.pmc-track-wrap:active {
  cursor: grabbing;
}

.pmc-track {
  display: flex;
  gap: 20px;
  padding: 40px 0 28px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  will-change: transform;
}

.pmc-track::-webkit-scrollbar {
  display: none;
}

/* ── Tarjeta dark ── */
.pmc-card {
  flex: 0 0 220px;
  scroll-snap-align: center;
  border-radius: 24px;
  background: #1c1c26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.35s ease,
              box-shadow 0.35s ease;
  transform: scale(0.82) translateY(14px);
  opacity: 0.5;
  will-change: transform, opacity;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
}

.pmc-card.pmc-active {
  transform: scale(1.06) translateY(0px);
  opacity: 1;
  box-shadow: 0 24px 60px rgba(111, 96, 168, 0.38), 0 0 0 1px rgba(111, 96, 168, 0.25);
  z-index: 2;
}

.pmc-card.pmc-near {
  transform: scale(0.91) translateY(8px);
  opacity: 0.72;
}

/* ── Portada circular ── */
.pmc-art {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  margin: 28px auto 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 4px rgba(111, 96, 168, 0.4),
    0 0 0 8px rgba(111, 96, 168, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.35s ease;
}

.pmc-card.pmc-active .pmc-art {
  box-shadow:
    0 0 0 4px var(--purple),
    0 0 0 10px rgba(111, 96, 168, 0.22),
    0 16px 40px rgba(0, 0, 0, 0.6);
}

.pmc-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}

.pmc-art-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.pmc-art-overlay--1,
.pmc-art-overlay--2,
.pmc-art-overlay--3,
.pmc-art-overlay--4 {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}

.pmc-art-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14), transparent 70%);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.pmc-card.pmc-active .pmc-art-glow {
  opacity: 1;
}

.pmc-play-icon {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  padding: 0;
}

.pmc-play-icon:hover {
  background: rgba(111, 96, 168, 0.7);
  transform: scale(1.12);
  box-shadow: 0 0 0 8px rgba(111, 96, 168, 0.18);
  border-color: rgba(255, 255, 255, 0.85);
}

.pmc-play-icon:active {
  transform: scale(0.94);
}

.pmc-card.pmc-active .pmc-play-icon {
  background: rgba(111, 96, 168, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ── Info de tarjeta ── */
.pmc-card-body {
  padding: 18px 18px 0;
  text-align: center;
  width: 100%;
}

.pmc-meta {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(149, 133, 199, 0.75);
  letter-spacing: 0.07em;
}

.pmc-title {
  margin: 0 0 5px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.pmc-sub {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}

.pmc-cta {
  width: calc(100% - 36px);
  margin: 0 18px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #2a2a38;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.pmc-cta:hover {
  background: #38384e;
  border-color: rgba(111, 96, 168, 0.6);
  transform: translateY(-2px);
}

.pmc-cta:active {
  transform: scale(0.97);
}

/* ── Player inline: se expande sobre la tarjeta ── */
.pmc-art--playing .pmc-art-img,
.pmc-art--playing .pmc-art-overlay,
.pmc-art--playing .pmc-play-icon,
.pmc-art--playing .pmc-art-glow {
  opacity: 0;
  pointer-events: none;
}

.pmc-art--playing {
  width: calc(100% - 32px) !important;
  height: 200px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
  margin: 16px auto 0 !important;
  transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease !important;
}

.pmc-inline-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
  background: #000;
  z-index: 10;
  animation: pmcFadeIn 0.3s ease;
}

.pmc-inline-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 20;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.72rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}

.pmc-inline-close:hover {
  background: rgba(111, 96, 168, 0.85);
}

@keyframes pmcFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Dots ── */
.pmc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.pmc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease;
}

.pmc-dot.pmc-dot-active {
  width: 28px;
  background: var(--purple-soft);
}

@media (min-width: 640px) {
  .pmc-card {
    flex: 0 0 230px;
  }
}

@media (min-width: 1024px) {
  .pmc-card {
    flex: 0 0 220px;
  }
}

/* ─── FIN PREMIUM MULTIMEDIA CAROUSEL ─────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   POLISH — refinamientos finales de calidad
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page fade-in */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

main {
  animation: pageIn 0.45s var(--ease-out) both;
}

/* Heading typography refinements */
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; font-weight: 800; }

/* Stats — tabular numbers + stronger number weight */
.stat strong {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* Card top bar — thinner, more refined */
.mp-card::before {
  height: 3px;
  background: linear-gradient(90deg, var(--aqua-dark) 0%, var(--purple-soft) 100%);
}

/* Card p spacing */
.mp-card p {
  line-height: 1.65;
}

/* Section alt — subtle mesh so it's not plain white */
.section.alt {
  background:
    radial-gradient(at 0% 0%,   rgba(149,220,226,0.07) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(111,96,168,0.05) 0px, transparent 50%),
    var(--white);
}

/* Page hero — more depth and refined type */
.page-hero {
  min-height: 400px;
  background:
    linear-gradient(160deg, rgba(247,242,246,0.97) 0%, rgba(230,220,248,0.88) 100%),
    url("../assets/women-pattern.png") top center / cover;
}

.page-hero h1 {
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* Carousel → YouTube section soft ramp (so the dark section doesn't cut hard) */
.pmc-section {
  padding-bottom: 0;
}

.pmc-section + .section.alt {
  padding-top: 72px;
  border-top: none;
}

/* Embed placeholder — polished, not dashed */
.embed-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  border: 1.5px solid rgba(111,96,168,0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(149,220,226,0.18) 0%, transparent 70%),
    rgba(247,242,252,0.6);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
  backdrop-filter: blur(8px);
}

/* Episode option spring transition */
.episode-option {
  transition: background 0.2s var(--ease-out), border-color 0.2s ease,
              transform 0.2s var(--spring), box-shadow 0.2s ease;
  border-radius: var(--radius-lg);
}

.episode-option:hover {
  transform: translateX(3px);
  border-color: rgba(111,96,168,0.4);
}

/* Media art play button polish */
.media-art .play {
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease;
}

.media-art:hover .play {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(62,51,111,0.2);
}

/* Button focus ring (accessibility + polish) */
.button:focus-visible,
.lang-btn:focus-visible,
.pmc-cta:focus-visible,
.pmc-play-icon:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* QR image spring on hover */
.qr {
  transition: transform 0.3s var(--spring);
}

.qr:hover {
  transform: scale(1.06) rotate(1deg);
}

/* Nav toggle mobile polish */
.nav-toggle {
  transition: background 0.2s ease, transform 0.2s var(--spring);
  border-radius: var(--radius);
}

.nav-toggle:hover {
  background: rgba(149,220,226,0.22);
  transform: scale(1.06);
}

/* Eyebrow line animation on hover */
.eyebrow {
  transition: gap 0.3s var(--spring);
}

.eyebrow:hover {
  gap: 16px;
}

/* Donate button — cleaner cursor + spring */
.donate {
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease, filter 0.2s ease;
  border-radius: 999px;
}

/* Smooth scroll section offset for sticky header */
:target {
  scroll-margin-top: 90px;
}

#contacto-general {
  scroll-margin-top: 96px;
}

/* Selection color */
::selection {
  background: rgba(149,220,226,0.45);
  color: var(--purple-dark);
}

/* Carousel section top fade-in ramp */
.pmc-section::before {
  display: none; /* placeholder for future gradient ramp if needed */
}

/* Pmc card body padding bottom */
.pmc-card {
  padding-bottom: 20px;
}

/* Pmc cta — pill shape matching rest of site */
.pmc-cta {
  border-radius: 999px;
}

/* ─── SPOTIFY CAROUSEL — mejoras ─────────────────────────────────────────── */

.pmc-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 215, 96, 0.15);
  border-color: rgba(30, 215, 96, 0.3);
  color: #1ed760;
}

.pmc-ep-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.pmc-ep-new {
  background: rgba(30, 215, 96, 0.85);
  color: #000;
}

.pmc-card {
  position: relative;
}

/* ─── YOUTUBE CAROUSEL ────────────────────────────────────────────────────── */

:root {
  --yt-red: #FF0000;
  --yt-dark: #0f0f0f;
  --yt-card: #1a1a1a;
}

.ytc-section {
  background: var(--yt-dark);
  overflow: hidden;
  padding: 64px 0 52px;
  position: relative;
}

.ytc-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(52px) brightness(0.22) saturate(1.2);
  transform: scale(1.08);
  z-index: 0;
  transition: opacity 0.5s ease;
}

.ytc-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(15,15,15,0.4) 0%, rgba(15,15,15,0.75) 100%);
}

.ytc-layer {
  position: relative;
  z-index: 1;
}

.ytc-section .section-title h2 {
  color: #fff;
}

.ytc-section .section-title p {
  color: rgba(255,255,255,0.5);
}

.ytc-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 0, 0.18);
  border: 1px solid rgba(255,0,0,0.35);
  color: #ff4444;
}

.ytc-track-wrap {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.ytc-track-wrap:active { cursor: grabbing; }

.ytc-track {
  display: flex;
  gap: 20px;
  padding: 32px 0 28px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  will-change: transform;
}

.ytc-track::-webkit-scrollbar { display: none; }

/* ── YouTube card ── */
.ytc-card {
  flex: 0 0 300px;
  scroll-snap-align: center;
  border-radius: 16px;
  background: var(--yt-card);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.35s ease, box-shadow 0.35s ease;
  transform: scale(0.83) translateY(14px);
  opacity: 0.5;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
}

.ytc-card.ytc-active {
  transform: scale(1.05) translateY(0);
  opacity: 1;
  box-shadow: 0 24px 60px rgba(255,0,0,0.18), 0 0 0 1px rgba(255,0,0,0.2);
  z-index: 2;
}

.ytc-card.ytc-near {
  transform: scale(0.92) translateY(7px);
  opacity: 0.72;
}

/* ── Thumbnail 16:9 ── */
.ytc-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.ytc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ytc-card.ytc-active .ytc-img {
  transform: scale(1.04);
}

.ytc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.ytc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255,0,0,0.9);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(255,0,0,0.4);
}

.ytc-card.ytc-active .ytc-play {
  transform: translate(-50%, -50%) scale(1);
}

.ytc-play:hover {
  background: #ff1a1a;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 6px 28px rgba(255,0,0,0.55);
}

.ytc-play:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.ytc-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ── Card body ── */
.ytc-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ytc-channel {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,0,0,0.8);
}

.ytc-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.ytc-desc {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  flex: 1;
}

.ytc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,0,0,0.3);
  background: rgba(255,0,0,0.12);
  color: #ff4444;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--spring);
  justify-content: center;
}

.ytc-cta:hover {
  background: rgba(255,0,0,0.28);
  border-color: rgba(255,0,0,0.6);
  transform: translateY(-2px);
}

.ytc-cta:active {
  transform: scale(0.97);
}

/* ── Dots ── */
.ytc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.ytc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
}

.ytc-dot.ytc-dot-active {
  width: 28px;
  background: var(--yt-red);
}

@media (min-width: 640px) {
  .ytc-card { flex: 0 0 320px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIOS — tarjetas de voces
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonials-section {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(149,220,226,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(111,96,168,0.07) 0%, transparent 50%),
    var(--paper);
}

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 56px 28px 26px;
  background: var(--white);
  border: 1px solid rgba(111,96,168,0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out),
              border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(111,96,168,0.2);
}

/* Comilla decorativa */
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(111,96,168,0.16);
  pointer-events: none;
}

.testimonial-card blockquote {
  margin: 0;
  flex: 1;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(111,96,168,0.1);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(111,96,168,0.3);
}

.testimonial-card figcaption strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--purple-dark);
  line-height: 1.2;
}

.testimonial-card figcaption span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Acentos de color por tarjeta */
.testimonial-card:nth-child(2) .testimonial-avatar {
  background: linear-gradient(135deg, var(--aqua-dark), #2a8a93);
}
.testimonial-card:nth-child(3) .testimonial-avatar {
  background: linear-gradient(135deg, var(--coral), #c95a42);
}
.testimonial-card:nth-child(4) .testimonial-avatar {
  background: linear-gradient(135deg, var(--purple-soft), var(--aqua-dark));
}

/* ═══════════════════════════════════════════════════════════════════════════
   VOCES QUE TRANSFORMAN — carrusel de flip-cards (logo al frente, comentario detrás)
   ═══════════════════════════════════════════════════════════════════════════ */
.voces-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

/* Pista del carrusel: scroll horizontal con snap */
.voces-track {
  display: flex;
  gap: 14px;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 28px 6px 34px;          /* espacio para sombras y elevación al girar */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.voces-track::-webkit-scrollbar { display: none; }

/* ── Flip card ── */
.flip-card {
  flex: 0 0 320px;                 /* ancho de cada tarjeta en el carrusel */
  max-width: 82vw;
  height: 380px;
  scroll-snap-align: center;
  perspective: 1400px;             /* profundidad del giro 3D */
  cursor: pointer;
  outline: none;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);  /* giro suave */
}
/* Giro al pasar el cursor, al enfocar con teclado o al tocar (clase is-flipped) */
.flip-card:hover .flip-card-inner,
.flip-card:focus-visible .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Caras: ambas ocupan el mismo espacio, ocultando su reverso */
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Cara frontal: logo de Mujeres Púrpura sobre fondo de marca */
.flip-card-front {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 30px 26px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(149,220,226,0.28), transparent 55%),
    linear-gradient(155deg, var(--purple) 0%, var(--purple-dark) 100%);
}
.flip-logo {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  margin-bottom: 12px;
}
.flip-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.flip-name { font-size: 1.02rem; font-weight: 800; margin-top: 10px; }
.flip-role { font-size: 0.84rem; color: rgba(255,255,255,0.82); }
.flip-cta {
  margin-top: 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

/* Cara trasera: el comentario (ya rotada 180° para leerse al girar) */
.flip-card-back {
  transform: rotateY(180deg);
  justify-content: space-between;
  gap: 18px;
  padding: 30px 26px 24px;
  background: var(--white);
  border: 1px solid rgba(111,96,168,0.12);
}
.flip-card-back blockquote { margin: 0; flex: 1; display: flex; align-items: center; }
.flip-card-back blockquote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.flip-card-back figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 16px;
  border-top: 1px solid rgba(111,96,168,0.1);
}
.flip-card-back figcaption strong {
  display: block; font-size: 0.92rem; font-weight: 800; color: var(--purple-dark); line-height: 1.2;
}
.flip-card-back figcaption span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
/* Acentos por tarjeta en el avatar de la cara trasera */
.flip-card:nth-child(2) .testimonial-avatar { background: linear-gradient(135deg, var(--aqua-dark), #2a8a93); }
.flip-card:nth-child(3) .testimonial-avatar { background: linear-gradient(135deg, var(--coral), #c95a42); }
.flip-card:nth-child(4) .testimonial-avatar { background: linear-gradient(135deg, var(--purple-soft), var(--aqua-dark)); }

/* ── Botones de navegación ── */
.voces-nav {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--purple-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease-out), color 0.2s ease, transform 0.2s var(--spring), opacity 0.2s ease;
}
.voces-nav:hover { background: var(--purple); color: #fff; transform: scale(1.08); }
.voces-nav:disabled { opacity: 0.35; cursor: default; transform: none; }

/* ── Puntos indicadores ── */
.voces-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}
.voces-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(111,96,168,0.25);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--spring);
}
.voces-dot.active { background: var(--purple); transform: scale(1.3); }

@media (max-width: 600px) {
  .voces-nav { display: none; }          /* en móvil basta el swipe del carrusel */
  .flip-card { flex-basis: 80vw; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
  .voces-track { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ESTRUCTURA ORGANIZACIONAL — organigrama circular
   ═══════════════════════════════════════════════════════════════════════════ */

.org-lead {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem !important;
  color: var(--purple) !important;
}

.org-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.org-col {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.org-layout .org-col:first-child { text-align: right; }

/* ── Gráfico de anillos entrelazados ── */
.org-graphic {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.org-rings {
  position: relative;
  width: 240px;
  height: 150px;
}

.org-ring {
  position: absolute;
  top: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.org-ring--purple {
  left: 0;
  border: 22px solid var(--purple);
  box-shadow: 0 12px 36px rgba(111,96,168,0.35);
  animation: orgFloat 6s ease-in-out infinite;
}

.org-ring--aqua {
  right: 0;
  border: 22px solid var(--aqua-dark);
  box-shadow: 0 12px 36px rgba(54,174,184,0.3);
  animation: orgFloat 6s ease-in-out infinite reverse;
}

@keyframes orgFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-54%) translateX(3px); }
}

/* Puntitos de conexión entre anillos */
.org-ring-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--purple-soft);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.org-ring-dot--1 { margin-top: -18px; }
.org-ring-dot--2 { margin-top: 4px; }
.org-ring-dot--3 { margin-top: 24px; }

/* ── Nodos orbitando ── */
.org-nodes { position: absolute; inset: 0; pointer-events: none; }

.org-node {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(111,96,168,0.18);
  box-shadow: 0 6px 18px rgba(62,51,111,0.12);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-dark);
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}
.org-node:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(62,51,111,0.22);
}

.org-node:nth-child(1) { top: -6px;   left: 50%; transform: translateX(-50%); }
.org-node:nth-child(2) { top: 38%;    right: -28px; }
.org-node:nth-child(3) { bottom: -6px; left: 50%; transform: translateX(-50%); }
.org-node:nth-child(4) { top: 38%;    left: -20px; }

@media (max-width: 900px) {
  .org-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }
  .org-layout .org-col:first-child { text-align: center; }
  .org-col { text-align: center; max-width: 540px; }
  .org-graphic { order: -1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LÍNEAS DE ACCIÓN — acordeón interactivo
   ═══════════════════════════════════════════════════════════════════════════ */

.lines-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #2a2050 0%, #3e336f 55%, #4a3a7a 100%);
  color: #fff;
}

.lines-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(149,220,226,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(232,132,114,0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(149,133,199,0.12) 0%, transparent 60%);
}

.lines-layer { position: relative; z-index: 1; }

.lines-section .section-title h2 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}
.lines-section .section-title p { color: rgba(255,255,255,0.6); }

.lines-tag {
  background: rgba(149,220,226,0.18);
  border-color: rgba(149,220,226,0.35);
  color: var(--aqua);
}

.lines-accordion {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.line-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: background 0.35s var(--ease-out), border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.line-item.open {
  background: rgba(255,255,255,0.09);
  border-color: rgba(149,220,226,0.4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.28), 0 0 0 1px rgba(149,220,226,0.15);
}

.line-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font: inherit;
}

.line-index {
  font-size: 0.85rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: rgba(149,220,226,0.5);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.line-item.open .line-index { color: var(--aqua); }

.line-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(149,220,226,0.12);
  border: 1px solid rgba(149,220,226,0.2);
  color: var(--aqua);
  transition: transform 0.4s var(--spring), background 0.3s ease, color 0.3s ease;
}
.line-item.open .line-icon {
  background: var(--aqua);
  color: var(--purple-dark);
  transform: scale(1.06) rotate(-4deg);
}

.line-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.line-cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}
.line-item.open .line-cat { color: var(--aqua); }

.line-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}

.line-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: transform 0.4s var(--spring), color 0.3s ease;
}
.line-item.open .line-chevron {
  transform: rotate(180deg);
  color: var(--aqua);
}

/* Body con animación de altura */
.line-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.line-item.open .line-body { grid-template-rows: 1fr; }

.line-body-inner {
  overflow: hidden;
}

.line-body-inner > * {
  margin: 0;
  padding: 0 28px 8px 102px;
}

.line-short {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  padding-top: 0 !important;
}

.line-full {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  padding-bottom: 28px !important;
  margin-top: 12px !important;
}

@media (max-width: 640px) {
  .line-head { gap: 14px; padding: 18px 18px; }
  .line-icon { width: 44px; height: 44px; }
  .line-name { font-size: 1.05rem; }
  .line-index { display: none; }
  .line-body-inner > * { padding-left: 18px; padding-right: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIN POLISH
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO (Web3Forms) — diseño dos columnas
   ═══════════════════════════════════════════════════════════════════════════ */
.contact-section {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(149,220,226,0.18), transparent 45%),
    radial-gradient(120% 120% at 100% 100%, rgba(232,132,114,0.12), transparent 45%),
    var(--paper);
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

/* ── Columna izquierda (panel con gradiente púrpura) ── */
.contact-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-aside::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,220,226,0.35), transparent 70%);
  pointer-events: none;
}
.contact-aside .tag--light {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: none;
  align-self: flex-start;
}
.contact-aside h2 {
  color: #fff;
  margin: 14px 0 12px;
}
.contact-aside > p {
  color: rgba(255,255,255,0.86);
  margin: 0 0 26px;
  max-width: 42ch;
}
.contact-trust {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-trust li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.contact-trust-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  color: var(--aqua);
}
.contact-trust strong {
  display: block;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 2px;
}
.contact-trust span { font-size: 0.88rem; color: rgba(255,255,255,0.78); }
.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--spring);
}
.contact-channel:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.contact-channel svg { color: var(--aqua); }

/* ── Columna derecha (tarjeta del formulario) ── */
.contact-form {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--purple-dark);
  margin: 0 0 22px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form .form-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}
.contact-form label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--purple-dark);
  margin-bottom: 7px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s var(--ease-out);
}
.contact-form .input-wrap input { padding-left: 42px; }

/* Grupo teléfono con indicativo de país (selector con banderas + búsqueda) */
.phone-group { display: flex; gap: 10px; align-items: stretch; }
.phone-group .phone-number { flex: 1; }
.phone-group .phone-number-input { flex: 1; min-width: 0; margin: 0; }
.phone-code-select { position: relative; flex: none; }
.phone-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 13px 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s ease;
}
.phone-code-btn:hover { background: #efe7ef; }
.phone-code-select .phone-code-btn[aria-expanded="true"],
.phone-code-btn:focus-visible {
  outline: none;
  background-color: var(--white);
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 4px rgba(145,133,199,0.18);
}
.phone-code-flag {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  object-fit: cover;
}
.phone-code-value { font-weight: 600; font-size: 0.95rem; }
.phone-code-caret { color: var(--muted); transition: transform 0.2s var(--ease-out); }
.phone-code-btn[aria-expanded="true"] .phone-code-caret { transform: rotate(180deg); }

.phone-code-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 268px;
  max-width: 78vw;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
}
.phone-code-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.phone-code-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.phone-code-search svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.phone-code-search-input {
  font: inherit;
  width: 100%;
  padding: 10px 12px 10px 34px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.phone-code-search-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 3px rgba(145,133,199,0.18);
}
.phone-code-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 230px;
  overflow-y: auto;
}
.phone-code-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s var(--ease-out);
}
.phone-code-option:hover { background: var(--paper); }
.phone-code-option img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); flex: none; }
.phone-code-option .opt-name { flex: 1; font-size: 0.9rem; color: var(--ink); }
.phone-code-option .opt-code { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.phone-code-empty { margin: 6px 0; text-align: center; font-size: 0.86rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .phone-code-panel, .phone-code-caret { transition: none; }
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); opacity: 0.75; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 4px rgba(145,133,199,0.18);
}
.input-wrap:focus-within .input-icon { color: var(--purple); }
.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form .contact-submit {
  width: 100%;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  border: none;
}
.contact-submit-arrow { transition: transform 0.25s var(--spring); }
.contact-form .contact-submit:hover .contact-submit-arrow { transform: translateX(4px); }
.contact-submit-spinner { display: none; animation: contact-spin 0.7s linear infinite; }
.contact-form.is-sending .contact-submit-arrow { display: none; }
.contact-form.is-sending .contact-submit-spinner { display: inline-block; }
.contact-form.is-sending .contact-submit { opacity: 0.85; cursor: progress; }
.contact-form .contact-submit:disabled { cursor: not-allowed; }
@keyframes contact-spin { to { transform: rotate(360deg); } }

.form-feedback {
  margin: 16px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.86rem;
  min-height: 1.2em;
}
.contact-form.is-success .form-feedback { color: var(--aqua-dark); }
.contact-form.is-error .form-feedback { color: var(--coral); }
.contact-privacy {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-channel,
  .contact-submit-arrow,
  .contact-submit-spinner { transition: none; animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO SELLO — video institucional con logo de marca
   ═══════════════════════════════════════════════════════════════════════════ */
.vsello-player {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--purple-dark);
  box-shadow: var(--shadow-lg);
}
.vsello-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Capa con botón de play (degradado para legibilidad) */
.vsello-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(62,51,111,0.25), transparent 70%),
    linear-gradient(180deg, rgba(30,24,52,0.35) 0%, rgba(30,24,52,0.55) 100%);
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.vsello-overlay.is-hidden { opacity: 0; visibility: hidden; }
.vsello-play {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--purple);
  cursor: pointer;
  padding-left: 4px;            /* centra ópticamente el triángulo */
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.25s var(--spring), background 0.2s ease;
}
.vsello-play::after {
  /* Aro pulsante alrededor del botón */
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: vselloPulse 2.4s var(--ease-out) infinite;
}
.vsello-overlay:hover .vsello-play { transform: scale(1.08); background: #fff; }
@keyframes vselloPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.vsello-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
/* Sello de marca (logo) en la esquina superior */
.vsello-seal {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: rgba(30,24,52,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.vsello-seal img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.vsello-seal span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}
@media (max-width: 600px) {
  .vsello-play, .vsello-play::after { width: 64px; height: 64px; }
  .vsello-seal span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vsello-play::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GALERÍA 3D — anillo giratorio infinito de fotos
   ═══════════════════════════════════════════════════════════════════════════ */

/* Halo ambiental detrás de la galería (luces de neón de marca) */
.ring3d-section {
  position: relative;
  overflow: hidden;
}
.ring3d-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(149,220,226,0.22) 0%, transparent 60%),
    radial-gradient(circle at 60% 40%, rgba(111,96,168,0.20) 0%, transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.ring3d-section .section-inner { position: relative; z-index: 1; }

/* 1) Contenedor PADRE con perspectiva: define la profundidad de la cámara 3D. */
.ring3d-stage {
  position: relative;
  width: 100%;
  height: 320px;
  margin-top: 90px;               /* más aire para que el título quede libre */
  perspective: 1600px;            /* ← CALIBRAR: mayor = la foto frontal se agranda menos */
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Plataforma luminosa bajo el anillo (pedestal con resplandor) */
.ring3d-stage::after {
  content: "";
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 320px;
  height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(111,96,168,0.45) 0%, rgba(149,220,226,0.18) 40%, transparent 72%);
  filter: blur(8px);
  border-radius: 50%;
  pointer-events: none;
}

/* 2) El ANILLO: preserve-3d mantiene la profundidad real y gira 0°→360° infinito. */
.ring3d {
  position: relative;
  width: 200px;                   /* = ancho de cada tarjeta (más pequeño que antes) */
  height: 270px;                  /* = alto de cada tarjeta */
  transform-style: preserve-3d;
  animation: ring3dSpin 30s linear infinite;   /* ← CALIBRAR velocidad */
}
.ring3d-stage:hover .ring3d { animation-play-state: paused; }  /* pausa al pasar el cursor */

@keyframes ring3dSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* 3) TARJETAS: posición absoluta, distribuidas equidistantes con rotateY + translateZ.
   ─────────────────────────────────────────────────────────────────────────────
   FÓRMULA PARA ESCALAR (cambiar el nº de fotos):
     • Ángulo entre tarjetas  =  360° / N          (N = número de fotos)
     • Radio (translateZ)      =  (anchoTarjeta/2) / tan(180° / N)
   ─────────────────────────────────────────────────────────────────────────────
   Config ACTUAL → N = 4  ⇒  ángulo = 360/4 = 90°
   Radio sugerido (ancho 260 → mitad 130): 130 / tan(45°) = 130 / 1 ≈ 130px,
   pero usamos 340px para separar más las fotos y que respiren visualmente.

   Si subes a 6 fotos:  ángulo = 360/6 = 60°  → 0,60,120,180,240,300
   Si subes a 8 fotos:  ángulo = 360/8 = 45°  → 0,45,90,135,180,225,270,315
   (añade un .ring3d-card por foto y crea su :nth-child con el rotateY correspondiente). */
.ring3d-card {
  position: absolute;
  top: 50%;
  left: 50%;
  /* El tamaño real (según orientación de cada foto) lo fija js/effects.js */
  width: 200px;
  height: 180px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  /* Color de respaldo: si la foto aún no existe, se ve este tono de marca */
  background-color: var(--purple-soft);
  /* Sombra profunda + aro de luz púrpura/aqua (efecto neón sutil) */
  box-shadow:
    0 16px 36px rgba(62, 51, 111, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 22px rgba(149, 220, 226, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.85);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  overflow: hidden;
}
/* Sheen de vidrio + degradado inferior para dar volumen y acabado profesional */
.ring3d-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 22%),
    linear-gradient(0deg, rgba(30,24,52,0.45) 0%, transparent 38%);
  pointer-events: none;
}

/* La posición de cada tarjeta (rotateY + translateZ) la calcula js/effects.js
   según el nº de fotos: ángulo = 360/N y radio = (ancho/2)/tan(180/N). */

/* Responsive: tarjetas más pequeñas en móvil (el radio lo recalcula el JS) */
@media (max-width: 600px) {
  .ring3d-stage { height: 300px; perspective: 850px; }
  .ring3d { width: 140px; height: 190px; }
  .ring3d-card { width: 140px; height: 190px; }
}

/* Accesibilidad: detener el giro si el usuario prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .ring3d { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL DE DONACIONES (Mercado Pago)
   ═══════════════════════════════════════════════════════════════════════════ */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 24, 52, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s;
}
.donate-modal.is-open { opacity: 1; visibility: visible; }

.donate-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(30, 24, 52, 0.45);
  text-align: center;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.38s var(--spring);
}
.donate-modal.is-open .donate-card { transform: translateY(0) scale(1); }

.donate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--purple-dark);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--spring);
}
.donate-close:hover { background: #fff; transform: rotate(90deg); }

/* ── Cabecera con degradado, destellos y logo con aro ── */
.donate-banner {
  position: relative;
  height: 118px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 20% 0%, rgba(149,220,226,0.45), transparent 55%),
    linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
}
.donate-spark {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0.5px);
  animation: donateFloat 4s ease-in-out infinite;
}
.donate-spark--1 { width: 8px; height: 8px; top: 22px; left: 18%; animation-delay: 0s; }
.donate-spark--2 { width: 5px; height: 5px; top: 60px; left: 78%; animation-delay: 0.8s; }
.donate-spark--3 { width: 6px; height: 6px; top: 34px; left: 60%; animation-delay: 1.6s; opacity: 0.7; }
@keyframes donateFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(-10px); opacity: 1; }
}
.donate-logo-ring {
  position: absolute;
  left: 50%;
  top: 118px;                       /* alto de la cabecera */
  transform: translate(-50%, -50%); /* centrado justo sobre el borde inferior */
  z-index: 2;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(62, 51, 111, 0.35);
}
.donate-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Cuerpo ── */
.donate-body { padding: 46px 28px 24px; }
.donate-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--aqua-dark);
}
.donate-body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: var(--purple-dark);
  margin: 6px 0 8px;
}
.donate-body > p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin: 24px 0 14px;
}
.donate-amount {
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--purple-dark);
  padding: 15px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s ease, transform 0.15s var(--spring), box-shadow 0.2s ease;
}
.donate-amount:hover { border-color: var(--purple-soft); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(111,96,168,0.18); }
.donate-amount.is-active {
  border-color: var(--purple);
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 8px 20px rgba(111, 96, 168, 0.4);
}
.donate-amount--featured { position: relative; }
.donate-amount--featured::after {
  content: "Popular";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ef9382, var(--coral));
  padding: 2px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(232, 132, 114, 0.4);
}

/* Línea de impacto dinámica */
.donate-impact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(149, 220, 226, 0.14);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-dark);
}
.donate-impact-line svg { color: var(--coral); flex: none; }
.donate-impact-line.pulse { animation: donateImpactPop 0.4s var(--spring); }
@keyframes donateImpactPop {
  from { transform: scale(0.96); opacity: 0.5; }
  to   { transform: scale(1); opacity: 1; }
}

.donate-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  box-shadow: 0 10px 26px rgba(111, 96, 168, 0.45);
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease, filter 0.2s ease;
}
/* Brillo que cruza el botón */
.donate-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  animation: donateShine 3.2s ease-in-out infinite;
}
@keyframes donateShine {
  0%, 60% { left: -120%; }
  100%    { left: 130%; }
}
.donate-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(111, 96, 168, 0.55); filter: brightness(1.05); }
.donate-cta-heart { color: #ff8fb0; animation: donateBeat 1.4s ease-in-out infinite; }
@keyframes donateBeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.25); }
  30%      { transform: scale(1); }
}
.donate-cta-arrow { transition: transform 0.25s var(--spring); }
.donate-cta:hover .donate-cta-arrow { transform: translateX(4px); }

/* Métodos de pago */
.donate-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}
.donate-method {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.donate-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}
.donate-secure svg { color: var(--aqua-dark); }

@media (prefers-reduced-motion: reduce) {
  .donate-modal, .donate-card, .donate-close, .donate-amount, .donate-cta,
  .donate-cta-arrow { transition: none; }
  .donate-spark, .donate-cta::before, .donate-cta-heart, .donate-impact-line.pulse { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL DE AGRADECIMIENTO (post-donación)
   ═══════════════════════════════════════════════════════════════════════════ */
.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 24, 52, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.thanks-modal.is-open { opacity: 1; visibility: visible; }

.thanks-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(30, 24, 52, 0.5);
  padding: 40px 30px 26px;
  text-align: center;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--spring);
}
.thanks-modal.is-open .thanks-card { transform: translateY(0) scale(1); }

.thanks-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--purple-dark);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--spring);
}
.thanks-close:hover { background: #ece5ef; transform: rotate(90deg); }

/* Sello con check animado */
.thanks-badge {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(54,174,184,0.18), transparent 70%);
}
.thanks-check { display: block; }
.thanks-check-circle {
  stroke: var(--aqua-dark);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: thanksCircle 0.6s var(--ease-out) forwards;
}
.thanks-check-mark {
  stroke: var(--aqua-dark);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: thanksMark 0.4s var(--ease-out) 0.5s forwards;
}
@keyframes thanksCircle { to { stroke-dashoffset: 0; } }
@keyframes thanksMark  { to { stroke-dashoffset: 0; } }

.thanks-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--aqua-dark);
}
.thanks-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.62rem;
  color: var(--purple-dark);
  margin: 6px 0 10px;
}
.thanks-card > p {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}

.thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 6px;
}
.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease, background 0.2s ease;
}
.thanks-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 8px 22px rgba(111, 96, 168, 0.4);
}
.thanks-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(111, 96, 168, 0.5); }
.thanks-btn.ghost {
  color: var(--purple-dark);
  background: var(--paper);
  border: 1.5px solid var(--line);
}
.thanks-btn.ghost:hover { border-color: var(--purple-soft); transform: translateY(-2px); }

.thanks-note { margin: 8px 0 0; font-size: 0.76rem; color: var(--muted); }

/* Confeti */
.thanks-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -14px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation-name: confettiFall;
  animation-timing-function: ease-in;
  animation-iteration-count: 1;
}
@keyframes confettiFall {
  to { transform: translateY(560px) rotate(540deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-modal, .thanks-card, .thanks-close, .thanks-btn { transition: none; }
  .thanks-check-circle, .thanks-check-mark { animation: none; stroke-dashoffset: 0; }
  .confetti-piece { display: none; }
}


/* ─── MINI FORMULARIO DE IMPACTO "¿Cómo podemos ayudarte?" (destacado) ──── */
/* ── Modal sobrepuesto de ayuda (se activa al pedir ayuda a la Fundación) ── */
.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 27, 46, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.help-overlay.open { opacity: 1; visibility: visible; }

.help-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.35s var(--spring);
  overscroll-behavior: contain;
}
.help-overlay.open .help-modal { transform: none; }

/* Versión compacta de la tarjeta dentro del modal (para que quepa en pantalla) */
.help-modal .help-card {
  margin-bottom: 0;
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  animation: none;
}
.help-modal .help-card .help-intro h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: 0.5rem; }
.help-modal .help-card .help-intro p { font-size: 0.9rem; margin: 0.4rem 0; }
.help-modal .help-card .help-field { margin-bottom: 0.6rem; }
.help-modal .help-card textarea { min-height: 62px; }

.help-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.3s var(--spring);
}
.help-modal-close:hover { background: rgba(255, 255, 255, 0.34); transform: rotate(90deg); }
.help-modal-close:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

.help-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 55%, var(--aqua-dark) 140%);
  background-size: 180% 180%;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 24px 60px rgba(62,51,111,0.35), 0 8px 20px rgba(62,51,111,0.2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: helpGradient 12s ease infinite;
}
@keyframes helpGradient {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Borde brillante animado que lo hace resaltar sobre el contacto normal */
.help-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  padding: 2px; border-radius: inherit;
  background: linear-gradient(120deg, var(--aqua), var(--coral), var(--aqua), var(--purple-soft));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: helpBorder 6s linear infinite;
}
@keyframes helpBorder { to { background-position: 300% 0; } }
.help-card::after {
  content: "";
  position: absolute; inset: auto -60px -80px auto;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(149,220,226,0.4), transparent 70%);
  pointer-events: none; z-index: -1;
}
.contact-or {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  max-width: 520px; color: var(--muted);
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-or::before, .contact-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.help-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white);
}
.help-intro { position: relative; z-index: 1; }
.help-intro h2 { color: var(--white); margin: 0.55rem 0 0.6rem; line-height: 1.15; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.help-intro > p { color: rgba(255,255,255,0.92); margin: 0 0 0.9rem; }
.help-pulse {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--aqua); vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(149,220,226,0.7);
  animation: helpPulse 2s infinite;
}
@keyframes helpPulse {
  0% { box-shadow: 0 0 0 0 rgba(149,220,226,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(149,220,226,0); }
  100% { box-shadow: 0 0 0 0 rgba(149,220,226,0); }
}
.help-confidential {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 0.85rem 1.05rem; font-size: 0.88rem; line-height: 1.45;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.help-confidential svg { flex: 0 0 auto; margin-top: 2px; color: var(--aqua); }

/* Tarjeta del formulario — vidrio premium con doble luz */
.help-form {
  position: relative; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow:
    0 30px 60px -18px rgba(20,12,40,0.45),
    0 8px 20px rgba(20,12,40,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9);
  display: grid; gap: 1rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.help-form::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(149,220,226,0.16), transparent 50%);
  pointer-events: none;
}
.help-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.help-field { display: grid; gap: 0.4rem; position: relative; }
.help-field label {
  font-size: 0.72rem; font-weight: 700; color: var(--purple-dark);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.help-field .req { color: var(--coral); }
.help-field input,
.help-field select,
.help-field textarea {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  font: inherit; color: var(--ink);
  background: rgba(247,242,246,0.9);
  box-shadow: inset 0 1px 2px rgba(62,51,111,0.06);
  transition: border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
              background 0.22s var(--ease-out), transform 0.22s var(--spring);
}
/* Flecha personalizada para el select */
.help-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f60a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center;
  padding-right: 2.4rem; cursor: pointer;
}
.help-field input::placeholder,
.help-field textarea::placeholder { color: var(--muted); }
.help-field input:focus,
.help-field select:focus,
.help-field textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 4px rgba(145,133,199,0.18), 0 6px 16px rgba(111,96,168,0.14);
  transform: translateY(-1px);
}
.help-field textarea { resize: vertical; min-height: 78px; }

/* Botón premium con barrido de brillo */
.help-submit {
  margin-top: 0.4rem; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding-block: 0.95rem;
  background: linear-gradient(120deg, var(--purple-dark), var(--purple) 45%, var(--aqua-dark));
  background-size: 160% 100%;
  border: none; letter-spacing: 0.01em;
  box-shadow: 0 12px 26px -8px rgba(62,51,111,0.6);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease-out), background-position 0.4s ease;
}
.help-submit::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
}
.help-submit:hover {
  transform: translateY(-2px); background-position: 100% 0;
  box-shadow: 0 18px 34px -8px rgba(62,51,111,0.7);
}
.help-submit:hover::after { left: 130%; }
.help-form.is-sending .help-submit { opacity: 0.8; cursor: progress; }
.help-feedback { margin: 0.2rem 0 0; font-size: 0.9rem; font-weight: 600; min-height: 1.1em; color: var(--coral); }
.help-feedback.is-ok { color: var(--aqua-dark); }
.help-privacy { margin: 0; font-size: 0.76rem; color: var(--muted); text-align: center; }

@media (max-width: 1120px) {
  .help-card { grid-template-columns: 1fr; }
  .help-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .help-card, .help-card::before, .help-submit, .help-submit::after { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEGA-MENÚ "QUIÉNES SOMOS" (2 columnas · hover desktop / tap móvil)
   ═══════════════════════════════════════════════════════════════════════════ */
.has-mega { position: relative; display: inline-flex; }

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(620px, 90vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(111, 96, 168, 0.16);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
  z-index: 80;
}
/* Flecha superior */
.mega-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(111, 96, 168, 0.16);
  border-top: 1px solid rgba(111, 96, 168, 0.16);
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-col {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(111,96,168,0.05), rgba(111,96,168,0.02));
}
.mega-col--alt {
  background: linear-gradient(180deg, rgba(54,174,184,0.08), rgba(54,174,184,0.02));
}
.mega-col-title {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}
.mega-col--alt .mega-col-title { color: var(--aqua-dark); }
.mega-col-sub {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--purple-dark);
  transition: background 0.2s ease, transform 0.2s var(--spring);
}
.mega-link:hover { background: rgba(255, 255, 255, 0.9); transform: translateX(2px); }
.mega-link .mega-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--white);
  color: var(--purple);
  box-shadow: 0 4px 12px rgba(62, 51, 111, 0.1);
}
.mega-col--alt .mega-link .mega-ico { color: var(--aqua-dark); }
.mega-link strong { display: block; font-size: 0.92rem; }
.mega-link em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAPA DE ACCIÓN — hotspots + panel glassmorphism + línea de tiempo
   ═══════════════════════════════════════════════════════════════════════════ */
.mapa-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(at 15% 20%, rgba(111,96,168,0.10), transparent 55%),
    radial-gradient(at 85% 15%, rgba(54,174,184,0.10), transparent 50%),
    linear-gradient(180deg, #f7f2f6, #efe8f3);
}
.mapa-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}
.mapa-stage {
  position: relative;
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(160deg, #3e336f, #2c2450);
  box-shadow: var(--shadow-lg);
  min-height: 460px;
  overflow: hidden;
}
.mapa-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 55% 45%, #000 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 45%, transparent 78%);
  pointer-events: none;
}
.mapa-art {
  position: absolute;
  inset: 8% 6%;
  width: 88%;
  height: 84%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
.mapa-hotspots { position: absolute; inset: 0; }

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}
.hotspot-dot {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(149, 220, 226, 0.28);
  transition: transform 0.3s var(--spring), background 0.3s ease;
}
.hotspot-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(149, 220, 226, 0.7);
  animation: hotspotPulse 2.2s ease-out infinite;
}
.hotspot-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.hotspot:hover .hotspot-dot,
.hotspot.is-active .hotspot-dot { transform: scale(1.25); background: var(--coral); }
.hotspot.is-active .hotspot-dot { box-shadow: 0 0 0 5px rgba(232, 132, 114, 0.35); }
.hotspot:hover .hotspot-label,
.hotspot.is-active .hotspot-label,
.hotspot:focus-visible .hotspot-label { opacity: 1; }
.hotspot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 50%; }

@keyframes hotspotPulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Panel glassmorphism con la línea de tiempo */
.mapa-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  overflow: hidden auto;
}
.mapa-panel.is-animated { animation: mapaPanelIn 0.5s var(--ease-out); }
@keyframes mapaPanelIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mapa-panel-empty {
  margin: auto;
  text-align: center;
  max-width: 320px;
  color: var(--muted);
}
.mapa-panel-empty-ico {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(111, 96, 168, 0.12);
  color: var(--purple);
}
.mapa-panel-empty h3 { margin: 0 0 6px; color: var(--purple-dark); }
.mapa-panel-empty p { margin: 0; font-size: 0.92rem; }

.mapa-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(111, 96, 168, 0.1);
  color: var(--purple-dark);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--spring);
}
.mapa-panel-close:hover { background: rgba(232, 132, 114, 0.18); transform: rotate(90deg); }

.mapa-panel-head { margin-bottom: 18px; padding-right: 40px; }
.mapa-panel-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua-dark);
}
.mapa-panel-title {
  margin: 4px 0 8px;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--purple-dark);
}
.mapa-panel-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  background: rgba(111, 96, 168, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
}

.mapa-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  position: relative;
}
.mapa-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--purple), var(--aqua-dark));
}
.mapa-tl-item {
  position: relative;
  padding: 0 0 22px 8px;
  opacity: 0;
  transform: translateY(14px);
  animation: mapaStepIn 0.5s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.11s + 0.12s);
}
.mapa-tl-item:last-child { padding-bottom: 0; }
@keyframes mapaStepIn {
  to { opacity: 1; transform: translateY(0); }
}
.mapa-tl-dot {
  position: absolute;
  left: -22px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--purple);
  box-shadow: 0 0 0 4px rgba(111, 96, 168, 0.12);
}
.mapa-tl-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.mapa-tl-act {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.mapa-tl-allies {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(149, 220, 226, 0.16);
}
.mapa-tl-allies-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aqua-dark);
  margin-bottom: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mapa-layout { grid-template-columns: 1fr; }
  .mapa-stage { min-height: 380px; }
  .mapa-panel { min-height: 260px; }
}

@media (max-width: 820px) {
  /* Mega-menú como submenú expandible dentro del panel móvil */
  .nav-links.open .has-mega { width: 100%; flex-direction: column; align-items: stretch; }
  .mega-panel {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: rgba(111, 96, 168, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out), opacity 0.3s ease;
  }
  .mega-panel::before { display: none; }
  .has-mega.mega-open .mega-panel { max-height: 640px; padding: 14px; }
  .has-mega:hover .mega-panel,
  .has-mega:focus-within .mega-panel { transform: none; }
  .mega-trigger::after { content: " ▾"; font-size: 0.8em; }
  .has-mega.mega-open .mega-trigger::after { content: " ▴"; }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot-dot::before,
  .mapa-panel.is-animated,
  .mapa-tl-item { animation: none !important; }
  .mapa-tl-item { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAPA DE COLOMBIA REAL — departamentos morados sobre fondo aqua + callouts
   (overrides del mapa estilizado anterior)
   ═══════════════════════════════════════════════════════════════════════════ */
.mapa-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background:
    radial-gradient(at 30% 20%, rgba(149,220,226,0.55), transparent 60%),
    linear-gradient(160deg, #9fdfe4, #7fd0d8);
  box-shadow: var(--shadow-lg);
}
.mapa-stage::after { display: none; }

.mapa-art {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 560px;
  filter: drop-shadow(0 18px 30px rgba(44, 36, 80, 0.28));
  overflow: visible;
}

/* Departamentos: base morada con variación de tonos */
.mapa-depts .dept {
  fill: #b9addd;
  stroke: #f3eefb;
  stroke-width: 1.1;
  stroke-linejoin: round;
  transition: fill 0.25s ease, transform 0.25s var(--spring);
}
.mapa-depts .dept:nth-of-type(6n+1) { fill: #a99bd3; }
.mapa-depts .dept:nth-of-type(6n+2) { fill: #bfb4e2; }
.mapa-depts .dept:nth-of-type(6n+3) { fill: #9385c6; }
.mapa-depts .dept:nth-of-type(6n+4) { fill: #cabfe9; }
.mapa-depts .dept:nth-of-type(6n+5) { fill: #8f80c4; }
.mapa-depts .dept:nth-of-type(6n)   { fill: #b2a6d8; }

/* Departamentos con impacto: tono profundo y clicables */
.mapa-depts .dept--impact {
  fill: #5a4a97;
  cursor: pointer;
}
.mapa-depts .dept--impact:hover { fill: #6f5cb3; }
.mapa-depts .dept--impact.is-active { fill: var(--coral); }
.mapa-depts .dept--impact:focus-visible { outline: none; stroke: #fff; stroke-width: 2.2; }

/* Marcadores con etiqueta de llamada */
.mapa-marker { cursor: pointer; }
.mapa-leader {
  fill: none;
  stroke: #3e336f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mapa-marker-dot { fill: #3e336f; transition: fill 0.25s ease, r 0.25s var(--spring); }
.mapa-marker-pulse {
  fill: rgba(62, 51, 111, 0.28);
  transform-box: fill-box;
  transform-origin: center;
  animation: mapaMarkerPulse 2.2s ease-out infinite;
}
.mapa-label {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  fill: #2c2450;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3px;
}
.mapa-marker:hover .mapa-marker-dot,
.mapa-marker.is-active .mapa-marker-dot { fill: var(--coral); }
.mapa-marker:hover .mapa-label,
.mapa-marker.is-active .mapa-label { fill: #c2543f; }
.mapa-marker:focus-visible { outline: none; }
.mapa-marker:focus-visible .mapa-marker-dot { fill: var(--coral); }

@keyframes mapaMarkerPulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

@media (max-width: 900px) {
  .mapa-label { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mapa-marker-pulse { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAPA DE COLOMBIA — profundidad 3D (extrusión + flotación) y vista completa
   ═══════════════════════════════════════════════════════════════════════════ */
.mapa-stage {
  padding: 34px 30px;
  perspective: 1400px;
}
.mapa-art {
  width: 100%;
  max-width: 500px;                 /* tamaño fijo del mapa (no crece más) */
  max-height: 520px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  animation: mapaFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Extrusión: sombras moradas apiladas hacia abajo = grosor 3D + sombra al piso */
.mapa-depts {
  filter:
    drop-shadow(0 1px 0 #7a6bb4)
    drop-shadow(0 2px 0 #6f60a8)
    drop-shadow(0 3px 0 #64559d)
    drop-shadow(0 4px 0 #594a90)
    drop-shadow(0 5px 0 #4f4184)
    drop-shadow(0 6px 0 #453977)
    drop-shadow(0 16px 16px rgba(44, 36, 80, 0.38));
}

/* Los departamentos con impacto se elevan al pasar el cursor / activarse */
.mapa-depts .dept--impact {
  transform-box: fill-box;
  transform-origin: center;
}
.mapa-depts .dept--impact:hover,
.mapa-depts .dept--impact.is-active {
  transform: translateY(-4px);
}

/* El punto activo también levanta su etiqueta */
.mapa-marker.is-active { filter: drop-shadow(0 6px 10px rgba(44, 36, 80, 0.35)); }

@keyframes mapaFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50%      { transform: translateY(-8px) rotateX(1.5deg); }
}

@media (max-width: 900px) {
  .mapa-depts {
    filter:
      drop-shadow(0 1px 0 #6f60a8)
      drop-shadow(0 2px 0 #5f5099)
      drop-shadow(0 3px 0 #4f4184)
      drop-shadow(0 10px 12px rgba(44, 36, 80, 0.34));
  }
}
@media (prefers-reduced-motion: reduce) {
  .mapa-art { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTÓN DONACIONES — ícono de corazón + latido sutil premium
   ═══════════════════════════════════════════════════════════════════════════ */
.donate { gap: 9px; }

/* Se usa el emoji 💜 dentro del texto; se oculta el SVG inyectado para no duplicar */
.nav-links a.donate .nav-ico { display: none !important; }

/* Latido "lub-dub" sutil premium del BOTÓN completo (escala + glow sincronizados) */
.donate {
  transform-origin: center;
  will-change: transform;
  animation: donateHeartbeat 2.6s ease-in-out infinite;
}
/* Al interactuar cede el paso al hover/active (que tienen su propio transform) */
.donate:hover,
.donate:active { animation: none; }

@keyframes donateHeartbeat {
  0%, 40%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(232, 132, 114, 0.4);
  }
  12% {
    transform: scale(1.05);
    box-shadow: 0 9px 26px rgba(232, 132, 114, 0.58);
  }
  22% { transform: scale(1); }
  30% {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(232, 132, 114, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .donate { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL DE DONACIÓN NO CONFIRMADA (reintento) — variante del modal de gracias
   ═══════════════════════════════════════════════════════════════════════════ */
.thanks-badge--retry {
  background: radial-gradient(circle at 50% 35%, rgba(232, 132, 114, 0.22), transparent 70%);
  color: var(--coral);
}
.thanks-eyebrow--retry { color: var(--coral); }
.thanks-card--retry h3 { color: var(--purple-dark); }

/* ── PUBLICACIONES ───────────────────────────────────────── */
.posts-section {
  background:
    linear-gradient(180deg, rgba(149, 220, 226, 0.12), rgba(255,255,255,0)),
    var(--soft-bg, #faf7fb);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 96, 168, 0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 20px 45px rgba(66, 52, 108, 0.11);
  display: flex;
  flex-direction: column;
}

.post-card-media {
  aspect-ratio: 16 / 10;
  background: rgba(149, 220, 226, 0.16);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted, #6f6781);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-meta span {
  color: var(--purple, #6f60a8);
}

.post-card h3 {
  margin: 0;
  color: var(--ink, #251f37);
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem);
  line-height: 1.2;
}

.post-card p {
  margin: 0;
  color: var(--muted, #6f6781);
  line-height: 1.65;
}

.post-card-link {
  margin-top: auto;
  color: var(--purple, #6f60a8);
  font-weight: 800;
  text-decoration: none;
}

.post-card-link:hover {
  text-decoration: underline;
}

.posts-empty {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px dashed rgba(111, 96, 168, 0.28);
  color: var(--muted, #6f6781);
  background: rgba(255,255,255,0.62);
}

@media (max-width: 980px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-card-body { padding: 18px; }
  .post-card-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}



@media (min-width: 1121px) and (max-width: 1280px) {
  .nav { width: min(1240px, calc(100% - 24px)); gap: 10px; }
  .brand { gap: 9px; }
  .brand img { width: 48px; height: 48px; }
  .brand span { max-width: 118px; font-size: 0.82rem; }
  .nav-links a { padding-inline: 9px; font-size: 0.82rem; }
  .donate { padding-inline: 15px; }
  .admin-login-btn { padding-inline: 12px; }
}

@media (max-width: 520px) {
  .brand { gap: 9px; }
  .brand img { width: 46px; height: 46px; border-radius: 12px; }
  .brand span { max-width: 132px; font-size: 0.82rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .lang-btn { min-height: 36px; padding: 6px 11px; }
  .admin-login-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; }
  .admin-login-text { display: none; }
}

@media (max-width: 370px) {
  .brand span { max-width: 108px; font-size: 0.78rem; }
  .brand img { width: 42px; height: 42px; }
  .nav { gap: 8px; }
  .lang-btn { padding-inline: 9px; }
  .admin-login-btn,
  .nav-toggle { width: 38px; height: 38px; min-height: 38px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   OCULTAR botones de navegación: Publicaciones e Ingresar (admin)
   (temporal — quitar estas reglas para volver a mostrarlos)
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-links a[data-i18n="nav.posts"] { display: none !important; }
.admin-login-btn { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACADEMIA PÚRPURA 🎓 — Módulo educativo destacado (Fase 1: captación)
   Mobile-first, animaciones sutiles, preparado para escalar a Moodle/LMS.
   ═══════════════════════════════════════════════════════════════════════════ */
.academia-section {
  position: relative;
}

/* Tarjeta contenedora tipo "módulo premium" */
.academia-card {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 44px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(111, 96, 168, 0.16);
  background:
    radial-gradient(at 90% 0%, rgba(255, 209, 102, 0.12) 0px, transparent 45%),
    radial-gradient(at 0% 100%, rgba(149, 220, 226, 0.14) 0px, transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 246, 0.92));
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* Franja superior dorada/púrpura que lo marca como destacado */
.academia-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--purple) 0%, #ffd166 55%, var(--aqua) 100%);
}

/* Badge superior */
.academia-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.9), rgba(255, 190, 60, 0.9));
  border: 1px solid rgba(214, 158, 46, 0.5);
  color: #5b4a10;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(255, 190, 60, 0.35);
}

.academia-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d68e2e;
  box-shadow: 0 0 0 0 rgba(214, 142, 46, 0.6);
  animation: academiaPulse 2s var(--ease-out) infinite;
}

@keyframes academiaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(214, 142, 46, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(214, 142, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 142, 46, 0); }
}

/* Encabezado */
.academia-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  color: var(--purple-dark);
  line-height: 1.1;
}

.academia-emoji {
  display: inline-block;
  margin-right: 6px;
}

.academia-lead {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Líneas de formación — grid 2 columnas en desktop, 1 en móvil */
.academia-lines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 34px auto 0;
  max-width: 860px;
  text-align: left;
}

.academia-line {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(111, 96, 168, 0.12);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out),
              border-color 0.3s ease;
}

.academia-line:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(111, 96, 168, 0.22);
}

.academia-line-icon {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 12px;
}

.academia-line h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--purple-dark);
}

.academia-line p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Expectativa tecnológica */
.academia-tech {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(111, 96, 168, 0.06);
  border: 1px dashed rgba(111, 96, 168, 0.28);
  color: var(--purple);
  font-size: 0.92rem;
}

.academia-tech strong { color: var(--purple-dark); }
.academia-tech-icon { margin-right: 4px; }

/* CTA */
.academia-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.academia-btn {
  gap: 10px;
  min-height: 54px;
  padding: 14px 32px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(62, 51, 111, 0.32);
}

.academia-btn:hover {
  background: linear-gradient(135deg, #7b6bb8 0%, #47398a 100%);
  box-shadow: 0 10px 30px rgba(62, 51, 111, 0.45);
}

.academia-btn-arrow {
  transition: transform 0.25s var(--ease-out);
}

.academia-btn:hover .academia-btn-arrow {
  transform: translateX(4px);
}

.academia-cta-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Modal / Lista de espera ─────────────────────────────────────────────── */
.academia-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 27, 46, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.academia-overlay.open {
  opacity: 1;
  visibility: visible;
}

.academia-modal {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 30px 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--spring);
}

.academia-overlay.open .academia-modal {
  transform: none;
}

.academia-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(111, 96, 168, 0.1);
  color: var(--purple-dark);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--spring);
}

.academia-modal-close:hover {
  background: rgba(111, 96, 168, 0.2);
  transform: rotate(90deg);
}

.academia-badge--modal {
  margin-bottom: 16px;
  background: rgba(149, 220, 226, 0.3);
  border-color: rgba(149, 220, 226, 0.5);
  color: var(--purple-dark);
  box-shadow: none;
}

.academia-modal h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--purple-dark);
}

.academia-modal-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.academia-form {
  display: grid;
  gap: 14px;
}

.academia-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.academia-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-dark);
}

.academia-field input {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(111, 96, 168, 0.2);
  background: var(--paper);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.academia-field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(111, 96, 168, 0.15);
}

.academia-form-submit {
  margin-top: 6px;
  min-height: 50px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(62, 51, 111, 0.3);
}

.academia-form-submit:hover {
  background: linear-gradient(135deg, #7b6bb8 0%, #47398a 100%);
  box-shadow: 0 10px 28px rgba(62, 51, 111, 0.42);
}

.academia-form-feedback {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple-dark);
}

/* ── Responsive: 2 columnas y más aire en pantallas medianas/grandes ─────── */
@media (min-width: 720px) {
  .academia-card { padding: 56px 48px 60px; }
  .academia-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Accesibilidad: respeta reduce-motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .academia-badge-dot { animation: none; }
  .academia-line:hover,
  .academia-btn:hover,
  .academia-btn:hover .academia-btn-arrow { transform: none; }
  .academia-modal { transition: opacity 0.2s ease; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENLACE PERMANENTE "Academia Púrpura" en la barra de navegación
   Siempre visible en TODAS las pantallas (no se colapsa en el menú hamburguesa).
   ═══════════════════════════════════════════════════════════════════════════ */
.academia-nav-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 4px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(149, 220, 226, 0.24), transparent 34%),
    linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 48%, var(--coral) 100%);
  border: 1px solid rgba(149, 220, 226, 0.72);
  box-shadow:
    0 8px 22px rgba(62, 51, 111, 0.30),
    0 0 0 3px rgba(149, 220, 226, 0.14);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease-out),
              border-color 0.2s ease, filter 0.2s ease;
}

.academia-nav-link::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(149, 220, 226, 0.22), 0 0 16px rgba(149, 220, 226, 0.9);
}

.academia-nav-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45% auto -45% -35%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  transition: transform 0.45s var(--ease-out);
}

.academia-nav-link:hover,
.academia-nav-link.active-academia {
  color: var(--white);
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.9);
  filter: saturate(1.08);
  box-shadow:
    0 12px 30px rgba(62, 51, 111, 0.42),
    0 0 0 4px rgba(149, 220, 226, 0.18);
}

.academia-nav-link:hover::after,
.academia-nav-link.active-academia::after {
  transform: translateX(330%) rotate(18deg);
}

.academia-nav-link:active { transform: scale(0.97); }

/* En móvil se mantiene visible y compacto (solo se reduce el padding) */
@media (max-width: 900px) {
  .academia-nav-link {
    order: 2;
    padding: 7px 12px;
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .academia-nav-link { padding: 6px 10px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .academia-nav-link:hover { transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ACADEMIA PAGE — página dedicada del futuro campus virtual
   ═══════════════════════════════════════════════════════════════════════════ */
.academy-page-body {
  background:
    radial-gradient(at 12% 18%, rgba(149, 220, 226, 0.18) 0, transparent 34%),
    radial-gradient(at 88% 8%, rgba(232, 132, 114, 0.14) 0, transparent 30%),
    linear-gradient(180deg, #fbf8fb 0%, #f7f2f6 48%, #eef7f8 100%);
}
.academy-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 58px;
}
.academy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/women-pattern.png");
  background-size: 560px auto;
  background-position: center top;
  opacity: 0.035;
  pointer-events: none;
}
.academy-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.academy-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(54, 174, 184, 0.35);
  background: rgba(149, 220, 226, 0.28);
  color: var(--purple-dark);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.academy-hero h1 {
  margin: 18px 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  color: var(--purple-dark);
  letter-spacing: 0;
}
.academy-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #50446b;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}
.academy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.academy-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
}
.academy-hero-stats div {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(111, 96, 168, 0.12);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow-sm);
}
.academy-hero-stats dt {
  margin: 0;
  color: var(--purple-dark);
  font-weight: 900;
  font-size: 1.25rem;
}
.academy-hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.academy-campus-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(111, 96, 168, 0.22);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 30px 80px rgba(62,51,111,0.20);
}
.academy-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(111, 96, 168, 0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,242,246,0.96));
}
.academy-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}
.academy-browser-bar span:nth-child(2) { background: #ffd166; }
.academy-browser-bar span:nth-child(3) { background: var(--aqua-dark); }
.academy-browser-bar strong {
  margin-left: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(111,96,168,0.08);
  color: var(--muted);
  font-size: 0.76rem;
}
.academy-dashboard-mock {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 430px;
}
.academy-dash-side {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 16px;
  background: linear-gradient(180deg, var(--purple-dark), var(--purple));
  color: rgba(255,255,255,0.86);
  font-size: 0.82rem;
  font-weight: 800;
}
.academy-dash-side img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  padding: 6px;
}
.academy-dash-side span {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}
.academy-dash-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #eff8f9);
}
.academy-dash-welcome {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(149,220,226,0.38), rgba(255,255,255,0.8));
}
.academy-dash-welcome small { color: var(--muted); font-weight: 800; }
.academy-dash-welcome strong { color: var(--purple-dark); font-size: 1.3rem; line-height: 1.2; }
.academy-dash-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.academy-dash-cards article {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(111,96,168,0.12);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.academy-dash-cards b { color: var(--purple-dark); line-height: 1.25; }
.academy-dash-cards span {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua-dark) var(--p), rgba(111,96,168,0.12) var(--p));
}
.academy-dash-cards em { color: var(--muted); font-size: 0.8rem; font-style: normal; font-weight: 800; }
.academy-video-mock {
  min-height: 145px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(62,51,111,0.86), rgba(111,96,168,0.72)), url("../assets/hero-community.jpg") center/cover;
}
.academy-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: scale(0.65);
}
.academy-video-mock p { margin: 0; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.academy-heading-narrow {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.academy-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.academy-feature {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(111,96,168,0.13);
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-sm);
}
.academy-feature span {
  color: var(--aqua-dark);
  font-weight: 900;
  font-size: 0.78rem;
}
.academy-feature h3 {
  margin: 8px 0 8px;
  color: var(--purple-dark);
  font-size: 1.12rem;
}
.academy-feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.academy-previews { background: rgba(255,255,255,0.45); }
.academy-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.academy-learning-preview {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(111,96,168,0.15);
  background: var(--white);
  box-shadow: var(--shadow);
}
.academy-learning-preview h3 {
  margin: 22px 22px 8px;
  color: var(--purple-dark);
  font-size: 1.22rem;
  line-height: 1.2;
}
.academy-learning-preview p {
  margin: 0 22px 24px;
  color: var(--muted);
}
.academy-preview-image {
  min-height: 230px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(111,96,168,0.92), rgba(149,220,226,0.82));
}
.academy-learning-preview.video .academy-preview-image { background: linear-gradient(135deg, #3e336f, #e88472); }
.academy-learning-preview.resources .academy-preview-image { background: linear-gradient(135deg, #95dce2, #f7f2f6); }
.academy-live-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffefe9;
  color: #9d3f2d;
  font-size: 0.75rem;
  font-weight: 900;
}
.academy-avatar-row { display: flex; margin-bottom: 72px; }
.academy-avatar-row span {
  width: 54px;
  height: 54px;
  margin-left: -8px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  background: linear-gradient(135deg, #fff, var(--aqua));
}
.academy-avatar-row span:nth-child(2) { background: linear-gradient(135deg, #fff, #ffd166); }
.academy-avatar-row span:nth-child(3) { background: linear-gradient(135deg, #fff, var(--coral)); }
.academy-class-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 3px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  color: var(--purple-dark);
  box-shadow: var(--shadow-sm);
}
.academy-class-card small { color: var(--muted); font-weight: 800; }
.academy-video-window {
  width: min(100%, 260px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(rgba(62,51,111,0.22), rgba(62,51,111,0.22)), url("../assets/hero-group.jpg") center/cover;
  box-shadow: 0 18px 40px rgba(30,27,46,0.24);
  position: relative;
}
.academy-video-window span {
  position: absolute;
  inset: auto 14px 14px 14px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua) 60%, rgba(255,255,255,0.5) 60%);
}
.academy-video-window i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  transform: translate(-50%, -50%);
}
.academy-learning-preview.video ul {
  width: min(100%, 260px);
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.academy-learning-preview.video li {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
}
.academy-learning-preview.video li:nth-child(2) { width: 82%; }
.academy-learning-preview.video li:nth-child(3) { width: 62%; }
.academy-resource-sheet {
  width: 210px;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  color: var(--purple-dark);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}
.academy-resource-sheet.small {
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 150px;
  min-height: 104px;
  transform: rotate(5deg);
}
.academy-resource-sheet b { font-size: 0.82rem; }
.academy-resource-sheet span {
  height: 9px;
  border-radius: 999px;
  background: rgba(111,96,168,0.14);
}
.academy-resource-sheet span:nth-child(3) { width: 76%; }
.academy-resource-sheet span:nth-child(4) { width: 54%; }
.academy-moodle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}
.academy-moodle-copy h2 {
  margin: 14px 0 14px;
  color: var(--purple-dark);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}
.academy-moodle-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}
.academy-phone-mock {
  width: min(320px, 100%);
  margin-inline: auto;
  padding: 14px;
  border-radius: 34px;
  background: #251f3f;
  box-shadow: 0 30px 70px rgba(62,51,111,0.28);
}
.academy-phone-top {
  width: 92px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}
.academy-phone-screen {
  min-height: 430px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #eef8f9);
}
.academy-phone-screen > strong {
  color: var(--purple-dark);
  font-size: 1.25rem;
}
.academy-phone-screen article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.academy-phone-screen article > span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua), var(--purple-soft));
}
.academy-phone-screen b { display: block; color: var(--purple-dark); line-height: 1.15; }
.academy-phone-screen small { color: var(--muted); font-weight: 700; }
@media (max-width: 1120px) {
  .academy-hero-grid,
  .academy-moodle-grid { grid-template-columns: 1fr; }
  .academy-campus-frame { max-width: 820px; margin-inline: auto; }
  .academy-feature-grid,
  .academy-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .academy-hero { padding-top: 54px; }
  .academy-hero-stats,
  .academy-feature-grid,
  .academy-preview-grid { grid-template-columns: 1fr; }
  .academy-dashboard-mock { grid-template-columns: 1fr; }
  .academy-dash-side { display: none; }
  .academy-dash-cards { grid-template-columns: 1fr; }
  .academy-browser-bar strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .academy-hero-actions .button { width: 100%; justify-content: center; }
  .academy-preview-image { min-height: 210px; }
}


/* Ocultar publicaciones en la página de inicio hasta que la fundación decida activarlas. */
.posts-section {
  display: none !important;
}

/* Ajuste de encuadre final del mapa de Colombia: evita que el sur se recorte. */
.mapa-layout {
  align-items: stretch;
}

.mapa-stage {
  min-height: clamp(500px, 48vw, 590px);
  padding: clamp(22px, 3vw, 34px);
}

.mapa-art {
  width: min(100%, 560px);
  max-width: 560px;
  max-height: none;
  aspect-ratio: 760 / 705;
  display: block;
}

@media (max-width: 900px) {
  .mapa-stage {
    min-height: clamp(430px, 112vw, 560px);
  }

  .mapa-art {
    width: min(100%, 520px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SELECTOR DE IDIOMA — desplegable con 4 idiomas (ES / EN / FR / IT)
   ═══════════════════════════════════════════════════════════════════════════ */
.lang-select {
  position: relative;
  flex-shrink: 0;
}

/* El botón hereda el estilo .lang-btn; solo ajustamos el layout interno */
.lang-select .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-current-flag { font-size: 1rem; line-height: 1; }
.lang-current-code { letter-spacing: 0.08em; }

.lang-caret {
  transition: transform 0.25s var(--ease-out);
  opacity: 0.7;
}
.lang-select.open .lang-caret { transform: rotate(180deg); }

/* Menú desplegable */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--spring), visibility 0.2s;
}

.lang-select.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(111, 96, 168, 0.1);
  outline: none;
}

.lang-option.is-active {
  background: rgba(111, 96, 168, 0.14);
  color: var(--purple-dark);
}

.lang-option.is-active::after {
  content: "✓";
  margin-left: auto;
  font-weight: 900;
  color: var(--purple);
}

.lang-opt-flag { font-size: 1.15rem; line-height: 1; }

/* En móvil el menú se ancla a la derecha sin salirse de pantalla */
@media (max-width: 720px) {
  .lang-menu { min-width: 156px; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-caret,
  .lang-menu { transition: opacity 0.15s ease; }
  .lang-select.open .lang-menu { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BANDA DE CONTACTO ANIMADA — barra de iconos con fondo oscuro + glow difuminado
   Clases con prefijo cbar- para no colisionar con .contact-*
   ═══════════════════════════════════════════════════════════════════════════ */
.cbar-band {
  position: relative;
  overflow: hidden;
  padding: 72px 20px;
  background: linear-gradient(160deg, #241d40 0%, var(--purple-dark) 60%, #1a1530 100%);
  text-align: center;
}

/* Luces difuminadas (glow) con degradados radiales + blur */
.cbar-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.cbar-glow-1 {
  width: 42vw; height: 42vw; top: -14%; left: -6%;
  background: radial-gradient(circle at center, var(--purple) 0%, transparent 70%);
  opacity: 0.6;
  animation: cbarFloat 12s ease-in-out infinite alternate;
}
.cbar-glow-2 {
  width: 38vw; height: 38vw; bottom: -16%; right: -6%;
  background: radial-gradient(circle at center, var(--aqua) 0%, transparent 70%);
  opacity: 0.42;
  animation: cbarFloat 14s ease-in-out infinite alternate -6s;
}
.cbar-glow-3 {
  width: 30vw; height: 30vw; left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, var(--coral) 0%, transparent 70%);
  opacity: 0.3;
  animation: cbarFloat 16s ease-in-out infinite alternate;
}

@keyframes cbarFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 6%) scale(1.12); }
}
.cbar-glow-3 { animation-name: cbarFloat3; }
@keyframes cbarFloat3 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-46%, -42%) scale(1.14); }
}

.cbar-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cbar-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
}

.cbar-sub {
  margin: 12px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
}

/* Barra de iconos */
.cbar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Indicador (burbuja) que se desliza al icono activo/hover */
.cbar-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, #8a79c9 100%);
  box-shadow: 0 6px 22px rgba(149, 220, 226, 0.4);
  transition: transform 0.45s var(--spring), background 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.cbar-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cbar-link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s var(--spring);
}
.cbar-link:hover,
.cbar-link.is-active { color: #fff; }
.cbar-link:hover svg { transform: scale(1.15) translateY(-2px); }

/* Etiqueta emergente */
.cbar-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-dark);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.cbar-link:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .cbar { gap: 4px; padding: 10px; }
  .cbar-indicator, .cbar-link { width: 48px; height: 48px; }
  .cbar-indicator { top: 10px; left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cbar-glow { animation: none; }
  .cbar-indicator, .cbar-link svg { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER — fila legal (política de seguridad + derechos reservados)
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-legal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}
.footer-security {
  max-width: 780px;
}
.footer-rights {
  white-space: nowrap;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}
@media (max-width: 640px) {
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
