:root {
  color-scheme: light;
  --azul-principal: #0b7187;
  --azul-accion: #075b70;
  --azul-claro: #7ddce5;
  --fondo: rgba(235, 247, 249, 0.9);
  --blanco: rgba(255, 255, 255, 0.88);
  --texto: #102a33;
  --texto-suave: #4c6570;
  --borde: rgba(38, 113, 132, 0.2);
  --sombra: 0 12px 34px rgba(18, 78, 93, 0.13);
  --foco: rgba(11, 113, 135, 0.4);
  --rayo-agua: rgba(255, 255, 255, 0.32);
  --burbuja: rgba(20, 132, 151, 0.2);
  --ambiente-oceano:
    radial-gradient(circle at 82% 18%, rgba(71, 205, 208, 0.2), transparent 28%),
    radial-gradient(circle at 8% 72%, rgba(46, 139, 174, 0.15), transparent 34%),
    linear-gradient(160deg, #f4fcfb 0%, #dceff2 52%, #bcdde6 100%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --azul-principal: #63d5df;
  --azul-claro: #9beaf0;
  --fondo: rgba(4, 19, 29, 0.9);
  --blanco: rgba(9, 35, 48, 0.88);
  --texto: #e8f8fa;
  --texto-suave: #a2c2c8;
  --borde: rgba(104, 204, 214, 0.2);
  --sombra: 0 14px 38px rgba(0, 6, 12, 0.42);
  --foco: rgba(99, 213, 223, 0.48);
  --rayo-agua: rgba(108, 224, 229, 0.1);
  --burbuja: rgba(113, 221, 228, 0.22);
  --ambiente-oceano:
    radial-gradient(circle at 72% 8%, rgba(40, 157, 173, 0.18), transparent 30%),
    radial-gradient(circle at 12% 68%, rgba(18, 93, 128, 0.2), transparent 36%),
    linear-gradient(165deg, #06121d 0%, #072b3b 50%, #031019 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --azul-principal: #63d5df;
    --azul-claro: #9beaf0;
    --fondo: rgba(4, 19, 29, 0.9);
    --blanco: rgba(9, 35, 48, 0.88);
    --texto: #e8f8fa;
    --texto-suave: #a2c2c8;
    --borde: rgba(104, 204, 214, 0.2);
    --sombra: 0 14px 38px rgba(0, 6, 12, 0.42);
    --foco: rgba(99, 213, 223, 0.48);
    --rayo-agua: rgba(108, 224, 229, 0.1);
    --burbuja: rgba(113, 221, 228, 0.22);
    --ambiente-oceano:
      radial-gradient(
        circle at 72% 8%,
        rgba(40, 157, 173, 0.18),
        transparent 30%
      ),
      radial-gradient(
        circle at 12% 68%,
        rgba(18, 93, 128, 0.2),
        transparent 36%
      ),
      linear-gradient(165deg, #06121d 0%, #072b3b 50%, #031019 100%);
  }
}

body {
  min-height: 100vh;
  padding-top: 0;
  position: relative;
  isolation: isolate;
  background-color: var(--fondo);
  background-image: var(--ambiente-oceano);
  background-attachment: fixed;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  color: var(--texto);
  font-family: "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  inset: -18% -12%;
  background:
    linear-gradient(
      112deg,
      transparent 28%,
      var(--rayo-agua) 38%,
      transparent 48%
    ),
    linear-gradient(
      104deg,
      transparent 52%,
      var(--rayo-agua) 61%,
      transparent 70%
    );
  transform-origin: top center;
  animation: rayos-oceano 14s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(
      circle at 8% 88%,
      transparent 0 5px,
      var(--burbuja) 6px 7px,
      transparent 8px
    ),
    radial-gradient(
      circle at 18% 42%,
      transparent 0 3px,
      var(--burbuja) 4px 5px,
      transparent 6px
    ),
    radial-gradient(
      circle at 34% 76%,
      transparent 0 7px,
      var(--burbuja) 8px 9px,
      transparent 10px
    ),
    radial-gradient(
      circle at 56% 24%,
      transparent 0 4px,
      var(--burbuja) 5px 6px,
      transparent 7px
    ),
    radial-gradient(
      circle at 72% 68%,
      transparent 0 6px,
      var(--burbuja) 7px 8px,
      transparent 9px
    ),
    radial-gradient(
      circle at 88% 36%,
      transparent 0 3px,
      var(--burbuja) 4px 5px,
      transparent 6px
    ),
    radial-gradient(
      circle at 94% 84%,
      transparent 0 8px,
      var(--burbuja) 9px 10px,
      transparent 11px
    );
  animation: burbujas-oceano 18s ease-in-out infinite alternate;
}

@keyframes rayos-oceano {
  to {
    transform: translate3d(4%, 2%, 0) rotate(1.5deg);
  }
}

@keyframes burbujas-oceano {
  to {
    transform: translateY(-34px);
  }
}

@keyframes flotacion-oceano {
  to {
    transform: translate3d(-18px, 14px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .page-hero-circulo {
    animation: none;
  }
}

::selection {
  background: var(--azul-principal);
  color: var(--blanco);
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

#navbar-principal {
  background: linear-gradient(
    110deg,
    rgba(3, 39, 53, 0.72),
    rgba(5, 25, 42, 0.58)
  );
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(125, 220, 229, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1320px, calc(100% - 32px));
  z-index: 1000;
  border-radius: 50px;
  transition: all 0.4s ease;
}

#navbar-principal.scrolled {
  background: rgba(3, 28, 40, 0.94);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  padding: 7px 18px;
  box-shadow:
    0 8px 28px rgba(0, 11, 20, 0.3),
    inset 0 1px 0 rgba(125, 220, 229, 0.12);
}

#navbar-principal > .container {
  max-width: none;
  padding-inline: 0;
}

#navbar-principal .navbar-toggler {
  width: 44px;
  height: 44px;
  padding: 8px;
  flex-shrink: 0;
  color: #fff;
  border-color: rgba(125, 220, 229, 0.4);
  border-radius: 12px;
}

#navbar-principal .navbar-toggler:focus {
  box-shadow: none;
}

#navbar-principal .navbar-toggler:focus-visible {
  outline: 3px solid var(--azul-claro);
  outline-offset: 3px;
}

#navbar-principal .navbar-toggler-icon {
  width: 24px;
  height: 24px;
}

#navbar-principal .navbar-collapse,
#navbar-principal .navbar-actions,
#navbar-principal .nav-perfil-btn {
  min-width: 0;
}

#navbar-principal .navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

#navbar-principal .nav-link,
#navbar-principal .navbar-actions > * {
  white-space: nowrap;
}

#navbar-principal .nav-perfil-btn {
  max-width: 160px;
}

#navbar-principal .nav-perfil-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#navbar-principal .nav-avatar {
  flex-shrink: 0;
}

@media (max-width: 1199.98px) {
  #navbar-principal,
  #navbar-principal.scrolled {
    width: calc(100% - 24px);
    padding: 10px 12px;
    border-radius: 22px;
    background: rgba(3, 28, 40, 0.96);
  }

  #navbar-principal .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 56px);
    margin-right: 12px;
  }

  #menu-principal {
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #navbar-principal .navbar-nav {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(125, 220, 229, 0.2);
  }

  #navbar-principal .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  #navbar-principal .navbar-actions {
    flex-wrap: wrap;
    margin: 12px 0 0;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(125, 220, 229, 0.2);
  }

  #navbar-principal .navbar-actions > * {
    min-height: 44px;
    font-size: 14px;
    border-radius: 12px;
  }

  #navbar-principal .btn-tema {
    width: 44px;
    flex-shrink: 0;
  }

  #navbar-principal .btn-idioma {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
  }

  #navbar-principal .nav-perfil-btn,
  #navbar-principal .btn-donar {
    flex: 1;
    min-width: 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  #navbar-principal .logo-img {
    width: 36px;
    height: 36px;
  }

  #navbar-principal .nav-nombre {
    font-size: 14px;
    white-space: normal;
  }

  #navbar-principal .nav-sub {
    display: none;
  }
}

.logo-img {
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(125, 220, 229, 0.35),
    0 0 18px rgba(77, 205, 215, 0.2);
}

.nav-nombre {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.nav-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

#navbar-principal .nav-link {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 10px;
  transition: all 0.2s ease;
}

