/* ==========================================================================
   LOS DEL PABELLÓN — CLUB CICLISTA
   Sistema de diseño moderno · Paleta corporativa (#CCA9DD / #8b5aa8 / #3d1a5c)
   ========================================================================== */

:root {
  /* Paleta corporativa */
  --morado: #CCA9DD;
  --morado-bright: #dfc2ee;
  --morado-accent: #8b5aa8;
  --morado-dark: #3d1a5c;
  --morado-deep: #170d24;
  --morado-night: #10081a;
  --morado-light: #f4ebfa;
  --morado-soft: #faf6fe;
  --morado-border: rgba(139, 90, 168, 0.24);

  /* Neutros */
  --negro: #120e18;
  --ink: #221c2e;
  --gris: #5c566b;
  --gris-muted: #8a8499;
  --gris-light: #f6f4fa;
  --borde: #e8e3f0;
  --blanco: #ffffff;

  /* Estados */
  --rojo: #e11d48;
  --verde: #059669;

  /* Tipografía */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Geometría y profundidad */
  --radio: 16px;
  --radio-lg: 24px;
  --radio-pill: 999px;

  --sombra-sm: 0 2px 12px rgba(23, 13, 36, 0.06);
  --sombra: 0 12px 32px rgba(61, 26, 92, 0.1);
  --sombra-lg: 0 24px 60px rgba(23, 13, 36, 0.18);
  --sombra-glow: 0 12px 34px rgba(204, 169, 221, 0.36);

  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blanco);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ── BARRA DE PROGRESO DE LECTURA ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--morado-accent), var(--morado), #ebd5f7);
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── UTILIDADES ── */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-md { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 24px; height: 24px; flex-shrink: 0; }
.w-full { width: 100%; }

/* Animaciones de entrada */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── BOTONES ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--morado-bright) 0%, var(--morado) 55%, #b587cf 100%);
  color: var(--morado-dark);
  padding: 13px 28px;
  border-radius: var(--radio-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 90, 168, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-glow);
  filter: brightness(1.04);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blanco);
  color: var(--morado-dark);
  padding: 12px 26px;
  border-radius: var(--radio-pill);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--morado-border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

