:root {
  /* Brand */
  --green-1: #56b83ed8;
  /* principal */
  --green-2: #199A11;
  /* oscuro */
  --green-3: #32da7ee7;
  /* oscuro */
  --aqua: #00E3D0;
  /* acento */
  --yellow: #FFDB58;
  /* highlight */

  /* Neutrales */
  --bg: #1F2731;
  /* fondo */
  --card: #16202A;
  /* tarjetas */
  --card-2: #121A22;
  /* variantes */

  /* UI */
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  --radius: 18px;

  /* Fonts */
  --font-title: 'Rajdhani', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --green-brand: #8BFF3E;
  --green-soft: #B9FF8A;
  --bg-0: #0B1410;
  --bg-1: #0E1A14;
  --line: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --muted: #C9D0CC;
  --green-title: #9fe870;
  /* verde apagado, coherente con Inscribirme */
}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(0, 227, 208, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg), #0f141b);
}

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 160px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(139, 255, 62, 0.28);
  overflow: hidden;
  background: rgba(11, 20, 16, 0.92);
  /* fallback */
}

/* Fondo (solo imagen) con filtros */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('./assets/header_fondo.gif');
  background-size: cover;
  background-position: 55% 25%;
  /* PROBAMOS encuadre más “cara/pelota” */
  transform: scale(1.06);
  /* evita bordes al aplicar filtros */
  filter: contrast(1.25) brightness(1.12) saturate(1.15);
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
}

/* Overlay oscuro para legibilidad, pero más suave que antes */
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(-90deg,
      rgba(11, 20, 16, 0.92) 0%,
      rgba(11, 20, 16, 0.82) 40%,
      rgba(11, 20, 16, 0.55) 30%,
      rgba(11, 20, 16, 0.25) 50%);
  pointer-events: none;
}


.topbar-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
}


.topbar-inner::after {
  content: "";
  grid-column: 3;
  justify-self: end;
}



.brand {
  grid-column: 1;
  justify-self: start;
}


.brand-logo {
  height: 150px;
  /* MÁS GRANDE */
  width: auto;
  opacity: 100%;
  filter:
    drop-shadow(0 0 12px rgba(139, 255, 62, 0.45)) drop-shadow(0 0 24px rgba(139, 255, 62, 0.25));
}


/* MENU */
.menu {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 10px;
  align-items: center;
}


.tab {
  appearance: none;
  border: 1px solid rgba(57, 213, 18, 0.45);
  background: rgba(31, 39, 49, 0.65);
  color: rgba(245, 245, 220, 0.9);
  padding: 14px 20px;
  /* más alto y más ancho */
  border-radius: 15px;
  /* píldora real */
  line-height: 1;
  /* evita que “aplane” el texto */
  font-family: var(--font-title);
  /* MISMA que títulos */
  font-weight: 800;
  /* un poco más liviana */
  font-size: 16px;
  /* más cercana a h2 */
  letter-spacing: 0.6px;
  /* menos “gritada” */
  text-transform: none;
  /* clave: más natural */
  cursor: pointer;
  transition:
    background .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
  backdrop-filter: blur(6px);
}


.tab:hover {
  background: rgba(57, 213, 18, 0.16);
  box-shadow:
    0 6px 18px rgba(57, 213, 18, 0.35),
    inset 0 0 0 1px rgba(57, 213, 18, 0.35);
  transform: translateY(-1px);
}

.tab.active {
  background: linear-gradient(180deg,
      rgba(57, 213, 18, 0.30),
      rgba(57, 213, 18, 0.18));
  border-color: var(--green-1);
  color: var(--green-1);
  box-shadow:
    0 0 22px rgba(57, 213, 18, 0.45),
    inset 0 0 0 1px rgba(57, 213, 18, 0.45);
}

.tab.cta {
  background: linear-gradient(180deg,
      #FFDB58,
      #f1c933);
  color: #1F2731;
  border-color: #FFDB58;
  box-shadow: 0 8px 24px rgba(255, 219, 88, 0.45);
}


/* LAYOUT */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 44px;
}

.hero {
  border: 1px solid rgba(139, 255, 62, 0.16);
  background:
    radial-gradient(700px 240px at 30% 0%, rgba(139, 255, 62, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-brand);
}

.hero p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 70ch;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--green-title);
}