#navbar-principal .nav-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
}

#navbar-principal .nav-link.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

.btn-tema {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.btn-tema:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-donar {
  font-size: 12px;
  padding: 6px 16px;
  background-color: #ffffff;
  color: var(--azul-accion) !important;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-donar:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.donar-heart {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-left: 3px;
}

.heart-outline,
.heart-filled {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease;
}

.heart-outline {
  color: var(--azul-accion);
}

.heart-filled {
  opacity: 0;
  color: #e53e3e;
}

.btn-donar:hover .heart-outline {
  opacity: 0;
}

.btn-donar:hover .heart-filled {
  opacity: 1;
}

#hero {
  width: 100%;
}

.hero-foto {
  position: relative;
  height: 600px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 72% 18%,
      rgba(71, 211, 218, 0.15),
      transparent 32%
    ),
    linear-gradient(
      to top,
      rgba(2, 20, 32, 0.94) 0%,
      rgba(4, 54, 68, 0.28) 62%,
      rgba(12, 109, 120, 0.1) 100%
    );
}

.hero-contenido {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding-bottom: 36px;
}

.hero-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(200, 230, 255, 0.7);
  margin-bottom: 10px;
}

.hero-titulo {
  font-size: 52px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-titulo-celeste {
  color: var(--azul-claro);
}

.hero-tagline {
  font-size: 14px;
  color: rgba(200, 225, 245, 0.7);
  max-width: 360px;
  line-height: 1.65;
  margin-bottom: 0;
}

.btn-hero-blanco {
  font-size: 12px;
  padding: 9px 20px;
  background-color: #ffffff;
  color: #1a3a55;
  border-radius: 7px;
  font-weight: 500;
  text-decoration: none;
  border: none;
}

.btn-hero-blanco:hover {
  background-color: #e8f0f7;
  color: #1a3a55;
}

.btn-hero-ghost {
  font-size: 12px;
  padding: 9px 20px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  text-decoration: none;
}

.btn-hero-ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

#quienes-somos {
  background-color: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.seccion-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--azul-principal);
  margin-bottom: 8px;
}

.seccion-titulo {
  font-size: 24px;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.3;
  margin-bottom: 16px;
}

.seccion-texto {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.75;
  margin-bottom: 0;
}

.pildora {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 14px 18px;
}

.pildora-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.pildora-titulo {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 2px;
}

.pildora-sub {
  font-size: 11px;
  color: var(--texto-suave);
  margin-bottom: 0;
}

#galeria {
  background-color: var(--fondo);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.galeria-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.galeria-ver-todas {
  font-size: 12px;
  color: var(--azul-principal);
  text-decoration: none;
  padding-bottom: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.galeria-ver-todas:hover {
  text-decoration: underline;
}

.galeria-foto {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: #c8dce8;
}

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

.galeria-foto:hover img {
  transform: scale(1.04);
}

.galeria-foto-grande {
  height: 450px;
}

.galeria-foto-pequena {
  height: 215px;
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 25, 40, 0.65) 0%,
    transparent 50%
  );
}

.galeria-pie {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 12px;
  color: rgba(220, 240, 255, 0.85);
  margin-bottom: 0;
  z-index: 1;
}

#eventos {
  background-color: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.evento-card {
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--fondo);
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.evento-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.evento-stripe {
  height: 5px;
  width: 100%;
}

.evento-body {
  padding: 20px;
}

.evento-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--azul-principal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.evento-titulo {
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}

.evento-desc {
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.65;
  margin-bottom: 14px;
}

.evento-fecha {
  font-size: 11px;
  color: var(--texto-suave);
  margin-bottom: 0;
}

#equipo {
  background-color: var(--fondo);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.equipo-card {
  background-color: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.equipo-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.equipo-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin: 0 auto 14px;
}

.equipo-foto {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 2px solid var(--borde);
}

.equipo-nombre {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 4px;
}

.equipo-rol {
  font-size: 11px;
  color: var(--texto-suave);
  margin-bottom: 0;
}

#footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 22%,
      rgba(76, 205, 215, 0.12),
      transparent 30%
    ),
    linear-gradient(150deg, #062b3a 0%, #031924 100%);
  padding: 64px 0 32px;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  background: rgba(125, 220, 229, 0.12);
  clip-path: polygon(
    0 42%,
    12% 68%,
    25% 34%,
    39% 62%,
    54% 30%,
    69% 66%,
    84% 36%,
    100% 58%,
    100% 0,
    0 0
  );
}

#footer::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 360px;
  aspect-ratio: 1;
  background: url("../img/logo.png") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

#footer .container {
  position: relative;
  z-index: 1;
}

.footer-nombre {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-titulo-col {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--azul-claro);
}