.btn-secondary:hover {
  background: var(--morado-light);
  border-color: var(--morado-accent);
  transform: translateY(-2px);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanco);
  padding: 13px 26px;
  border-radius: var(--radio-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(204, 169, 221, 0.35);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

.btn-ghost-light:hover {
  background: rgba(204, 169, 221, 0.18);
  border-color: var(--morado);
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(16, 8, 26, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(204, 169, 221, 0.14);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

nav.scrolled,
body.dashboard-open nav {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(23, 13, 36, 0.08);
  border-bottom-color: var(--borde);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-brand-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 29px;
  letter-spacing: 1.8px;
  color: var(--blanco);
  line-height: 1;
  transition: color 0.3s;
}

.nav-logo span { color: var(--morado); }

nav.scrolled .nav-logo,
body.dashboard-open nav .nav-logo {
  color: var(--negro);
}

nav.scrolled .nav-logo span,
body.dashboard-open nav .nav-logo span {
  color: var(--morado-accent);
}

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

.nav-links > a,
.nav-drop-btn {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

nav.scrolled .nav-links > a,
nav.scrolled .nav-drop-btn,
body.dashboard-open nav .nav-links > a,
body.dashboard-open nav .nav-drop-btn {
  color: var(--gris);
}

.nav-links > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--morado);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

nav.scrolled .nav-links > a::after,
body.dashboard-open nav .nav-links > a::after {
  background: var(--morado-accent);
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-drop:hover .nav-drop-btn,
.nav-drop:focus-within .nav-drop-btn {
  color: var(--blanco);
}

nav.scrolled .nav-links > a:hover,
nav.scrolled .nav-links > a.active,
nav.scrolled .nav-drop:hover .nav-drop-btn,
nav.scrolled .nav-drop:focus-within .nav-drop-btn,
body.dashboard-open nav .nav-links > a:hover,
body.dashboard-open nav .nav-links > a.active {
  color: var(--morado-dark);
}

.nav-links > a:hover::after,
.nav-links > a.active::after {
  transform: scaleX(1);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--morado);
  color: var(--morado-dark);
  padding: 10px 20px;
  border-radius: var(--radio-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.nav-btn:hover {
  background: var(--morado-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 169, 221, 0.35);
}

nav.scrolled .nav-btn,
body.dashboard-open nav .nav-btn {
  background: var(--morado-deep);
  color: var(--blanco);
}

nav.scrolled .nav-btn:hover,
body.dashboard-open nav .nav-btn:hover {
  background: var(--morado-dark);
}

/* Dropdown Pruebas */
.nav-drop { position: relative; }

.nav-drop-btn {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-drop-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.nav-drop:hover .nav-drop-btn svg,
.nav-drop:focus-within .nav-drop-btn svg {
  transform: rotate(180deg);
}

.nav-drop-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  padding-top: 14px;
  z-index: 110;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-drop-menu-inner {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 8px;
  min-width: 245px;
  box-shadow: var(--sombra-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.18s;
}

.nav-drop-item:hover { background: var(--morado-light); }

.nav-drop-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--morado-soft);
  color: var(--morado-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-drop-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.2;
}

.nav-drop-sub {
  font-size: 11px;
  color: var(--gris);
  margin-top: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s, background 0.2s;
}

nav.scrolled .hamburger,
body.dashboard-open nav .hamburger {
  border-color: var(--borde);
  background: var(--blanco);
}

nav.scrolled .hamburger span,
body.dashboard-open nav .hamburger span {
  background: var(--negro);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--borde);
  box-shadow: var(--sombra-lg);
  padding: 16px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

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

.mobile-menu a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.18s, color 0.18s;
}

.mobile-menu a:hover {
  background: var(--morado-soft);
  color: var(--morado-dark);
}

.mobile-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--morado-accent);
  padding: 10px 14px 4px;
}

.mobile-menu .mobile-sub {
  padding-left: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gris);
}

.mobile-menu .btn-primary { margin-top: 12px; width: 100%; }

/* ── HERO EDITORIAL OSCURO CORPORATIVO ── */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 52px) 0 88px;
  background:
    radial-gradient(ellipse 65% 55% at 15% 15%, rgba(204, 169, 221, 0.26) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(139, 90, 168, 0.28) 0%, transparent 65%),
    linear-gradient(150deg, var(--morado-night) 0%, var(--morado-deep) 52%, #24123a 100%);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.hero-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  pointer-events: none;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(204, 169, 221, 0.12);
  border: 1px solid rgba(204, 169, 221, 0.34);
  color: var(--morado-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  padding: 7px 16px;
  border-radius: var(--radio-pill);
  margin-bottom: 24px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--morado);
  box-shadow: 0 0 0 4px rgba(204, 169, 221, 0.25);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(204, 169, 221, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(204, 169, 221, 0.08); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 104px);
  line-height: 0.9;
  color: var(--blanco);
  margin-bottom: 22px;
  letter-spacing: 2px;
}

.hero-title span {
  background: linear-gradient(135deg, #f3e6fa 0%, var(--morado) 55%, #a876c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(204, 169, 221, 0.2);
  backdrop-filter: blur(12px);
  max-width: 520px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--morado-bright);
  line-height: 1;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* Emblema derecho del Hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-emblem-ring {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 235, 250, 0.92) 100%);
  border: 2px solid rgba(204, 169, 221, 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 60px rgba(204, 169, 221, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.hero-emblem-ring::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 48px;
  border: 1px dashed rgba(204, 169, 221, 0.35);
  pointer-events: none;
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(61, 26, 92, 0.22));
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-float-pill {
  position: absolute;
  background: rgba(23, 13, 36, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(204, 169, 221, 0.35);
  border-radius: 16px;
  padding: 11px 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blanco);
}

.hero-float-pill .pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(204, 169, 221, 0.2);
  color: var(--morado);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-pill small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
}

.hero-pill-top { top: 20px; left: -28px; }
.hero-pill-bottom { bottom: 22px; right: -24px; }

/* ── SECCIONES COMUNES ── */
section {
  padding: 108px 0;
  position: relative;
}

.section-header { margin-bottom: 52px; }

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--morado-accent);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--morado-accent), var(--morado));
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 0.94;
  color: var(--negro);
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--gris);
  max-width: 540px;
  line-height: 1.7;
}