/* ===== Resaltado sutil: Confirmación de Clase ===== */
#confirmClaseCard {
  box-shadow:
    0 0 0 1px rgba(60, 184, 3, 0.123),
    0 8px 24px rgba(42, 253, 0, 0.096);
  transition: box-shadow 0.25s ease;
}

.item {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  margin-top: 10px;
}

.item .top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.title {
  font-weight: 800;
  font-size: 14px;
}

.sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 227, 208, 0.35);
  color: var(--aqua);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 12px rgba(0, 227, 208, 0.45);
}

.muted {
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.45;
}

/* BUTTONS */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green-1);
  color: #07110A;
  box-shadow: 0 0 16px rgba(57, 213, 18, 0.30);
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid;
}

.btn-ghost-insc {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

#btnLogin {
  color: var(--yellow);
}

/* ===== TITULOS – Racing ===== */
.hero h1,
.card h2,
.title {
  font-family: var(--font-title);
  letter-spacing: .6px;
}

/* ===== URGENCIAS NOVEDADES ===== */
.item.urg-1 {
  border-color: rgba(255, 80, 80, 0.6);
  box-shadow: 10px 10px 18px rgba(255, 80, 80, 0.20);
  box-shadow: 10px 10px 18px rgba(255, 80, 80, 0.25);
}

.item.urg-2 {
  border-color: rgba(255, 219, 88, 0.70);
  box-shadow: 10px 10px 18px rgba(255, 219, 88, 0.18);
  box-shadow: 10px 10px 18px rgba(255, 200, 80, 0.25);
}

.item.urg-3 {
  border-color: rgba(57, 213, 18, 0.35);
}

.sub-extra {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.badge.badge-open {
  border-color: rgba(57, 213, 18, 0.45);
  color: var(--green-1);
}

.badge.badge-closed {
  border-color: rgba(255, 80, 80, 0.55);
  color: rgba(255, 140, 140, 0.95);
}

.badge.badge-open .dot {
  background: var(--green-1);
}

.badge.badge-closed .dot {
  background: rgba(255, 80, 80, 0.95);
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.5);
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: var(--font-body);
}

/* RESPONSIVE */
@media (max-width:900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:600px) {
  .brand-logo {
    height: 46px;
  }
}

/* ===== MODALS (Login + Confirm) ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  /* se muestra con JS */
  place-items: center;
  z-index: 60000;
  padding: 18px;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-card {
  position: relative;
  width: min(520px, 92vw);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(139, 255, 62, 0.28);
  background: #0B1410;
  /* opaco */
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65);
}

.modal-card h2 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--green-brand);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .6px;
}

/* animación suave */
.modal.show .modal-card {
  animation: popIn .18s ease;
}

@keyframes popIn {
  from {
    transform: translateY(6px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* opcional: que el modal se cierre clickeando el fondo */
.modal-close-area {
  position: absolute;
  inset: 0;
}


/* ===== SESSION CHIP ===== */
.session-chip {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 255, 62, 0.35);
  background: rgba(11, 20, 16, 0.55);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.session-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-brand);
  box-shadow: 0 0 12px rgba(139, 255, 62, 0.5);
}

/* ===== HELLO OVERLAY (TRANSICION) ===== */
.hello-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.78);
}

.hello-card {
  width: min(520px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(139, 255, 62, 0.35);
  background: #0B1410;
  /* sólido */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  padding: 22px 18px;
  text-align: center;
}

.hello-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--green-brand);
  letter-spacing: 0.6px;
}

.hello-sub {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* ===== SPLASH LOGO ===== */
.splash-logo {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: #0B1410;
  /* sólido, marca fuerte */
  animation: splashFadeOut 1.6s ease forwards;
  animation-delay: 1.2s;
}

.splash-logo img {
  width: min(420px, 80vw);
  filter:
    drop-shadow(0 0 18px rgba(57, 213, 18, 0.45)) drop-shadow(0 0 42px rgba(57, 213, 18, 0.25));
  animation: splashLogoMove 1.6s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Logo entra desde atrás */
@keyframes splashLogoMove {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  30% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform:
      scale(0.25) translate(-140vw, -110vh);
    /* hacia el logo real */
  }
}

/* Se desvanece el fondo */
@keyframes splashFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ===== SPLASH LOGO (sin desplazamiento) ===== */
.splash-logo {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: #0B1410;
  /* sólido */
}

.splash-logo img {
  width: min(630px, 90vw);
  max-width: 90vw;
  opacity: 0;
  transform: scale(0.85);
  filter:
    drop-shadow(0 0 18px rgba(57, 213, 18, 0.45)) drop-shadow(0 0 42px rgba(57, 213, 18, 0.25));
}

/* Activación */
.splash-logo.run img {
  animation: splashLogoInOut 2.8s cubic-bezier(.4, 0, .2, 1) forwards;
}

.splash-logo.run {
  animation: splashBgFade 2.8s ease forwards;
}

/* Entra desde atrás -> enfoca -> se disuelve */
@keyframes splashLogoInOut {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter:
      drop-shadow(0 0 18px rgba(57, 213, 18, 0.45)) drop-shadow(0 0 42px rgba(57, 213, 18, 0.25));
  }

  25% {
    opacity: 1;
    transform: scale(1.00);
  }

  70% {
    opacity: 1;
    /* se mantiene visible */
    transform: scale(1.00);
  }

  100% {
    opacity: 0;
    transform: scale(1.02);
    filter:
      drop-shadow(0 0 10px rgba(57, 213, 18, 0.20));
  }
}