.footer-red {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-red:hover {
  color: var(--azul-claro);
}

.footer-red-icono {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.footer-hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 40px 0 20px;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0;
}

.credit-name {
  font-weight: 600;
}

.credit-horchata {
  color: #7dd3fc;
}
.credit-noch {
  color: #f472b6;
}
.credit-pancho {
  color: #2dd4bf;
}
.credit-umbra {
  color: #c4b5fd;
}
.credit-bbccris {
  color: #f0cf8a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.activo {
  opacity: 1;
}

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

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.hero-dot.activo {
  background-color: #ffffff;
  transform: scale(1.3);
}

/* ── PÁGINA HERO (páginas internas) ── */
.page-hero {
  background:
    radial-gradient(circle at 78% 15%, rgba(82, 211, 218, 0.2), transparent 28%),
    linear-gradient(145deg, #052432 0%, #0a4656 58%, #06202d 100%);
  padding: 100px 0 48px; /* padding-top alto para no quedar bajo el navbar */
  position: relative;
  overflow: hidden;
}

.page-hero-circulo {
  position: absolute;
  border-radius: 50%;
  background: rgba(77, 205, 215, 0.09);
  border: 1px solid rgba(125, 220, 229, 0.12);
  box-shadow: inset 0 0 36px rgba(125, 220, 229, 0.08);
  animation: flotacion-oceano 9s ease-in-out infinite alternate;
}
.page-hero-circulo.c1 {
  width: 300px;
  height: 300px;
  right: -60px;
  top: -80px;
}
.page-hero-circulo.c2 {
  width: 150px;
  height: 150px;
  right: 120px;
  bottom: -40px;
  background: rgba(142, 207, 238, 0.06);
  animation-delay: -4s;
}

.page-hero-breadcrumb {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}
.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.page-hero-breadcrumb a:hover {
  color: var(--azul-claro);
}

.page-hero-titulo {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero-titulo span {
  color: var(--azul-claro);
}

.page-hero-desc {
  font-size: 14px;
  color: rgba(200, 225, 245, 0.6);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 0;
}

.page-hero-foto {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(142, 207, 238, 0.15);
}
.page-hero-foto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ── IDENTIDAD (Misión Visión Valores) ── */
#identidad {
  background-color: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.mv-card {
  background-color: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 22px;
  height: 100%;
}

.mv-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.mv-card-titulo {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}

.mv-card-texto {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── RAMAS ── */
#ramas {
  background-color: var(--fondo);
  padding: 64px 0;
}

.ramas-desc {
  font-size: 14px;
  color: var(--texto-suave);
  margin-bottom: 32px;
  max-width: 520px;
}

.rama-card {
  background-color: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.rama-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rama-stripe {
  height: 5px;
  width: 100%;
}

.rama-body {
  padding: 20px;
}

.rama-icono {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.rama-titulo {
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}

.rama-desc {
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.65;
  margin-bottom: 14px;
}

.rama-miembros {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.rama-lider {
  font-size: 10px;
  background-color: var(--azul-principal);
  color: #ffffff;
  border-radius: 20px;
  padding: 3px 10px;
}

.rama-tag {
  font-size: 10px;
  background-color: #f2f6fa;
  border: 0.5px solid #dce8f0;
  color: var(--azul-principal);
  border-radius: 20px;
  padding: 3px 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] .rama-tag {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--azul-claro) !important;
}

[data-theme="dark"] .rama-icono {
  background-color: rgba(255, 255, 255, 0.09) !important;
}

.rama-ver {
  font-size: 11px;
  color: var(--azul-principal);
  text-decoration: none;
  font-weight: 500;
}
.rama-ver:hover {
  text-decoration: underline;
}

/* ── FORJAVERSARIOS ── */

/* El body de esta página tiene fondo oscuro */
.pagina-forjaversarios {
  background-color: #05111f;
}

#fv-hero {
  position: relative;
  min-height: 100vh;
  background: #05111f;
  display: flex;
  align-items: center;
  overflow: visible; /* ← permite que el canvas se extienda hacia abajo */
}

/* Canvas de la página 404 — fixed, cubre toda la pantalla */
.pagina-404 #starCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-color: #05111f;
  min-height: 100vh;
}

/* Canvas del Forjaversario Fragmentado — absolute, solo cubre hero + lore */
.pagina-forjaversarios #starCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.fv-hero-contenido {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.fv-hero-year {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(142, 207, 238, 0.6);
  margin-bottom: 14px;
}

.fv-hero-titulo {
  font-size: 52px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 8px;
}

.fv-celeste {
  color: #8ecfee;
}

.fv-hero-sub {
  font-size: 13px;
  color: rgba(200, 225, 245, 0.35);
  font-style: italic;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

/* Bloque mensaje censurado */
.fv-mensaje {
  background: rgba(142, 207, 238, 0.05);
  border: 0.5px solid rgba(142, 207, 238, 0.15);
  border-radius: 10px;
  padding: 18px 22px;
  max-width: 480px;
  margin-bottom: 32px;
}

.fv-mensaje-alerta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8ecfee;
  margin-bottom: 10px;
}

.fv-mensaje-texto {
  font-size: 13px;
  color: rgba(200, 225, 245, 0.6);
  line-height: 2;
  font-family: monospace;
  margin-bottom: 0;
}

/* Texto censurado ████ — queda bloqueado, sin animar */
.censurado {
  background: rgba(142, 207, 238, 0.25);
  color: transparent;
  border-radius: 3px;
  user-select: none;
  padding: 0 3px;
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
  white-space: nowrap;
}
/* Bloques vacíos — error falso de desencriptación */
.censurado.decrypt-error {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 0.5px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  animation: fv-error-pulse 0.4s ease 1;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-block;
  max-width: 100%;
}
@keyframes fv-error-pulse {
  0% {
    box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    filter: brightness(1);
  }
  30% {
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
    filter: brightness(1.25);
  }
  100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    filter: brightness(1);
  }
}
.censurado.decrypt-trying {
  color: rgba(252, 165, 165, 0.9);
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

/* Texto en claro — es el que se desencripta poco a poco en bloque */
[data-plain] {
  transition: text-shadow 0.3s ease;
}
[data-plain].decrypting {
  text-shadow: 0 0 6px rgba(142, 207, 238, 0.45);
}
[data-plain].revealed {
  text-shadow: none;
}
/* bloque terminal — reserva altura para que el error no desplace el layout */
#fv-mensaje-bloque {
  position: relative;
  contain: layout style;
}
.fv-mensaje {
  min-height: 148px;
}
.fv-mensaje-texto {
  overflow-wrap: anywhere;
}
.fv-cursor {
  display: inline-block;
  margin-left: 2px;
  color: #8ecfee;
  animation: fv-blink 0.9s steps(2, jump-none) 4;
  font-weight: 700;
}
@keyframes fv-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.fv-alerta-punto {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8ecfee;
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 8px rgba(142, 207, 238, 0.7);
  animation: fv-pulse 1.4s ease-in-out 2;
}
@keyframes fv-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}
/* respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .fv-cursor,
  .fv-alerta-punto {
    animation: none;
  }
  .censurado {
    transition: none;
  }
}
[data-decrypt-block].decrypt-done .fv-cursor,
[data-decrypt-block].decrypt-done .fv-alerta-punto {
  opacity: 0;
  animation: none;
}
[data-decrypt-block].decrypt-done .fv-alerta-punto {
  opacity: 1;
  box-shadow: none;
}

.fv-grito {
  color: rgba(220, 240, 255, 0.9);
}

/* Botones del hero */
.fv-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-fv-principal {
  font-size: 13px;
  padding: 10px 22px;
  background-color: #2d6fa3;
  color: #ffffff;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-fv-principal:hover {
  background-color: #245a87;
  color: #ffffff;
}

.btn-fv-ghost {
  font-size: 13px;
  padding: 10px 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-fv-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

@media (min-width: 992px) {
  .fv-hero-contenido :is(.col-lg-7, .col-lg-5) {
    width: 50%;
  }
}
@media (max-width: 575.98px) {
  .fv-hero-titulo {
    font-size: clamp(40px, 13vw, 52px);
  }
}

/* Foto derecha del hero */
.fv-hero-foto {
  max-width: 560px;
  margin-inline: auto;
}

.fv-hero-foto img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── EDICIONES ANTERIORES ── */
#fv-ediciones {
  background-color: var(--fondo);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.fv-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.fv-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fv-card-foto {
  height: 140px;
  background-color: #c8dce8;
  overflow: hidden;
}

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

.fv-card:hover .fv-card-foto img {
  transform: scale(1.04);
}

.fv-card-body {
  padding: 14px;
}

.fv-card-year {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--azul-principal);
  margin-bottom: 4px;
}

.fv-card-titulo {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}

.fv-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fv-tag {
  font-size: 10px;
  background: #f2f6fa;
  border: 0.5px solid #dce8f0;
  color: var(--azul-principal);
  border-radius: 20px;
  padding: 2px 9px;
}

.fv-tag.gold {
  background: #faf0d8;
  border-color: #e0c080;
  color: #9a6a10;
}

/* ── QUÉ ES FORJAVERSARIO ── */

.qef-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--azul-claro);
  border: 0.5px solid rgba(142, 207, 238, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  background: rgba(142, 207, 238, 0.06);
  margin-bottom: 14px;
}

.qef-fundadores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.qef-fundadores-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.qef-ftag {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 4px 12px;
  color: rgba(255, 255, 255, 0.5);
}

.qef-ftag strong {
  color: rgba(255, 255, 255, 0.85);
}

/* STATS */
#qef-stats {
  background-color: var(--blanco);
  border-bottom: 1px solid var(--borde);
}

.qef-stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--borde);
}

.qef-stat:last-child {
  border-right: none;
}

.qef-stat-n {
  font-size: 24px;
  font-weight: 600;
  color: var(--azul-principal);
}

.qef-stat-l {
  font-size: 11px;
  color: var(--texto-suave);
  margin-top: 3px;
}

/* VIDEO */
#qef-video {
  background-color: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.qef-video-desc {
  font-size: 14px;
  color: var(--texto-suave);
  margin-bottom: 24px;
  max-width: 500px;
  line-height: 1.65;
}

.qef-video-wrapper {
  background: #0d1f35;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(142, 207, 238, 0.15);
  max-width: 800px; /* Limita el ancho para que no sea demasiado grande */
  margin: 0 auto;
}

.qef-video-topbar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0.5px solid rgba(142, 207, 238, 0.1);
}

.qef-vdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azul-claro);
}

.qef-vlabel {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--azul-claro);
}

/* Truco para que el iframe sea responsive manteniendo proporción 16:9 */
.qef-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 — 9 ÷ 16 = 0.5625 */
  height: 0;
  overflow: hidden;
}

.qef-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.qef-video-caption {
  font-size: 11px;
  color: rgba(200, 225, 245, 0.35);
  padding: 10px 18px 14px;
  font-style: italic;
}

/* LÍNEA DE TIEMPO */
#qef-timeline {
  background-color: var(--fondo);
  padding: 64px 0;
}

.tl-contenedor {
  position: relative;
  padding-left: 58px; /* Espacio para el círculo del año */
}

/* Línea vertical */
.tl-contenedor::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(
    to bottom,
    var(--azul-principal),
    var(--borde) 95%
  );
}

.tl-fila {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.tl-lado-izq {
  position: absolute;
  left: -58px;
  top: 0;
  flex-shrink: 0;
}

.tl-lado-der {
  flex: 1;
  min-width: 0; /* ← evita que el contenido desborde */
  width: 100%; /* ← ocupa todo el ancho disponible */
}

/* Círculo con el año */
.tl-anio {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--azul-principal);
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--azul-principal);
  z-index: 1;
  position: relative;
}

.tl-anio.filled {
  background: var(--azul-principal);
  color: #ffffff;
}

/* Card de cada edición */
.tl-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%; /* ← asegura que ocupe todo el ancho del contenedor */
  transition: box-shadow 0.2s ease;
}