/* ── SOBRE EL CLUB ── */
#sobre {
  background: linear-gradient(180deg, var(--blanco) 0%, var(--morado-soft) 100%);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 64px;
  align-items: center;
}

.sobre-media { position: relative; }

.sobre-media::before {
  content: '';
  position: absolute;
  inset: 16px -14px -14px 16px;
  border-radius: var(--radio-lg);
  background: linear-gradient(135deg, rgba(204, 169, 221, 0.42), rgba(139, 90, 168, 0.14));
  z-index: 0;
}

.sobre-img {
  position: relative;
  z-index: 1;
  border-radius: var(--radio-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--morado-border);
  box-shadow: var(--sombra-lg);
  background: var(--morado-light);
}

.sobre-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.sobre-img:hover img { transform: scale(1.05); }

.sobre-badge {
  position: absolute;
  z-index: 2;
  bottom: -18px;
  left: 24px;
  background: var(--morado-deep);
  color: var(--blanco);
  padding: 15px 22px;
  border-radius: 18px;
  border: 1px solid rgba(204, 169, 221, 0.35);
  box-shadow: var(--sombra-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.sobre-badge-year {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--morado);
}

.sobre-badge-txt {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.sobre-texto p {
  font-size: 16px;
  color: var(--gris);
  line-height: 1.8;
  margin-bottom: 16px;
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.valor-item {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 20px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.valor-item:hover {
  transform: translateY(-4px);
  border-color: var(--morado);
  box-shadow: var(--sombra);
}

.valor-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--morado-light), #ebe0f7);
  color: var(--morado-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.valor-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 4px;
}

.valor-desc {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.55;
}

/* ── PRUEBAS DESTACADAS ── */
#pruebas {
  background:
    radial-gradient(circle at 90% 10%, rgba(204, 169, 221, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(139, 90, 168, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, var(--morado-deep) 0%, var(--morado-night) 100%);
  color: var(--blanco);
  overflow: hidden;
}

#pruebas .section-tag { color: var(--morado); }
#pruebas .section-title { color: var(--blanco); }
#pruebas .section-sub { color: rgba(255, 255, 255, 0.72); }

.pruebas-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.prueba-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(204, 169, 221, 0.26);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.35s var(--ease);
}

.prueba-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--morado);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48), 0 0 36px rgba(204, 169, 221, 0.18);
}

.prueba-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 276;
  overflow: hidden;
  background: #12091c;
  border-bottom: 1px solid rgba(204, 169, 221, 0.18);
}

.prueba-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.35s;
}

.prueba-card:hover .prueba-banner img {
  transform: scale(1.028);
  filter: brightness(1.05);
}

.prueba-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 8, 26, 0) 65%, rgba(23, 13, 36, 0.45) 100%);
  pointer-events: none;
}

.prueba-body {
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.prueba-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.prueba-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(204, 169, 221, 0.2);
  color: var(--morado-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--radio-pill);
}

.prueba-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radio-pill);
}

.prueba-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: 1.2px;
  line-height: 1;
  color: var(--blanco);
  margin-bottom: 8px;
}

.prueba-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
  max-width: 660px;
}

.prueba-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--morado-bright) 0%, var(--morado) 100%);
  color: var(--morado-dark);
  padding: 13px 26px;
  border-radius: var(--radio-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(204, 169, 221, 0.25);
  transition: transform 0.25s var(--ease), gap 0.25s var(--ease), filter 0.2s;
}