@keyframes splashBgFade {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* ===== HAMBURGER ===== */
.hamb {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(57, 213, 18, 0.35);
  background: rgba(31, 39, 49, 0.55);
  backdrop-filter: blur(6px);
  cursor: pointer;
  padding: 10px;
}

.hamb span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  opacity: .9;
  border-radius: 2px;
  margin: 6px 0;
}

/* Overlay (fondo) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 14000;
  /* MÁS BAJO que el menú */
  background: rgba(0, 0, 0, 0.60);
  pointer-events: none;
}


/* ===== MOBILE DRAWER ===== */
@media (max-width: 760px) {

  /* Mostramos botón hamburguesa */
  .hamb {
    display: inline-block;
  }

  /* Ajuste header para que entre todo */
  .topbar {
    min-height: 120px;
  }

  .brand-logo {
    height: 92px;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 14000;
    background: rgba(0, 0, 0, 0.60);

    /* clave: ahora sí queremos clickeable */
    pointer-events: auto;

    /* clave visual: dejamos libre el área del drawer a la derecha */
    clip-path: inset(0 min(320px, 86vw) 0 0);
  }

  /* El menú pasa a panel lateral */
  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 86vw);
    z-index: 16000;

    padding: 18px;
    background: #0B1410;
    border-left: 1px solid rgba(57, 213, 18, 0.25);

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;

    pointer-events: auto;

    transform: translateX(110%);
    transition: transform .18s ease;
  }

  /* Tabs dentro del drawer ocupan todo el ancho */
  .menu .tab {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }

  /* Cuando está abierto */
  .menu.open {
    transform: translateX(0);
  }

  /* Chip de sesión: abajo del header, no a la derecha */
  .session-chip {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 10px;
  }
}

.toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0B1410;
  /* opaco */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: start;
  transform: translateY(-8px);
  opacity: 0;
  filter: blur(4px);
  transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.toast .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 3px;
  box-shadow: 0 0 12px rgba(139, 255, 62, 0.45);
}

.toast .title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.toast .msg {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

.toast .close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.toast.success {
  border-color: rgba(139, 255, 62, 0.35);
}

.toast.success .dot {
  background: var(--green-brand);
}

.toast.error {
  border-color: rgba(255, 80, 80, 0.45);
}

.toast.error .dot {
  background: rgba(255, 80, 80, 0.95);
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.45);
}

.toast.info {
  border-color: rgba(255, 219, 88, 0.35);
}

.toast.info .dot {
  background: rgba(255, 219, 88, 0.95);
  box-shadow: 0 0 12px rgba(255, 219, 88, 0.35);
}