.tl-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.tl-card-foto {
  height: 200px;
  background: #c8dce8;
  overflow: hidden;
}

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

.tl-card:hover .tl-card-foto img {
  transform: scale(1.03);
}

.tl-card-cuerpo {
  padding: 20px 22px;
}

.tl-edicion {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--azul-principal);
  margin-bottom: 6px;
}

.tl-titulo {
  font-size: 17px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 10px;
}

.tl-desc {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 14px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-tag {
  font-size: 10px;
  background: #f2f6fa;
  border: 0.5px solid #dce8f0;
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--azul-principal);
}

.tl-tag.gold {
  background: #faf0d8;
  border-color: #e0c080;
  color: #9a6a10;
}

/* ── REDES SOCIALES ── */
#redes-principales {
  background: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

/* Cards grandes destacadas */
.red-destacada {
  border: 1px solid var(--borde);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

/* DISCORD */
.discord-card {
  display: flex;
  background: var(--blanco);
  align-items: stretch; /* ← hace que ambas columnas tengan la misma altura */
}

.discord-izq {
  background: linear-gradient(135deg, #5865f2, #404eed);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 160px;
  flex-shrink: 0;
  align-self: stretch; /* ← se estira hasta la altura del iframe */
}

.discord-logo {
  font-size: 30px;
  margin-bottom: 4px;
}
.discord-nombre {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.discord-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.discord-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55c;
  flex-shrink: 0;
}

.discord-der {
  flex: 1;
  padding: 0; /* ← sin padding para que el iframe ocupe todo */
  overflow: hidden;
  min-width: 0;
}

.discord-der iframe {
  display: block;
  border-radius: 0 12px 12px 0;
  height: 100% !important; /* ← ocupa toda la altura de la card */
  min-height: 280px; /* ← altura mínima por si acaso */
}

@media (max-width: 575.98px) {
  .discord-card {
    flex-direction: column;
  }

  .discord-izq {
    min-width: 0;
    width: 100%;
    padding: 20px;
  }

  .discord-der iframe {
    width: 100%;
    min-height: 320px;
    border-radius: 0 0 12px 12px;
  }
}
.discord-canales-titulo {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 10px;
}

.discord-canales {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.discord-canal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--texto-suave);
  padding: 6px 10px;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--fondo);
}

.dc-hash {
  color: var(--texto-suave);
  font-size: 14px;
}

.discord-btn {
  display: inline-block;
  font-size: 12px;
  padding: 7px 18px;
  background: #5865f2;
  color: #fff;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.discord-btn:hover {
  background: #4752c4;
  color: #fff;
}

/* YOUTUBE */
.youtube-card {
  display: flex;
  flex-direction: column;
  background: var(--blanco);
}

.youtube-top {
  background: #ff0000;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.youtube-logo {
  font-size: 24px;
  color: #fff;
}
.youtube-nombre {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.youtube-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.youtube-preview {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 160px;
  background: #000;
  cursor: pointer;
}

.youtube-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.youtube-preview:hover img {
  opacity: 0.65;
}

.youtube-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.youtube-preview:hover .youtube-play-btn {
  transform: scale(1.1);
}

.youtube-footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--borde);
}

.youtube-caption {
  font-size: 11px;
  color: var(--texto-suave);
}

.youtube-btn {
  font-size: 11px;
  padding: 5px 14px;
  background: #ff0000;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.youtube-btn:hover {
  background: #cc0000;
  color: #fff;
}

/* Cards pequeñas */
.red-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.red-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.red-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--borde);
}

.red-icono {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.instagram-icono {
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.red-nombre {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
}
.red-handle {
  font-size: 10px;
  color: var(--texto-suave);
}

.red-card-preview {
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid var(--borde);
  font-size: 11px;
  color: #aaa;
}

.red-card-footer {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.red-btn {
  font-size: 11px;
  padding: 5px 14px;
  border: 1px solid var(--azul-principal);
  color: var(--azul-principal);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.red-btn:hover {
  background: var(--azul-principal);
  color: #fff;
}

/* EMBEDS */
#redes-embed {
  background: var(--fondo);
  padding: 64px 0;
}

.embed-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.embed-tab {
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--borde);
  background: var(--blanco);
  color: var(--texto-suave);
  cursor: pointer;
  transition: all 0.2s;
}

.embed-tab.active {
  background: var(--azul-principal);
  color: #fff;
  border-color: var(--azul-principal);
}

.embed-panel {
  display: none;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  overflow: hidden;
}

.embed-panel.activo {
  display: block;
}

.embed-topbar {
  background: #1a2e40;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.embed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--azul-claro);
}

.embed-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--azul-claro);
}

.embed-contenido {
  padding: 20px;
  min-height: 200px;
}

.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  color: var(--texto-suave);
  font-size: 13px;
}

/* ── COLABORACIONES ── */

.colab-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(142, 207, 238, 0.08);
  border: 0.5px solid rgba(142, 207, 238, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: #8ecfee;
  margin-top: 16px;
}

.colab-count strong {
  color: #ffffff;
}

/* DESTACADOS */
#colab-destacados {
  background: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.dest-card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.dest-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.dest-logo {
  height: 120px;
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dest-logo img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  display: block;
}

.dest-body {
  padding: 18px;
}

.dest-tag {
  font-size: 10px;
  background: #f2f6fa;
  border: 0.5px solid #dce8f0;
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--azul-principal);
  display: inline-block;
  margin-bottom: 8px;
}

.dest-tag.grande {
  background: #faf0d8;
  border-color: #e0c080;
  color: #9a6a10;
}

.dest-nombre {
  font-size: 16px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}

.dest-desc {
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 14px;
}

.dest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dest-link {
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--azul-principal);
  color: var(--azul-principal);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dest-link:hover {
  background: var(--azul-principal);
  color: #ffffff;
}

/* TODOS LOS SOCIOS */
#colab-socios {
  background: var(--fondo);
  padding: 64px 0;
}

.socio-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.socio-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.socio-logo {
  height: 90px;
  background: var(--fondo);
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.socio-logo img {
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
  display: block;
}

.socio-body {
  padding: 14px;
}

.socio-nombre {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 6px;
}

.socio-desc {
  font-size: 11px;
  color: var(--texto-suave);
  line-height: 1.6;
  margin-bottom: 10px;
}

.socio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.socio-link {
  font-size: 10px;
  padding: 3px 10px;
  border: 1px solid var(--azul-principal);
  color: var(--azul-principal);
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.socio-link:hover {
  background: var(--azul-principal);
  color: #ffffff;
}

/* ── DONATIVOS ── */

/* Hero centrado */
.don-hero {
  text-align: center;
}

.don-hero .page-hero-breadcrumb {
  display: flex;
  justify-content: center;
}

.don-hero-heart {
  font-size: 48px;
  margin-bottom: 12px;
  color: #8ecfee;
  line-height: 1;
}

/* VALORES */
#don-valores {
  background: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.don-valor-card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.don-valor-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.don-valor-icono {
  font-size: 32px;
  margin-bottom: 12px;
}

.don-valor-titulo {
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}

.don-valor-texto {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 0;
}

/* COMPROMISOS */
#don-compromisos {
  background: var(--fondo);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.don-comp-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.don-comp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 14px 18px;
}

.don-comp-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--azul-principal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.don-comp-texto {
  font-size: 13px;
  color: var(--texto);
  line-height: 1.6;
  margin-bottom: 0;
}

/* MÉTODOS */
#don-metodos {
  background: var(--blanco);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.don-card {
  border: 1px solid var(--borde);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.don-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.don-card-header {
  display: block;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  position: relative;
  transition: filter 0.2s ease;
}

.don-card-header:hover {
  filter: brightness(1.08);
}

.don-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.don-card-header:hover .don-arrow,
.don-card-header:focus-visible .don-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.kofi-header {
  background: #ff5e5b;
}
.paypal-header {
  background: #003087;
}

.don-card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.don-card-logo svg {
  display: block;
}

.don-card-nombre {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.don-card-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

/* QR */
.don-card-qr {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--borde);
  background: var(--fondo);
}

.don-card-qr img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
}

.don-card-body {
  padding: 20px;
}

.don-card-desc {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.65;
  margin-bottom: 0;
  text-align: center;
}

.don-btn {
  display: block;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.don-btn:hover {
  opacity: 0.88;
}

.kofi-btn {
  background: #ff5e5b;
  color: #ffffff;
}

.kofi-btn:hover {
  color: #ffffff;
}

.paypal-btn {
  background: #003087;
  color: #ffffff;
}

.paypal-btn:hover {
  color: #ffffff;
}

/* CIERRE */
#don-cierre {
  background: #1a2e40;
  padding: 40px 0;
}

.don-cierre-texto {
  font-size: 14px;
  color: rgba(200, 225, 245, 0.5);
  line-height: 1.8;
  margin-bottom: 0;
}

.don-cierre-texto strong {
  color: #8ecfee;
}

/* ── LORE FORJAVERSARIO FRAGMENTADO ── */
#fv-lore {
  background: transparent;
  padding: 64px 0;
  border-top: 0.5px solid rgba(142, 207, 238, 0.1);
  border-bottom: 0.5px solid rgba(142, 207, 238, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1; /* ← queda encima del canvas */
}

/* Líneas de escaneo sutiles de fondo */
#fv-lore::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.04) 4px,
    rgba(0, 0, 0, 0.04) 5px /* ← más sutil */
  );
  z-index: 0;
}