.prueba-card:hover .prueba-cta {
  gap: 12px;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ── NOTICIAS E HISTÓRICO ── */
#noticias {
  background: var(--gris-light);
}

.noticias-controls {
  width: 100%;
  max-width: 390px;
}

.noticias-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.noticias-search-icon {
  position: absolute;
  left: 16px;
  color: var(--morado-accent);
  pointer-events: none;
}

.noticias-search-input {
  width: 100%;
  background: var(--blanco);
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-pill);
  padding: 13px 40px 13px 44px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--negro);
  box-shadow: var(--sombra-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.noticias-search-input:focus {
  outline: none;
  border-color: var(--morado-accent);
  box-shadow: 0 0 0 4px rgba(139, 90, 168, 0.14);
}

.noticias-clear-btn {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--gris-light);
  color: var(--gris);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.noticias-clear-btn:hover {
  background: var(--morado-light);
  color: var(--morado-dark);
}

.noticias-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.noticias-anios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.noticias-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--gris);
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.noticia-card {
  position: relative;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}

.noticia-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--morado-accent), var(--morado));
  opacity: 0;
  transition: opacity 0.28s;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-lg);
  border-color: var(--morado);
}

.noticia-card:hover::before { opacity: 1; }

.noticia-fecha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--morado-dark);
  background: var(--morado-light);
  padding: 4px 12px;
  border-radius: var(--radio-pill);
  letter-spacing: 0.7px;
  width: fit-content;
  margin-bottom: 14px;
}

.noticia-titular {
  font-size: 19px;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 10px;
  line-height: 1.35;
}

.noticia-contenido {
  font-size: 14px;
  color: var(--gris);
  line-height: 1.72;
}

.noticia-leer-mas {
  margin-top: 10px;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--morado-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.noticia-leer-mas:hover { color: var(--morado-dark); }

.noticia-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--gris-light);
  border-radius: 14px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--borde);
}

.noticia-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}

.noticia-img-wrap:hover .noticia-img { transform: scale(1.03); }

.noticia-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 13, 36, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s;
  font-size: 13px;
  font-weight: 700;
  color: var(--blanco);
}

.noticia-img-wrap:hover .noticia-img-overlay { opacity: 1; }

.noticias-archive-bar {
  margin-top: 38px;
  display: flex;
  justify-content: center;
}

.noticias-empty,
.noticias-loading,
.noticias-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--gris);
  font-size: 15px;
}

.noticias-empty {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 20px;
}

.noticias-empty strong {
  display: block;
  color: var(--negro);
  font-size: 16px;
  margin-bottom: 6px;
}

/* Skeleton shimmer para carga de noticias */
.skeleton-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ede9f5 25%, #f7f4fc 50%, #ede9f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-line.w-30 { width: 32%; height: 22px; border-radius: 99px; }
.skeleton-line.w-80 { width: 82%; height: 20px; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-line.w-65 { width: 65%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── INSTAGRAM CARD ── */
.ig-banner {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  max-width: 420px;
  display: block;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}

.ig-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(188, 24, 136, 0.22);
}

.ig-banner-inner {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-banner-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-banner-icon svg { width: 24px; height: 24px; }
.ig-banner-text { flex: 1; min-width: 0; }

.ig-banner-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ig-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-banner-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.ig-banner-arrow {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

/* ── CONTACTO ── */
#contacto { background: var(--blanco); }

.contacto-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacto-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--gris-light);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, transform 0.22s var(--ease), box-shadow 0.22s;
}

.contacto-item:hover {
  background: var(--blanco);
  border-color: var(--morado);
  transform: translateX(4px);
  box-shadow: var(--sombra-sm);
}

.contacto-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--morado-light);
  color: var(--morado-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.contacto-icon.is-plain { background: transparent; }
.contacto-icon img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }

.contacto-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gris-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contacto-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--negro);
}