@media (max-width: 520px) {
  .toast-host {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .toast {
    max-width: 100%;
    min-width: 0;
  }
}

/* ===== BOTON CANCELAR INSCRIPCION ===== */
.btn-danger {
  background: linear-gradient(180deg,
      #f7bd40,
      #df6f14);
  color: #1a0f0a;
  border: 1px solid rgba(255, 122, 61, 0.75);
  box-shadow:
    0 2px 10px rgba(255, 90, 40, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-danger:hover {
  box-shadow:
    0 2px 10px rgba(255, 90, 40, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* ===== VISTAS (routing simple) ===== */
.view {
  display: block;
}

.view[style*="display:none"] {
  display: none;
}

/* por si queda inline */

.pago-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 120, 0.15);
  margin-bottom: 12px;
  position: relative;
}

/* Línea principal */
.pago-main {
  font-size: 15px;
  /* antes ~13 */
  font-weight: 600;
  color: #b6ff9a;
  /* verde apagado */
  margin-bottom: 4px;
}

/* Fecha + medio */
.pago-sub {
  font-size: 14px;
  color: #d0d0d0;
  margin-bottom: 6px;
}

/* Código */
.pago-codigo {
  font-size: 13px;
  color: #7dd3fc;
  /* azul verdoso, bien legible */
}

.pago-codigo span {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Monto (como badge) */
.pago-monto {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 255, 120, 0.15);
  color: #00ff88;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge.badge-soon {
  border-color: rgba(255, 219, 88, 0.45);
  color: rgba(255, 219, 88, 0.95);
  box-shadow: 5px 5px 15px rgba(255, 219, 88, 0.95);
  ;
}

.badge.badge-soon .dot {
  background: rgba(255, 219, 88, 0.95);
  box-shadow: 0 0 12px rgba(255, 219, 88, 0.45);
}

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
}

/* ===== HERO IMAGE ===== */
.hero-media {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.15);
}

.hero-media img {
  width: 100%;
  height: 220px;
  opacity: 75%;
  display: block;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95) saturate(1.05);
}

/* ===== HEAD de cards (titulo + acciones) ===== */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-head h2 {
  margin: 0;
  /* ya tenés margin en .card h2, esto lo asegura para este layout */
}

.cuota-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  margin: 10px 0;
  background: rgba(0, 0, 0, .18);
}

.cuota-title {
  font-weight: 700;
  letter-spacing: .2px;
}

.cuota-sub {
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid rgba(255, 255, 255, .18);
}

/* Confirmó SI */
.pill-ok,
.pill.si,
.pill-yes {
  background: rgba(46, 204, 113, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.45);
  color: #2ecc71;
}

/* Confirmó NO */
.pill-no,
.pill.no {
  background: rgba(231, 76, 60, 0.18);
  border: 1px solid rgba(231, 76, 60, 0.45);
  color: #e74c3c;
}

.pill-warn {
  background: rgba(255, 196, 0, .12);
}

.btn-yellow {
  background: #f1c40f;
  /* amarillo paleta */
  color: #1e1e1e;
  /* texto oscuro para contraste */
  border: 1px solid #d4ac0d;
}

.btn-yellow:hover {
  background: #f4d03f;
  border-color: #d4ac0d;
}

.btn-yellow:active {
  transform: translateY(1px);
}

/* Eventos realizados: subcards dentro de la card principal */
.realizado-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.realizado-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.realizado-title {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
}

.realizado-date {
  opacity: 0.85;
  font-size: 13px;
  white-space: nowrap;
}

.realizado-subcard {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.realizado-subtitle {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.realizado-text {
  margin: 0;
  line-height: 1.45;
  white-space: normal;
}

.realizado-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.realizado-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.realizado-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

/* Eventos realizados: card principal a ancho completo */
#view-realizados .grid {
  display: block;
}

#view-realizados .card {
  width: 100%;
}

/* Visión Corporativo: card principal a ancho completo */
#view-corporativo .grid {
  display: block;
}

#view-corporativo .card {
  width: 100%;
}

/* Espacio entre títulos en negrita y texto - Visión Corporativo */
#view-corporativo b {
  display: block;
  margin-bottom: 6px;
}

.btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--yellow);
  background: rgba(0, 0, 0, 0.22);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.30);
}

/* Carrusel horizontal */
.carousel-wrap {
  position: relative;
  width: 100%;
}

.carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 38px;
  /* deja espacio para botones */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  width: 240px;
  max-width: 70vw;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Botones izquierda/derecha */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 30px;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.left {
  left: 6px;
}

.carousel-btn.right {
  right: 6px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.48);
}

/* En móvil, si querés, podés ocultar botones:
@media (max-width: 520px) {
  .carousel-btn { display:none; }
  .carousel { padding: 6px 6px; }
}
*/

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70000;
  /* MÁS que el modal (60000) */
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95); /* negro casi total */
}

.lightbox-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(96vw, 1300px);
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.55);
}

.lightbox-close{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 70001; /* arriba de todo */
  padding: 8px 14px;
  border-radius: 999px;
}


/* Slider tipo coverflow (foto principal al centro + previews laterales) */
.slider-wrap {
  position: relative;
  width: 100%;
  user-select: none;
}

.coverflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  /* clave: no scroll visible */
  padding: 6px 42px;
  /* espacio para botones */
  touch-action: pan-y;
  /* permite swipe horizontal sin bloquear scroll vertical */
}

.coverflow-track {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 260ms ease;
  will-change: transform;
}

.coverflow-item {
  flex: 0 0 auto;
  width: 160px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0.65;
  transform: scale(0.92);
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
  cursor: pointer;
}

.coverflow-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coverflow-item.active {
  width: 320px;
  height: 190px;
  opacity: 1;
  transform: scale(1);
  cursor: pointer;
}

.coverflow-item.near {
  opacity: 0.85;
  transform: scale(0.96);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 30px;
  cursor: pointer;
  z-index: 2;
}

.slider-btn.left {
  left: 6px;
}

.slider-btn.right {
  right: 6px;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.48);
}

/* Responsive: en pantallas chicas achicamos el “active” */
@media (max-width: 520px) {
  .coverflow {
    padding: 6px 40px;
  }

  .coverflow-item {
    width: 130px;
    height: 90px;
  }

  .coverflow-item.active {
    width: 270px;
    height: 160px;
  }
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  text-decoration: none;
}

.wa-float:hover {
  background: rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
}

.wa-icon {
  width: 56px;
  height: 56px;
  display: block;
}

/* Para que no tape nada en pantallas chicas */
@media (max-width: 520px) {
  .wa-float {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .wa-icon {
    width: 50px;
    height: 50px;
  }
}

/* Pagos realizados: color por tipo */
.pago-item.tipo-CLASE {
  border-left: 6px solid rgba(46, 204, 113, 0.95);
}

.pago-item.tipo-EVENTO {
  border-left: 6px solid rgba(241, 196, 15, 0.95);
}

.pago-item.tipo-COMPRA {
  border-left: 6px solid rgba(155, 89, 182, 0.95);
}

/* Pendientes: tono anaranjado/amarillento (clases + no clases) */
#cuotasPendientes .cuota-item,
#noClasesPendientes .item {
  border: 1px solid var(--yellow);
  color: var(--yellow)
}

/* (opcional) para que el texto “Pendiente” no pierda contraste */
#cuotasPendientes .cuota-sub,
#noClasesPendientes .sub {
  opacity: 0.9;
}

/* ===== CINTA AUTOMATICA (INICIO) ===== */
.tape {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(135deg,
      rgba(117, 204, 185, 0.85),
      rgba(0, 0, 0, 0.85),
      rgba(95, 95, 97, 0.85));

  /* no interacción */
  pointer-events: none;
  user-select: none;
  touch-action: none;
}

.tape-track {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0px 12px;
  will-change: transform;

  /* velocidad base (se ajusta por JS) */
  animation: tapeMove var(--tapeDur, 20s) linear infinite;
}

.tape-item {
  flex: 0 0 auto;
  height: 150px;
  width: auto;
  overflow: visible;

  /* limpio */
  border: none;
  background: transparent;
  border-radius: 0;
}


.tape-item img {
  height: 150px;
  width: 100%;
  max-width: 260px;
  /* CLAVE: evita que una imagen se vaya al carajo */
  object-fit: contain;
  /* se ve completa */
  object-position: center;
  display: block;

  background: transparent;
  opacity: 1;
  filter: none;
}


@keyframes tapeMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1px * var(--tapeShift, 0)));
  }
}

/* Evita que el contenido interno "empuje" el ancho del grid/card */
.tape,
.tape-track {
  min-width: 0;
  max-width: 100%;
}

/* FIX: la cinta no debe ensanchar la card en pantallas chicas */
.tape-card{
  max-width: 100%;
  overflow: hidden; /* recorta el track gigante */
  min-width: 0;     /* CLAVE: permite que el item del grid se achique */
}

/* CLAVE para Grid/Flex: evita que el contenido fuerce ancho mínimo */
.grid > *{
  min-width: 0;
}


/* ===== ALUMNOS ===== */

.alumnos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 700px) {
  .alumnos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.alumno-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.alumno-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* cuadradas */
  object-fit: contain;
  /* se ven completas */
  object-position: center;
  display: block;
  background: rgba(0, 0, 0, 0.08);
  /* leve fondo para “respirar” */
}

.alumno-card .alumno-name {
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.alumno-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 700px) {
  .alumno-modal-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.alumno-modal-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.preline { white-space: pre-line; }