#fv-lore .container {
  position: relative;
  z-index: 1;
}

/* Encabezado */
.lore-header {
  text-align: center;
  margin-bottom: 40px;
}

.lore-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(142, 207, 238, 0.5);
  margin-bottom: 10px;
}

.lore-titulo {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.lore-subtitulo {
  font-size: 12px;
  color: rgba(200, 225, 245, 0.3);
  font-style: italic;
  letter-spacing: 0.06em;
}

/* Bloque historia principal */
.lore-archivo {
  background: rgba(142, 207, 238, 0.03);
  border: 0.5px solid rgba(142, 207, 238, 0.15);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  position: relative;
}

.lore-archivo-tag {
  position: absolute;
  top: -11px;
  left: 24px;
  font-size: 9px;
  letter-spacing: 0.12em;
  background: #05111f;
  color: #8ecfee;
  border: 0.5px solid rgba(142, 207, 238, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
}

.lore-archivo-texto {
  font-size: 13px;
  color: rgba(200, 225, 245, 0.65);
  line-height: 1.9;
  font-family: monospace;
  margin-bottom: 0;
}

.lore-highlight {
  color: #8ecfee;
  font-weight: 600;
}

/* Galería */
.lore-galeria {
  margin-bottom: 32px;
}

.lore-img {
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(142, 207, 238, 0.12);
  background: rgba(142, 207, 238, 0.03);
  height: 100%;
}

.lore-img-inner {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 45, 0.5);
}

.lore-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
  filter: saturate(0.8); /* Tono ligeramente desaturado — da look de archivo */
}

.lore-img:hover .lore-img-inner img {
  opacity: 1;
  transform: scale(1.03);
  filter: saturate(1);
}

.lore-img-pie {
  padding: 6px 12px;
  font-size: 9px;
  color: rgba(142, 207, 238, 0.3);
  border-top: 0.5px solid rgba(142, 207, 238, 0.08);
  font-family: monospace;
  letter-spacing: 0.04em;
}

/* Capítulos */
.lore-capitulos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.lore-cap {
  display: flex;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid rgba(142, 207, 238, 0.1);
  border-radius: 10px;
  padding: 18px 20px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.lore-cap:hover {
  border-color: rgba(142, 207, 238, 0.25);
  background: rgba(142, 207, 238, 0.03);
}

.lore-cap-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(142, 207, 238, 0.35);
  flex-shrink: 0;
  width: 28px;
  padding-top: 2px;
  font-family: monospace;
}

.lore-cap-titulo {
  font-size: 14px;
  font-weight: 600;
  color: #c8e4f5;
  margin-bottom: 6px;
}

.lore-cap-texto {
  font-size: 12px;
  color: rgba(200, 225, 245, 0.45);
  line-height: 1.75;
  margin-bottom: 0;
}

/* CTA */
.lore-cta {
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 0.5px solid rgba(142, 207, 238, 0.1);
}

.lore-cta-texto {
  font-size: 13px;
  color: rgba(200, 225, 245, 0.35);
  margin-bottom: 16px;
  font-style: italic;
}

.tl-card-link {
  text-decoration: none;
  display: block;
}

.tl-card-link:hover .tl-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.activo {
  display: flex;
  animation: lbIn 0.28s ease both;
}
.lightbox.closing {
  animation: lbOut 0.22s ease both;
}
@keyframes lbIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lbOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox.activo,
  .lightbox.closing {
    animation: none;
  }
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 31, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox-contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px 16px;
}

.lightbox-img {
  grid-column: 2;
  grid-row: 1;
  place-self: center;
  max-width: 100%;
  max-height: calc(100dvh - 84px);
  object-fit: contain;
  border-radius: 8px;
  border: 0.5px solid rgba(142, 207, 238, 0.15);
  display: block;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.zoomed {
  cursor: grab;
  transform: scale(1.6);
  max-height: 90vh;
  touch-action: none;
}
.lightbox-img.zoomed.dragging {
  cursor: grabbing;
  transition: none !important;
}
@media (max-width: 640px) {
  .lightbox-img.zoomed {
    transform: scale(1.25);
  }
}

.lightbox-pie {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  font-size: 13px;
  color: rgba(200, 225, 245, 0.5);
  text-align: center;
  margin-bottom: 0;
}

.lightbox-cerrar {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  background: rgba(5, 17, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-cerrar:hover {
  color: #ffffff;
}

.lightbox-anterior,
.lightbox-siguiente {
  position: static;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border-radius: 50%;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.lightbox-flecha-icono {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-anterior {
  grid-column: 1;
}

.lightbox-siguiente {
  grid-column: 3;
}

@media (max-width: 991.98px) {
  .lightbox {
    padding: 16px 12px;
  }

  .lightbox-contenido {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px 12px;
  }

  .lightbox-img {
    grid-column: 1 / -1;
    max-height: calc(100dvh - 92px);
  }

  .lightbox-anterior,
  .lightbox-siguiente {
    grid-row: 2;
  }

  .lightbox-cerrar {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }
}

.lightbox-anterior:hover,
.lightbox-siguiente:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Cursor pointer en fotos de galería */
.galeria-foto {
  cursor: pointer;
}

/* ── BOTÓN IDIOMA ── */
.btn-idioma {
  font-size: 12px;
  padding: 6px 14px;
  background: rgba(3, 39, 53, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  color-scheme: dark;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-idioma option {
  background: #032735;
  color: #ffffff;
}

.btn-idioma:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* ── PÁGINAS DE EQUIPO ── */
.equipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: rgba(142, 207, 238, 0.08);
  border: 0.5px solid rgba(142, 207, 238, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
  color: #8ecfee;
  margin-bottom: 14px;
}

.equipo-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ecfee;
}

.ph-nota {
  font-size: 12px;
  color: rgba(200, 225, 245, 0.35);
  font-style: italic;
  border-left: 2px solid rgba(142, 207, 238, 0.3);
  padding-left: 12px;
  margin-top: 16px;
  max-width: 480px;
}

/* Foto del equipo */
.equipo-foto-wrap {
  height: 260px;
  overflow: hidden;
  position: relative;
  background: #c8dce8;
}

.equipo-foto-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equipo-foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 25, 40, 0.5) 0%,
    transparent 60%
  );
}

/* Miembros */
#equipo-miembros {
  background: var(--fondo);
  padding: 64px 0;
  border-bottom: 1px solid var(--borde);
}

.miembro-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 20px 14px;
  text-align: center;
  height: 100%;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.miembro-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.miembro-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px dashed var(--borde);
  background: var(--fondo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--azul-principal);
}

.miembro-foto {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 2px solid var(--borde);
}

.miembro-nombre {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 3px;
}

.miembro-rol {
  font-size: 10px;
  color: var(--texto-suave);
  margin-bottom: 12px;
}

.miembro-btn {
  font-size: 10px;
  padding: 4px 12px;
  border: 1px solid var(--azul-principal);
  color: var(--azul-principal);
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.miembro-btn:hover {
  background: var(--azul-principal);
  color: #ffffff;
}

/* Otros equipos */
#otros-equipos {
  background: var(--blanco);
  padding: 48px 0;
}

.otro-equipo-card {
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  height: 100%;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.otro-equipo-card:hover {
  background: #f2f6fa;
  border-color: var(--azul-principal);
}

.otro-equipo-stripe {
  height: 3px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.otro-equipo-nombre {
  font-size: 11px;
  font-weight: 600;
  color: var(--texto);
}

/* ── GALERÍA ── */
#galeria-tabs-section {
  background: var(--fondo);
  padding: 28px 0 0;
  display: flex;
  justify-content: center;
}

.galeria-tabs-wrap {
  display: inline-flex;
  gap: 6px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 6px;
}

.galeria-tab {
  font-size: 12px;
  padding: 8px 18px;
  color: var(--texto-suave);
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.galeria-tab:hover {
  color: var(--azul-principal);
  background: #f2f6fa;
}

[data-theme="dark"] .galeria-tab:hover {
  color: var(--azul-claro);
  background: rgba(255, 255, 255, 0.08);
}

.galeria-tab.active {
  background: var(--azul-principal);
  color: #ffffff;
  font-weight: 500;
}

/* Contenido galería */
#galeria-contenido {
  background: var(--fondo);
  padding: 24px 0 64px;
}

/* Mosaico */
.galeria-mosaico {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
  margin-bottom: 8px;
}

.galeria-mosaico.filtrada {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-template-rows: 220px;
  grid-auto-rows: 220px;
}
.galeria-mosaico.filtrada .gal-foto-grande {
  grid-row: auto;
}

.gal-foto {
  border-radius: 10px;
  overflow: hidden;
  background: #c8dce8;
  position: relative;
  cursor: pointer;
}

.gal-foto.gal-foto-grande {
  grid-row: span 2;
}

.gal-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.3s ease;
  filter: saturate(0.95);
  will-change: transform;
}

.gal-foto:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

/* Grid uniforme */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.gal-foto-small {
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  background: #c8dce8;
  position: relative;
  cursor: pointer;
}

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

.gal-foto-small:hover img {
  transform: scale(1.04);
}

/* Overlay y zoom */
.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 40, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gal-foto:hover .gal-overlay,
.gal-foto-small:hover .gal-overlay {
  background: rgba(10, 25, 40, 0.3);
}

.gal-zoom {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--azul-accion);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s ease;
}