.contacto-form-card {
  position: relative;
  overflow: hidden;
  background: var(--morado-soft);
  border: 1px solid var(--morado-border);
  border-radius: var(--radio-lg);
  padding: 36px;
  box-shadow: var(--sombra-sm);
}

.contacto-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--morado-accent), var(--morado), var(--morado-bright));
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--morado-dark);
  margin-bottom: 7px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--blanco);
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--negro);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--morado-accent);
  box-shadow: 0 0 0 4px rgba(139, 90, 168, 0.12);
}

.form-group textarea {
  height: 124px;
  resize: vertical;
}

.form-msg {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--morado-dark);
  display: none;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  background: var(--morado-night);
  color: rgba(255, 255, 255, 0.65);
  padding: 68px 0 36px;
  border-top: 1px solid rgba(204, 169, 221, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 3px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--blanco);
}

.footer-logo span { color: var(--morado); }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 330px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--morado); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom strong { color: rgba(255, 255, 255, 0.88); }

/* ── MODAL LOGIN ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 8, 26, 0.68);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--blanco);
  border-radius: 26px;
  padding: 40px 36px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.28s var(--ease);
  position: relative;
}

@keyframes modalIn {
  from { transform: scale(0.94) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--gris);
  background: var(--gris-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--morado-light);
  color: var(--morado-dark);
}

.modal-header { text-align: center; margin-bottom: 28px; }

.modal-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  background: var(--morado-soft);
  border: 1px solid var(--morado-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.modal-logo img { width: 100%; height: 100%; object-fit: contain; }

.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1.2px;
  color: var(--negro);
  line-height: 1;
}

.modal-sub { font-size: 13px; color: var(--gris); margin-top: 6px; }

.modal-error {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.22);
  color: var(--rojo);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  display: none;
}

/* ── ZONA SOCIOS — DASHBOARD ── */
#dashboard {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--gris-light);
}

.dashboard-top {
  background: linear-gradient(135deg, var(--morado-deep) 0%, var(--morado-dark) 100%);
  color: var(--blanco);
  padding: 36px 0 0;
}

.dashboard-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.dash-user-row { display: flex; align-items: center; gap: 16px; }

.dash-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(204, 169, 221, 0.2);
  border: 1px solid rgba(204, 169, 221, 0.45);
  color: var(--morado-bright);
  font-family: var(--font-display);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-bienvenida {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--morado);
  font-weight: 700;
}

.dash-nombre {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 1px;
  line-height: 1.05;
  color: var(--blanco);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 10px 20px;
  border-radius: var(--radio-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-logout:hover { background: rgba(255, 255, 255, 0.22); }

.dash-tabs-bar {
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}

.dash-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 32px;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radio-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--gris);
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.dash-tab:hover { background: var(--morado-soft); color: var(--morado-dark); }
.dash-tab.active { background: var(--morado-light); color: var(--morado-dark); }

.dash-content {
  padding: 36px 32px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.dash-panel { display: none; animation: fadePanel 0.28s var(--ease); }
.dash-panel.active { display: block; }

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-heading {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--negro);
  line-height: 1;
  margin-bottom: 6px;
}

.panel-sub { color: var(--gris); font-size: 15px; margin-bottom: 6px; }
.panel-count { color: var(--gris-muted); font-size: 13px; margin-bottom: 24px; }
.filtros-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

/* Datos personales */
.datos-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 20px;
  overflow: hidden;
  max-width: 620px;
  box-shadow: var(--sombra-sm);
}

.datos-header {
  background: linear-gradient(135deg, var(--morado-light) 0%, #ffffff 100%);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--borde);
}

.datos-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--morado) 0%, var(--morado-accent) 100%);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  flex-shrink: 0;
}

.datos-nombre-big { font-size: 20px; font-weight: 700; color: var(--negro); }
.datos-num { font-size: 13px; color: var(--morado-accent); font-weight: 600; margin-top: 2px; }

.datos-estado {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radio-pill);
  margin-top: 8px;
  letter-spacing: 0.6px;
}