.gal-foto:hover .gal-zoom,
.gal-foto-small:hover .gal-zoom {
  opacity: 1;
  transform: scale(1);
}
.gal-zoom svg {
  display: block;
}

/* ── smooth filter ── */
.galeria-item {
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.galeria-item:not(.oculto) {
  animation: galeriaIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes galeriaIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .galeria-item,
  .galeria-item:not(.oculto) {
    animation: none;
    transition: none;
  }
}
/* Ocultar fotos filtradas — display none instantáneo, la entrada se anima arriba */
.galeria-item.oculto {
  display: none;
}

/* Pie */
.galeria-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
}

.galeria-count {
  font-size: 12px;
  color: var(--texto-suave);
}
#galeria-vacia {
  text-align: center;
  padding: 64px 20px;
  background: var(--blanco);
  border: 1px dashed var(--borde);
  border-radius: 12px;
  animation: galeriaIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#galeria-vacia[hidden] {
  display: none !important;
}
.galeria-vacia-icono {
  font-size: 28px;
  margin-bottom: 10px;
  opacity: 0.9;
}
.galeria-vacia-titulo {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  margin: 0 0 6px;
}
.galeria-vacia-texto {
  font-size: 12px;
  color: var(--texto-suave);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 575.98px) {
  .galeria-tabs-wrap {
    width: calc(100% - 24px);
    flex-wrap: wrap;
    justify-content: center;
  }

  .galeria-tab {
    padding-inline: 12px;
  }

  .galeria-mosaico {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 220px repeat(2, 140px);
  }

  .galeria-mosaico.filtrada {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-template-rows: 140px;
    grid-auto-rows: 140px;
  }
  .galeria-mosaico.filtrada .gal-foto-grande {
    grid-column: auto;
  }

  .gal-foto.gal-foto-grande {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

  .gal-foto-small {
    height: 140px;
  }

  .galeria-pie {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* ── PÁGINA 404 ── */
#error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 100px 0 64px;
}

.error-contenido {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;

  /* ← El cuadro */
  background: rgba(10, 25, 45, 0.75);
  border: 0.5px solid rgba(142, 207, 238, 0.15);
  border-radius: 16px;
  padding: 48px 40px;
  backdrop-filter: blur(12px); /* ← desenfoca las estrellas detrás */
  -webkit-backdrop-filter: blur(12px);
}

.error-codigo {
  font-size: 120px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(142, 207, 238, 0.3);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -4px;
}

.error-linea {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8ecfee, transparent);
  margin: 0 auto 24px;
}

.error-titulo {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 14px;
  color: rgba(200, 225, 245, 0.55);
  line-height: 1.75;
  margin-bottom: 32px;
}

.error-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-links-titulo {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(142, 207, 238, 0.4);
  margin-bottom: 14px;
}

.error-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.error-link {
  font-size: 12px;
  padding: 6px 16px;
  border: 0.5px solid rgba(142, 207, 238, 0.2);
  color: rgba(200, 225, 245, 0.5);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(142, 207, 238, 0.04);
}

.error-link:hover {
  border-color: rgba(142, 207, 238, 0.5);
  color: #8ecfee;
  background: rgba(142, 207, 238, 0.08);
}

.pagina-404 #footer-container {
  position: relative;
  z-index: 2;
}

.pagina-404 #footer {
  position: relative;
  z-index: 2;
}

.pagina-404 #error-404 {
  position: relative;
  z-index: 2;
}

/* ── PERFIL ── */
#perfil-seccion {
  background: var(--fondo);
  padding: 64px 0;
  min-height: 60vh;
}

.perfil-estado {
  display: flex;
  justify-content: center;
}

/* Login box */
.perfil-login-box {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.perfil-login-icono {
  font-size: 48px;
  margin-bottom: 16px;
}

.perfil-login-titulo {
  font-size: 22px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 10px;
}

.perfil-login-desc {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 12px;
}

.perfil-login-aviso {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--texto-suave);
}

.perfil-login-botones {
  display: grid;
  gap: 10px;
}

.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 14px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.btn-discord {
  background: #5865f2;
  color: #ffffff;
}

.btn-discord:hover {
  background: #4752c4;
}

.btn-google {
  background: #ffffff;
  border-color: #dadce0;
  color: #3c4043;
}

.btn-google:hover {
  background: #f8f9fa;
}

.btn-google-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Perfil comunitario */
.perfil-card {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  color: #d7e3ec;
  background: #152331;
  border: 1px solid rgba(142, 207, 238, 0.2);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(8, 18, 28, 0.2);
}

.perfil-cover {
  height: 150px;
  background:
    linear-gradient(105deg, rgba(16, 37, 54, 0.92), rgba(45, 111, 163, 0.55)),
    url("../img/logo.png") right 48px center / 120px no-repeat;
}

.perfil-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: -58px;
  padding: 0 32px 28px;
}

.perfil-avatar-img {
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  object-fit: cover;
  border: 4px solid #152331;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #66c0f4;
}

.perfil-header-info {
  flex: 1;
  min-width: 0;
}

.perfil-conexion {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #8fca95;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.perfil-conexion span {
  width: 8px;
  height: 8px;
  background: #57cb64;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(87, 203, 100, 0.8);
}

.perfil-nombre {
  overflow: hidden;
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perfil-rol-badge {
  display: inline-flex;
  padding: 4px 12px;
  color: #8ecfee;
  background: rgba(102, 192, 244, 0.12);
  border: 1px solid rgba(102, 192, 244, 0.3);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-logout {
  flex-shrink: 0;
  padding: 8px 14px;
  color: #adbac5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.perfil-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  padding: 24px 32px 32px;
  background: linear-gradient(180deg, #172a3a, #111d28);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.perfil-main {
  display: grid;
  gap: 18px;
}

.perfil-panel {
  padding: 20px;
  background: rgba(8, 18, 28, 0.48);
  border: 1px solid rgba(142, 207, 238, 0.12);
  border-radius: 6px;
}

.perfil-panel-label {
  margin: 0 0 6px;
  color: #66c0f4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.perfil-panel h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 600;
}

.perfil-panel > p:last-child {
  margin: 0;
  color: #aebdca;
  font-size: 13px;
  line-height: 1.7;
}

.perfil-enlaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.perfil-enlace {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #d7e3ec;
  background: rgba(102, 192, 244, 0.08);
  border: 1px solid rgba(102, 192, 244, 0.16);
  border-radius: 5px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.perfil-enlace:hover {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.16);
  transform: translateY(-2px);
}

.perfil-enlace strong {
  font-size: 14px;
}

.perfil-enlace span {
  color: #8fa8ba;
  font-size: 11px;
  line-height: 1.4;
}

.perfil-sidebar .perfil-panel {
  height: 100%;
}

.perfil-info-grid {
  display: grid;
  gap: 10px;
}

.perfil-info-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border-left: 2px solid rgba(102, 192, 244, 0.55);
}

.perfil-info-label {
  margin-bottom: 4px;
  color: #7f96a8;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.perfil-info-valor {
  overflow-wrap: anywhere;
  color: #d7e3ec;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .perfil-cover {
    height: 120px;
    background-size: 90px;
    background-position: right 24px center;
  }

  .perfil-header {
    align-items: center;
    flex-wrap: wrap;
    margin-top: -42px;
    padding: 0 20px 22px;
  }

  .perfil-avatar-img {
    width: 88px;
    height: 88px;
  }

  .btn-logout {
    margin-left: auto;
  }

  .perfil-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .perfil-enlaces {
    grid-template-columns: 1fr;
  }

  .perfil-enlace {
    min-height: 76px;
  }
}

/* Avatar en navbar */
.nav-perfil-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 4px 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.nav-perfil-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-auth-provider {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 8px;
  text-transform: uppercase;
}

/* ── SQUAD FOREVER FEST ── */

/* HERO */
#sff-hero {
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 50%, #1e1035 100%);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.sff-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sff-glow.g1 {
  width: 500px;
  height: 500px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(147, 51, 234, 0.1);
}
.sff-glow.g2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  right: 5%;
  background: rgba(196, 181, 253, 0.05);
}

.sff-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #c4b5fd;
  border: 0.5px solid rgba(196, 181, 253, 0.3);
  border-radius: 20px;
  padding: 5px 16px;
  background: rgba(196, 181, 253, 0.06);
  margin-bottom: 18px;
}

.sff-titulo {
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 8px;
}

.sff-morado {
  color: #c4b5fd;
}

.sff-sub {
  font-size: 13px;
  color: rgba(196, 181, 253, 0.45);
  letter-spacing: 0.08em;
  font-style: italic;
  margin-bottom: 20px;
}

.sff-desc {
  font-size: 14px;
  color: rgba(220, 210, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.sff-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.sff-btn-principal {
  font-size: 13px;
  padding: 11px 24px;
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-block;
}

.sff-btn-principal:hover {
  background: #6d28d9;
  color: #ffffff;
}

.sff-btn-ghost {
  font-size: 13px;
  padding: 11px 24px;
  background: transparent;
  color: rgba(220, 210, 255, 0.75);
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.sff-btn-ghost:hover {
  background: rgba(196, 181, 253, 0.08);
  color: #c4b5fd;
}

/* STATS */
#sff-stats {
  background: #ffffff;
  border-bottom: 1px solid #e8e0f0;
}

.sff-stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid #e8e0f0;
}

.sff-stat:last-child {
  border-right: none;
}

.sff-stat-n {
  font-size: 24px;
  font-weight: 700;
  color: #7c3aed;
}

.sff-stat-l {
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}

/* MENSAJE */
#sff-mensaje {
  background: #ffffff;
  padding: 64px 0;
  border-bottom: 1px solid #e8e0f0;
}

.sff-label {
  color: #7c3aed !important;
}

.sff-msg-card {
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  border: 1px solid #e8e0f0;
}

.sff-msg-morado {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #ddd6fe;
}

.sff-msg-blanco {
  background: #f9f7fc;
}

.sff-msg-icono {
  font-size: 28px;
  margin-bottom: 12px;
}

.sff-msg-titulo {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.sff-msg-texto {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 0;
}

/* CAUSA */
#sff-causa {
  background: #f9f7fc;
  padding: 64px 0;
  border-bottom: 1px solid #e8e0f0;
}

.sff-causa-card {
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.sff-causa-logo {
  width: 140px;
  flex-shrink: 0;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 80px;
}

.sff-causa-logo img {
  width: 100%;
  object-fit: contain;
  display: block;
}

.sff-causa-nombre {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.sff-causa-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 16px;
}

.sff-link-btn {
  font-size: 12px;
  padding: 7px 18px;
  background: #7c3aed;
  color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: background 0.2s ease;
}

.sff-link-btn:hover {
  background: #6d28d9;
  color: #ffffff;
}

/* DONACIÓN */
#sff-donacion {
  background: #ffffff;
  padding: 64px 0;
  border-bottom: 1px solid #e8e0f0;
}

.sff-donacion-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.sff-donacion-texto {
  flex: 1;
}

.sff-donacion-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 12px;
}

.sff-donacion-qr {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sff-donacion-qr img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  padding: 8px;
}

.sff-donacion-qr span {
  font-size: 11px;
  color: #888;
}

/* CÓMO UNIRSE */
#sff-unirse {
  background: #f9f7fc;
  padding: 64px 0;
  border-bottom: 1px solid #e8e0f0;
}

.sff-unirse-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 560px;
}

.sff-unirse-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  height: 100%;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.sff-unirse-card:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.sff-unirse-icono {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f5f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sff-unirse-nombre {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.sff-unirse-sub {
  font-size: 11px;
  color: #888;
}

/* RECURSOS DE SALUD MENTAL */
#sff-recursos {
  background: linear-gradient(135deg, #2d1b4e, #1a0f2e);
  padding: 64px 0;
  text-align: center;
}

.sff-recursos-titulo {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.sff-recursos-desc {
  font-size: 14px;
  color: rgba(196, 181, 253, 0.55);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.sff-recurso-card {
  background: rgba(196, 181, 253, 0.06);
  border: 0.5px solid rgba(196, 181, 253, 0.2);
  border-radius: 12px;
  padding: 24px 16px;
  height: 100%;
}

.sff-recurso-numero {
  font-size: 28px;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 8px;
}

.sff-recurso-nombre {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.sff-recurso-sub {
  font-size: 11px;
  color: rgba(196, 181, 253, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .sff-titulo {
    font-size: 36px;
  }
  .sff-causa-card {
    flex-direction: column;
  }
  .sff-causa-logo {
    width: 100%;
  }
  .sff-donacion-card {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Squad Forever Fest · modo oscuro ── */
[data-theme="dark"] #sff-stats {
  background: #1a1033;
  border-color: rgba(196, 181, 253, 0.15);
}
[data-theme="dark"] .sff-stat {
  border-color: rgba(196, 181, 253, 0.12);
}
[data-theme="dark"] .sff-stat-n {
  color: #c4b5fd;
}
[data-theme="dark"] .sff-stat-l {
  color: rgba(196, 181, 253, 0.55);
}
[data-theme="dark"] #sff-mensaje {
  background: #150f2a;
  border-color: rgba(196, 181, 253, 0.12);
}
[data-theme="dark"] .sff-msg-card {
  background: rgba(196, 181, 253, 0.07);
  border-color: rgba(196, 181, 253, 0.15);
}
[data-theme="dark"] .sff-msg-morado {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(196, 181, 253, 0.2);
}
[data-theme="dark"] .sff-msg-blanco {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 181, 253, 0.12);
}
[data-theme="dark"] .sff-msg-titulo {
  color: #ffffff;
}
[data-theme="dark"] .sff-msg-texto {
  color: rgba(220, 210, 255, 0.65);
}
[data-theme="dark"] .seccion-titulo {
  color: #ffffff;
}
[data-theme="dark"] .seccion-label {
  color: #c4b5fd !important;
}
[data-theme="dark"] #sff-causa {
  background: #1a1033;
  border-color: rgba(196, 181, 253, 0.12);
}
[data-theme="dark"] .sff-causa-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 181, 253, 0.15);
}
[data-theme="dark"] .sff-causa-logo {
  background: rgba(196, 181, 253, 0.08);
  border-color: rgba(196, 181, 253, 0.15);
}
[data-theme="dark"] .sff-causa-nombre {
  color: #ffffff;
}
[data-theme="dark"] .sff-causa-desc {
  color: rgba(220, 210, 255, 0.65);
}
[data-theme="dark"] #sff-donacion {
  background: #150f2a;
  border-color: rgba(196, 181, 253, 0.12);
}
[data-theme="dark"] .sff-donacion-desc {
  color: rgba(220, 210, 255, 0.65);
}
[data-theme="dark"] .sff-donacion-qr img {
  background: rgba(196, 181, 253, 0.08);
  border-color: rgba(196, 181, 253, 0.15);
}
[data-theme="dark"] .sff-donacion-qr span {
  color: rgba(196, 181, 253, 0.5);
}
[data-theme="dark"] #sff-unirse {
  background: #1a1033;
  border-color: rgba(196, 181, 253, 0.12);
}
[data-theme="dark"] .sff-unirse-desc {
  color: rgba(220, 210, 255, 0.65);
}
[data-theme="dark"] .sff-unirse-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 181, 253, 0.15);
}
[data-theme="dark"] .sff-unirse-icono {
  background: rgba(196, 181, 253, 0.1);
}
[data-theme="dark"] .sff-unirse-nombre {
  color: #ffffff;
}
[data-theme="dark"] .sff-unirse-sub {
  color: rgba(196, 181, 253, 0.5);
}