.estado-activo { background: rgba(5, 150, 105, 0.12); color: var(--verde); }
.estado-inactivo { background: rgba(225, 29, 72, 0.12); color: var(--rojo); }

.datos-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--borde);
  gap: 16px;
}

.datos-fila:last-child { border-bottom: none; }

.datos-fila-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gris-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.datos-fila-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--negro);
  text-align: right;
}

/* Saldo */
.saldo-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 44px 36px;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--sombra-sm);
}

.saldo-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gris-muted);
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.saldo-amount { font-family: var(--font-display); font-size: 74px; line-height: 1; margin-bottom: 16px; }
.saldo-pos { color: var(--verde); }
.saldo-neg { color: var(--rojo); }

.saldo-pill {
  display: inline-block;
  border-radius: var(--radio-pill);
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
}

/* Carnet */
.carnet-wrapper {
  max-width: 480px;
  border: 1px solid var(--borde);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--blanco);
}

.carnet-wrapper img { width: 100%; }

.carnet-hint {
  text-align: center;
  padding: 13px 16px;
  background: var(--morado-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--morado-dark);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--morado-deep);
  color: var(--blanco);
  padding: 12px 24px;
  border-radius: var(--radio-pill);
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
  transition: background 0.2s, transform 0.2s;
}

.btn-download:hover { background: var(--morado-dark); transform: translateY(-2px); }

/* Buzón */
.buzon-card {
  border: 1.5px solid var(--morado);
  border-radius: 18px;
  overflow: hidden;
  max-width: 620px;
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
}

.buzon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: var(--morado-soft);
  border-bottom: 1px solid var(--morado-border);
}

.buzon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--morado-light);
  color: var(--morado-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radio-pill);
}

.buzon-para { font-size: 12px; color: var(--gris); font-weight: 600; }
.buzon-body { padding: 24px; font-size: 15px; color: var(--ink); line-height: 1.8; }

.buzon-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 56px 32px;
  max-width: 560px;
  text-align: center;
}

.buzon-vacio-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--morado-light);
  color: var(--morado-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.buzon-vacio-titulo { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.buzon-vacio-sub { font-size: 14px; color: var(--gris); line-height: 1.65; }

/* Rutas dashboard (socios) */
.dash-rutas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.dash-ruta {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.dash-ruta:hover { transform: translateY(-4px); box-shadow: var(--sombra); }

.dash-ruta-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 460px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--morado-light);
}

.dash-ruta-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.dash-ruta-img-wrap:hover .dash-ruta-img { transform: scale(1.03); }

.dash-ruta-amp {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 14, 24, 0.74);
  backdrop-filter: blur(6px);
  color: var(--blanco);
  padding: 5px 12px;
  border-radius: var(--radio-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-ruta-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.dash-ruta-fecha {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--morado-dark);
  background: var(--morado-light);
  padding: 4px 12px;
  border-radius: var(--radio-pill);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  width: fit-content;
}

.dash-ruta-desc { font-size: 15px; font-weight: 600; color: var(--negro); line-height: 1.5; margin-bottom: 16px; }
.dash-ruta-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.dash-ruta-track {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--morado-accent);
  color: var(--blanco);
  padding: 9px 16px;
  border-radius: var(--radio-pill);
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.dash-ruta-track:hover { opacity: 0.88; }

.dash-ruta-descarga {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--morado-border);
  color: var(--morado-dark);
  padding: 8px 16px;
  border-radius: var(--radio-pill);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
  background: transparent;
}

.dash-ruta-descarga:hover { background: var(--morado-light); }

/* Filtros (compartido entre Noticias y Descuentos) */
.filtro-btn {
  padding: 8px 16px;
  border-radius: var(--radio-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  color: var(--gris);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.filtro-btn:hover,
.filtro-btn.active {
  background: var(--morado-deep);
  border-color: var(--morado-deep);
  color: var(--blanco);
}

/* Descuentos */
.descuentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.descuento-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.descuento-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--morado); }

.descuento-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--gris-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.descuento-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s var(--ease); }
.descuento-card:hover .descuento-img-wrap img { transform: scale(1.04); }

.descuento-info {
  padding: 18px 20px 22px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.descuento-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 11px;
  border-radius: var(--radio-pill);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.descuento-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--negro); }
.descuento-texto { font-size: 13px; color: var(--gris); line-height: 1.6; margin-bottom: 14px; }

.descuento-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--morado-light);
  color: var(--morado-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radio-pill);
  transition: background 0.2s;
}

.descuento-link:hover { background: var(--morado); }

/* Documentos */
.documentos-lista { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }

.documento-item {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.documento-item:hover { transform: translateY(-2px); box-shadow: var(--sombra-sm); border-color: var(--morado); }

.documento-texto {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--negro);
  line-height: 1.45;
  flex: 1;
}

.documento-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--morado-light);
  color: var(--morado-dark);
  padding: 9px 18px;
  border-radius: var(--radio-pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.documento-btn:hover { background: var(--morado); }

/* Calendario */
.cal-wrap {
  max-width: 420px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--sombra-sm);
}

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-mes { font-family: var(--font-display); font-size: 26px; letter-spacing: 1px; color: var(--negro); }

.cal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: var(--gris-light);
  color: var(--negro);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cal-btn:hover { background: var(--morado-light); color: var(--morado-dark); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gris-muted);
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  text-transform: uppercase;
}

.cal-dia {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: default;
  gap: 3px;
  transition: background 0.15s;
}

.cal-dia.tiene-evento { cursor: pointer; background: var(--morado-soft); }
.cal-dia.tiene-evento:hover { background: var(--morado-light); }

.cal-dia.hoy .cal-num {
  background: var(--morado-accent);
  color: var(--blanco);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-dia.otro-mes .cal-num { color: #d1d5db; }
.cal-num { font-size: 13px; font-weight: 600; line-height: 1; }
.cal-dots { display: flex; gap: 2px; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; }

/* Modal calendario */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(16, 8, 26, 0.56);
  backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
}

.cal-modal-overlay.open { display: flex; }

.cal-modal {
  background: var(--blanco);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.25s var(--ease);
  position: relative;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cal-modal-fecha {
  font-size: 12px;
  font-weight: 700;
  color: var(--morado-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cal-modal-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.cal-evento-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--gris-light);
  border: 1px solid var(--borde);
}

.cal-evento-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cal-evento-nombre { font-size: 14px; font-weight: 600; }

.cal-modal-cerrar {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--gris-light);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris);
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 6, 20, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-img {
  max-width: 460px;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
}

.lightbox-cerrar {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-cerrar:hover { background: rgba(255, 255, 255, 0.28); }

.lightbox-descarga {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--morado);
  color: var(--morado-dark);
  padding: 12px 26px;
  border-radius: var(--radio-pill);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lightbox-descarga:hover { opacity: 0.9; }

/* Spinner */
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--morado-light);
  border-top-color: var(--morado-accent);
  animation: spin 0.7s linear infinite;
  margin: 48px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
  }

  .hero-sub,
  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns { justify-content: center; }
  .hero-emblem-ring { width: 280px; }
  .hero-pill-top { left: -12px; }
  .hero-pill-bottom { right: -12px; }

  .sobre-grid,
  .contacto-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .container,
  .nav-inner,
  .dashboard-header,
  .dash-tabs,
  .dash-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 72px 0; }
  .valores-grid { grid-template-columns: 1fr; }
  .hero-float-pill { display: none; }

  .sobre-media::before { display: none; }
  .sobre-badge {
    position: static;
    margin-top: 14px;
    width: fit-content;
  }

  .contacto-form-card { padding: 26px 20px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .documento-item { flex-direction: column; align-items: flex-start; }

  .prueba-body {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 18px;
  }

  .prueba-cta { width: 100%; justify-content: center; }
}