/* ── Redes · modo oscuro · logos ── */
/* brand colors preservadas */
[data-theme="dark"] .red-card-preview[style] {
  background: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .red-icono.instagram-icono {
  filter: brightness(0.92) saturate(0.95);
}

/* Gracias + confeti donativos */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  display: block;
}
.don-gracias {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 25, 40, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9998;
  padding: 20px;
}
.don-gracias[hidden] {
  display: none !important;
}
.don-gracias-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  animation: don-pop 0.35s ease;
  overflow: hidden;
}
@keyframes don-pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.don-gracias-heart {
  width: 64px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3px 10px rgba(255, 94, 91, 0.28));
}
.don-gracias-heart svg {
  width: 64px;
  height: 56px;
  overflow: visible;
  transform: scaleX(1.02);
}
.don-heart-outline-svg {
  opacity: 1;
}
.don-heart-fill-svg {
  transform-origin: bottom;
}
/* el recorte se anima: de abajo hacia arriba */
#don-heart-rect {
  transform: translateY(88px);
  animation: don-heart-fill 2.8s ease forwards;
}
@keyframes don-heart-fill {
  from {
    transform: translateY(88px);
  }
  to {
    transform: translateY(0);
  }
}
.don-gracias-titulo {
  font-size: 18px;
  font-weight: 700;
  color: var(--texto);
  margin: 0 0 8px;
}
.don-gracias-texto {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.6;
  margin: 0 0 8px;
}
/* fade del overlay al autocerrar */
.don-gracias.is-closing {
  animation: don-fade 0.45s ease forwards;
}
@keyframes don-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* botón lateral Visitar mundo — parte integrada de la card */
.btn-mundo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 16px 10px;
  border: none;
  border-radius: 0;
  background: var(--fondo);
  border-left: 1px solid var(--borde);
  color: var(--texto-suave);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  line-height: 1.2;
  text-align: center;
}
.btn-mundo svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.btn-mundo:hover {
  background: var(--azul-principal);
  color: #fff;
}
.btn-mundo:active {
  transform: none;
  filter: brightness(0.97);
}
[data-theme="dark"] .btn-mundo {
  background: #1e344d;
  border-left-color: var(--borde);
  color: var(--azul-claro);
}
[data-theme="dark"] .btn-mundo:hover {
  background: var(--azul-principal);
  color: #fff;
}
.fv-card .card-accion,
.tl-card .card-accion {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.fv-card .btn-mundo {
  font-size: 10px;
}
.tl-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 641px) {
  .tl-card {
    display: grid !important;
    grid-template-columns: 1fr 148px;
    grid-template-rows: auto 1fr;
  }
  .tl-card-foto {
    grid-column: 1 / -1;
  }
  .tl-card-cuerpo {
    grid-column: 1;
  }
  .tl-card .card-accion {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    display: flex;
    border-radius: 0 0 10px 0;
    overflow: hidden;
  }
  .fv-card {
    display: grid !important;
    grid-template-columns: 1fr 132px;
    grid-template-rows: auto 1fr;
  }
  .fv-card-foto {
    grid-column: 1 / -1;
  }
  .fv-card-body {
    grid-column: 1;
  }
  .fv-card .card-accion {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
  }
}
@media (max-width: 640px) {
  .btn-mundo {
    flex-direction: row;
    padding: 10px 14px;
    gap: 8px;
    border-left: none;
    border-top: 1px solid var(--borde);
  }
  .btn-mundo svg {
    width: 16px;
    height: 16px;
  }
}

/* carousel ediciones — columnas + flechas solo si overflow */
.fv-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fv-track {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.fv-track::-webkit-scrollbar {
  display: none;
}
.fv-track .fv-col {
  flex: 0 0 300px;
  max-width: 300px;
  scroll-snap-align: start;
}
@media (min-width: 992px) {
  .fv-track .fv-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
@media (max-width: 991px) {
  .fv-track .fv-col {
    flex: 0 0 320px;
    max-width: 320px;
  }
}
@media (max-width: 576px) {
  .fv-track .fv-col {
    flex: 0 0 85%;
    max-width: 85%;
  }
}
.fv-arrow {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: var(--blanco);
  color: var(--texto);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 1;
}
.fv-arrow:hover {
  background: var(--azul-principal);
  color: #fff;
  border-color: var(--azul-principal);
}
.fv-arrow[hidden] {
  display: none !important;
}
.fv-arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ── PLACEHOLDER IMÁGENES ROTAS ── */
.img-broken {
  background-color: var(--fondo) !important;
  border: 1px dashed var(--borde) !important;
  object-fit: contain !important;
  padding: 12px !important;
}
/* para fondos con overlay, asegura que no quede hueco */
.galeria-foto:has(> .img-broken),
.hero-foto:has(> .img-broken),
.page-hero-foto:has(> .img-broken) {
  background-color: var(--fondo);
  display: grid;
  place-items: center;
  min-height: 160px;
}

[data-theme="dark"]
  :is(
    .rama-lider,
    .tl-anio.filled,
    .embed-tab.active,
    .don-comp-check,
    .galeria-tab.active,
    .red-btn:hover,
    .dest-link:hover,
    .socio-link:hover,
    .miembro-btn:hover,
    .btn-mundo:hover,
    .fv-arrow:hover
  ) {
  background: var(--azul-accion);
  border-color: var(--azul-accion);
  color: #fff;
}

[data-theme="dark"] :is(.fv-tag.gold, .tl-tag.gold, .dest-tag.grande) {
  background: rgba(224, 192, 128, 0.12);
  border-color: rgba(224, 192, 128, 0.35);
  color: #f0cf8a;
}

:is(
  .evento-card,
  .equipo-card,
  .rama-card,
  .fv-card,
  .tl-card,
  .red-card,
  .dest-card,
  .socio-card,
  .don-valor-card,
  .don-card,
  .miembro-card
):hover {
  box-shadow: var(--sombra);
}

[data-theme="dark"] :is(.fv-tag, .tl-tag, .dest-tag, .otro-equipo-card:hover) {
  background: var(--fondo);
  border-color: var(--borde);
  color: var(--azul-principal);
}

:where([class$="-card"], [class*="-card "]) {
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

/* ── CONSENTIMIENTO DE COOKIES ── */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1100;
  width: min(960px, calc(100% - 32px));
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--texto);
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  box-shadow: var(--sombra);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  transform: translateX(-50%);
}

.cookie-banner__texto strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner__texto p {
  max-width: 680px;
  margin: 0;
  color: var(--texto-suave);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__acciones {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cookie-banner button {
  padding: 9px 15px;
  color: var(--texto);
  background: transparent;
  border: 1px solid var(--borde);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner button:hover {
  border-color: var(--azul-principal);
}

.cookie-banner button:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
}

.cookie-banner .cookie-banner__aceptar {
  color: #fff;
  background: var(--azul-accion);
  border-color: var(--azul-accion);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 8px;
    width: calc(100% - 16px);
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .cookie-banner__acciones {
    justify-content: flex-end;
  }

  .cookie-banner button {
    flex: 1;
  }
}
