/* Base de normalizacion global */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
}

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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary: #8ed1fc;
  --primary-dark: #003366;
  --primary-soft: rgba(102, 217, 255, 0.12);
  --gray: #343a40;
  --gray-mid: #6c757d;
  --gray-light: #f0f2f5;
  --gray-border: #e2e6ea;
  --green: #76b72b;
  --green-soft: rgba(118, 183, 43, 0.12);
  --red: #e53935;
  --red-soft: rgba(229, 57, 53, 0.10);
  --white: #ffffff;
  --navy: #090909;
  --navy-soft: rgba(35, 52, 108, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.13);

  --transition: all 0.2s ease;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-1xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --global-header-height: 76px;
  --global-footer-height: 60px;
  min-height: 100vh;
  padding-top: var(--global-header-height);
  padding-bottom: var(--global-footer-height);
  background: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

/* ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
} */

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

.main-general {
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height));
}

.global-navbar {
  min-height: var(--global-header-height);
  background: #FFFF !important;
  border-bottom: 2px solid rgba(102, 217, 255, 0.20);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22) !important;
}

.global-navbar .navbar-brand {
  color: var(--navy) !important;
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.global-navbar .navbar-brand:hover {
  color: var(--primary) !important;
}

.global-navbar .nav-link {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--navy) !important;
  padding: 0.45rem 0.8rem !important;
  position: relative;
  transition: color 0.2s;
}

.global-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.global-navbar .nav-link:hover,
.global-navbar .nav-link:focus {
  color: var(--navy) !important;
}

.global-navbar .nav-link:hover::after,
.global-navbar .nav-link:focus::after {
  transform: scaleX(1);
}

.global-navbar .nav-link.active {
  color: var(--navy) !important;
  font-weight: 600;
}

.global-navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* User area in navbar */
.navbar-user-area {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 0.75rem;
}

.navbar-user-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

.navbar-user-name {
  color: var(--navy) !important;
  font-size: var(--text-sm);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--red);
  color: #ffffff !important;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-logout:hover {
  background: #c62828;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.auth-footer {
  background: var(--navy);
  border-top: 2px solid rgba(102, 217, 255, 0.20);
  color: rgba(255, 255, 255, 0.55);
  z-index: 1030;
}

.auth-footer p {
  margin-bottom: 2px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}

.auth-footer a:hover,
.auth-footer a:focus {
  color: var(--primary-dark);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  color: var(--navy);
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 217, 255, 0.30);
}

.social-contact-link {
  width: auto;
  border-radius: 999px;
  padding: 0 0.7rem;
  font-size: 0.82rem;
}

.social-contact-link span {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  body {
    --global-header-height: 68px;
    --global-footer-height: 184px;
  }

  .global-navbar .navbar-collapse {
    padding-bottom: 0.75rem;
  }

  .header-social-links {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  body {
    --global-footer-height: 212px;
  }

  .social-contact-link span {
    display: none;
  }
}

/* ===== BANNER PRINCIPAL — Full width sticky ===== */
.slider-principal {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100vw;
  /* margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); */
  overflow: hidden;
}

.slider-principal .carousel,
.slider-principal .carousel-inner,
.slider-principal .carousel-item,
.slider-principal .fondo-imagen,
.slider-principal .fondo-imagen-responsive,
.slider-principal .fondo-video-youtube,
.slider-principal .banner-video-youtube {
  width: 100%;
}

.slider-principal .fondo-imagen img,
.slider-principal .fondo-imagen-responsive img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== BANNER INTERNAS — Estilos específicos ===== */
.slider-internas {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
}

.slider-internas .carousel,
.slider-internas .carousel-inner,
.slider-internas .carousel-item,
.slider-internas .fondo-imagen,
.slider-internas .fondo-imagen-responsive,
.slider-internas .fondo-video-youtube,
.slider-internas .banner-video-youtube {
  width: 100%;
}

.slider-internas .fondo-imagen img,
.slider-internas .fondo-imagen-responsive img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Altura optimizada para bannerinternas */
.slider-internas .carousel {
  min-height: 280px;
}

/* Carousel controls mejorados para internas */
.slider-internas .carousel-control-prev,
.slider-internas .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-internas .carousel-control-prev {
  left: 16px;
}

.slider-internas .carousel-control-next {
  right: 16px;
}

.slider-internas .carousel-control-prev:hover,
.slider-internas .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-internas .carousel-control-prev-icon,
.slider-internas .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Indicadores de carousel (dots) — internas */
.slider-internas .carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  gap: 8px;
  margin: 0;
  padding: 0;
}

.slider-internas .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.slider-internas .carousel-indicators .active,
.slider-internas .carousel-indicators [data-bs-target]:hover {
  background: #ffffff;
  opacity: 1;
  transform: scale(1.2);
}

/* Superposición sutil en imágenes (efecto visual) — internas */
.slider-internas .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Enlaces del banner internas */
.slider-internas .carousel-item a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Animación de transición suave — internas */
.slider-internas .carousel-item {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Ajustes responsivos para bannerinternas */
@media (max-width: 768px) {
  .slider-internas .carousel {
    min-height: 200px;
  }

  .slider-internas .carousel-control-prev,
  .slider-internas .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .slider-internas .carousel-control-prev {
    left: 8px;
  }

  .slider-internas .carousel-control-next {
    right: 8px;
  }

  .slider-internas .carousel-indicators {
    bottom: 12px;
    gap: 6px;
  }

  .slider-internas .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 576px) {
  .slider-internas .carousel {
    min-height: 150px;
  }

  .slider-internas .carousel-control-prev,
  .slider-internas .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .slider-internas .carousel-indicators {
    bottom: 8px;
    gap: 4px;
  }

  .slider-internas .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
  }
}


/* ============================================================
   CARDS — resultados
   ============================================================ */
.caja-resultados {
  background: var(--navy);
  /* border-radius: var(--radius-lg); */
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.caja-resultados::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--green));
}

.caja-resultados h2 {
  color: var(--white);
  margin: 0;
  padding: 16px 0;
  font-size: var(--text-2xl);
  font-weight: 700;
  display: block;
  /* border-right: 1px solid rgba(255,255,255,0.15); */
}

.caja-resultados h2 span {
  font-size: var(--text-sm);
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  margin-top: 4px;
}

/* ============================================================
   CAJA-PARTIDO — match result cards
   ============================================================ */
.caja-partido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  transition: var(--transition);
}

.caja-partido:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(102, 217, 255, 0.30);
  box-shadow: 0 0 0 1px rgba(102, 217, 255, 0.15);
}

.partido-equipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.partido-equipo img {
  width: 36px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow-xs);
}

.partido-equipo span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.partido-marcador {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.marcador-valor {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 22px;
  text-align: center;
}

.marcador-sep {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

/* ============================================================
   JUGAR
   ============================================================ */
.titulo_jugar {
  color: var(--white);
  font-size: var(--text-3xl);
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Hero banner */
.jugar-hero {
  background: url('/corte/Foto-1.jpg') center / cover no-repeat;
  position: relative;
  padding: 3rem 0 2.25rem;
}

.jugar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 52, 108, 0.65) 0%, rgba(35, 52, 108, 0.45) 100%);
}

.jugar-hero__inner {
  position: relative;
  z-index: 1;
}

/* Navigation pills */
.jugar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.jugar-nav__link {
  padding: 0.38rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jugar-nav__link:hover,
.jugar-nav__link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--navy);
}

/* Page body */
.jugar-body {
  background: #f0f2f5;
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height) - 200px);
  padding: 2.5rem 0;
}

/* Card */
.jugar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.jugar-card__head {
  background: var(--navy);
  padding: 1rem 1.5rem;
  border-bottom: 2px solid rgba(102, 217, 255, 0.2);
}

.jugar-card__title {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

.jugar-card__body {
  padding: 1.25rem 1.5rem;
}

.jugar-card-footer {
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-border);
  background: rgba(240, 242, 245, 0.6);
}

/* Row items */
.jugar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-border);
}

.jugar-row:last-child {
  border-bottom: none;
}

.jugar-row__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray);
  flex: 0 0 90px;
  white-space: nowrap;
}

.jugar-row__label--pos {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jugar-row__select {
  flex: 1;
  min-width: 0;
}

/* Position badges */
.jugar-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.jugar-pos--1 {
  background: #FFD700;
  color: #6b5500;
}

.jugar-pos--2 {
  background: #d0d0d0;
  color: #444;
}

.jugar-pos--3 {
  background: #c08040;
  color: #fff;
}

.jugar-pos--4 {
  background: var(--gray-light);
  color: var(--gray-mid);
}

/* Dieciseisavos specific */
.jugar-row--match {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.85rem 0;
}

.jugar-row__tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.jugar-row__pair {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: end;
  gap: 0.5rem;
}

.jugar-row__pair-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jugar-row__team-label {
  font-size: 0.7rem;
  color: var(--gray-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jugar-row__vs {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--gray-mid);
  text-align: center;
  padding-bottom: 0.5rem;
}

/* Octavos grid */
.jugar-row--octavos {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.jugar-row--octavos .jugar-row__label {
  flex: none;
}

/* Select */
.ganador {
  display: block;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--gray);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c757d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.ganador:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.18);
  outline: none;
}

.ganador:disabled {
  background-color: var(--gray-light);
  color: var(--gray-mid);
  cursor: default;
  opacity: 0.7;
}

/* Marcador inputs */
.marcador {
  width: 52px;
  text-align: center;
  padding: 0.4rem 0.25rem;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.marcador::-webkit-outer-spin-button,
.marcador::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.marcador:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.18);
  outline: none;
}

.marcador-fixed {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 576px) {
  .marcador {
    width: 40px;
    font-size: var(--text-sm);
  }
}

/* Buttons */
.btn-jugar-save {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.55rem 2rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-jugar-save:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(102, 217, 255, 0.35);
}

.btn-jugar-save:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn-jugar-ghost {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: transparent;
  color: var(--gray-mid);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-jugar-ghost:hover {
  background: var(--gray-light);
  border-color: var(--gray-mid);
  color: var(--gray);
}

/* Filter labels */
.jugar-filter__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}

/* Match rows (index) */
.jugar-fecha-header {
  background: var(--navy);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.jugar-fecha-header--secondary {
  background: rgba(35, 52, 108, 0.06);
  border-top: 1px solid var(--gray-border);
}

.jugar-fecha-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
}

.jugar-fecha-header--secondary .jugar-fecha-label {
  color: var(--navy);
}

.btn-jugar-save--fecha {
  padding: 0.28rem 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.btn-jugar-save,
.btn-jugar-save--fecha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.jugar-save-count {
  display: none;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 0.64rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

.btn-jugar-save.has-pending .jugar-save-count,
.btn-jugar-save--fecha.has-pending .jugar-save-count {
  display: inline-flex;
}

.btn-jugar-save.is-loading,
.btn-jugar-save--fecha.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.btn-jugar-save.is-loading::after,
.btn-jugar-save--fecha.is-loading::after {
  content: '';
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: jugar-btn-spin 0.8s linear infinite;
}

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

/* Grupo de fecha colapsable */
.jugar-fecha-group--cerrada .jugar-fecha-matches {
  display: none;
}

.jugar-fecha-group--cerrada.jugar-fecha-group--abierta .jugar-fecha-matches {
  display: block;
}

.jugar-fecha-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.6;
}

.jugar-fecha-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.jugar-fecha-toggle .fa-chevron-down {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.jugar-fecha-group--abierta .jugar-fecha-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.jugar-fecha-header--secondary .jugar-fecha-toggle {
  border-color: rgba(35, 52, 108, 0.35);
  color: var(--navy);
}

.jugar-fecha-header--secondary .jugar-fecha-toggle:hover {
  background: rgba(35, 52, 108, 0.08);
}

.jugar-match-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 1fr 48px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.15s;
}

.jugar-match-row:last-child {
  border-bottom: none;
}

.jugar-match-row:hover {
  background: var(--gray-light);
}

.jugar-match-row--pending {
  background: #fff7e8;
}

.jugar-match-row--saved {
  animation: jugar-row-saved 2.6s ease;
}

@keyframes jugar-row-saved {
  0% {
    background: #e7f8ec;
    box-shadow: inset 0 0 0 1px rgba(47, 128, 93, 0.25);
  }

  70% {
    background: #f1fbf4;
    box-shadow: inset 0 0 0 1px rgba(47, 128, 93, 0.12);
  }

  100% {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(47, 128, 93, 0);
  }
}

.jugar-match-hora {
  font-size: var(--text-xs);
  color: var(--gray-mid);
  font-weight: 600;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.jugar-countdown {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  background: #e8f5e9;
  color: #2e7d32;
  line-height: 1.3;
}

.jugar-countdown--urgente {
  background: #fff3e0;
  color: #e65100;
  animation: countdown-pulse 1s ease-in-out infinite;
}

.jugar-countdown--cerrado {
  background: #f5f5f5;
  color: #9e9e9e;
  font-style: italic;
}

@keyframes countdown-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.jugar-match-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.jugar-match-team--right {
  flex-direction: row-reverse;
  text-align: right;
}

.jugar-match-team img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.jugar-match-team span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.jugar-match-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.jugar-match-grupo {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  background: var(--navy);
  border-radius: 4px;
  padding: 3px 6px;
}

.jugar-save-row {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: rgba(240, 242, 245, 0.7);
  border-top: 1px solid var(--gray-border);
}

.jugar-save-row--fecha {
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 767.98px) {
  .jugar-match-row {
    grid-template-columns: 44px 1fr auto 1fr 28px;
    padding: 0.65rem 0.75rem;
    gap: 0.25rem;
  }

  .jugar-match-team span {
    font-size: 0.7rem;
  }

  .jugar-match-team img {
    width: 22px;
    height: 16px;
  }

  .jugar-row--octavos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
  }

  .jugar-row__label {
    flex: 0 0 110px;
    font-size: 0.78rem;
  }
}

@media (max-width: 399.98px) {
  .jugar-match-row {
    grid-template-columns: 36px 1fr auto 1fr 0;
    gap: 0.15rem;
  }

  .jugar-match-hora {
    font-size: 0.6rem;
  }

  .jugar-match-team span {
    font-size: 0.65rem;
  }

  .jugar-match-team img {
    width: 18px;
    height: 13px;
  }

  .jugar-match-grupo {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .jugar-save-row--fecha {
    justify-content: center;
  }

  .titulo_jugar {
    font-size: var(--text-2xl);
  }

  .jugar-hero {
    padding: 2rem 0 1.75rem;
  }

  .jugar-card__head {
    padding: 0.85rem 1rem;
  }

  .jugar-card__body {
    padding: 1rem;
  }

  .jugar-card-footer {
    padding: 0.85rem 1rem;
  }

  .jugar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .jugar-row__label {
    flex: none;
  }

  .jugar-row--octavos {
    display: flex;
    flex-direction: column;
  }

  .jugar-row__pair {
    grid-template-columns: 1fr 28px 1fr;
  }
}

/* ============================================================
   INSCRIPCIÓN — auth & registration flow
   ============================================================ */
.inscripcion-section {
  padding: 48px 0 64px;
  /* background: linear-gradient(155deg, var(--navy) 0%, #1a2450 60%, #0f1a3d 100%); */
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height));
  position: relative;
  overflow: hidden;
}

.inscripcion-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(102, 217, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(118, 183, 43, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Card wrapper */
.inscripcion-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
}

/* Card header (navy + logo) */
.inscripcion-card__header {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2450 100%);
  border-bottom: 3px solid var(--primary);
  padding: 28px 24px 22px;
  text-align: center;
}

.inscripcion-logo {
  max-height: 60px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.inscripcion-card__badge {
  display: inline-block;
  margin: 14px 0 0;
  padding: 3px 12px;
  background: rgba(102, 217, 255, 0.12);
  border: 1px solid rgba(102, 217, 255, 0.30);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFF;
}

/* Card body */
.inscripcion-card__body {
  padding: 32px 28px 36px;
}

.inscripcion-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.inscripcion-card__subtitle {
  font-size: var(--text-sm);
  color: var(--gray-mid);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Section label inside multi-step forms */
.inscripcion-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin: 0;
}

/* Fields */
.inscripcion-field {
  margin-bottom: 18px;
}

.inscripcion-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 7px;
}

.inscripcion-label-hint {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--gray-mid);
}

/* Input with icon */
.inscripcion-input-wrap {
  position: relative;
}

.inscripcion-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--gray-mid);
  pointer-events: none;
}

.inscripcion-input {
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--gray);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.inscripcion-input-wrap .inscripcion-input {
  padding-left: 38px;
}

.inscripcion-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.18);
  outline: none;
}

.inscripcion-input--readonly,
.inscripcion-input[readonly] {
  background: var(--gray-light);
  color: var(--gray-mid);
  cursor: default;
}

.inscripcion-input--pin {
  padding-right: 42px;
}

.inscripcion-pin-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  color: var(--gray-mid);
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.inscripcion-pin-toggle:hover {
  color: var(--primary);
}

.inscripcion-input--readonly:focus,
.inscripcion-input[readonly]:focus {
  border-color: var(--gray-border);
  box-shadow: none;
}

/* Button */
.inscripcion-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  text-decoration: none;
}

.inscripcion-btn:hover {
  background: #1a2450;
  border-color: #1a2450;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(35, 52, 108, 0.30);
}

.inscripcion-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.inscripcion-btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-border);
}

.inscripcion-btn--ghost:hover {
  background: var(--gray-light);
  border-color: var(--gray-mid);
  color: var(--gray);
  box-shadow: none;
  transform: none;
}

/* Divider */
.inscripcion-divider {
  height: 1px;
  background: var(--gray-border);
  margin: 20px 0;
}

/* Link */
.inscripcion-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s;
}

.inscripcion-link:hover {
  color: var(--primary-dark);
}

/* Alert */
.inscripcion-alert {
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 0;
}

/* recordar2 — success feedback icon */
.inscripcion-feedback-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.inscripcion-feedback-icon i {
  font-size: 2rem;
  color: var(--green);
}

.inscripcion-redirect-note {
  font-size: var(--text-xs);
  color: var(--gray-mid);
  margin-bottom: 0;
}

/* confirmar — terms box */
.inscripcion-terms-box {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  /* border-left: 4px solid var(--primary); */
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.inscripcion-terms-intro {
  font-size: var(--text-sm);
  color: var(--gray);
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.inscripcion-terms-body {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

.inscripcion-terms-field {
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px dashed var(--navy);
  padding-bottom: 1px;
}

/* registro — select inherits input styles */
.inscripcion-card .form-select.inscripcion-input {
  padding-left: 14px;
}

@media (max-width: 575.98px) {
  .inscripcion-section {
    padding: 32px 0 48px;
  }

  .inscripcion-card__body {
    padding: 24px 18px 28px;
  }
}

/* ============================================================
   PARTIDOS — match list page
   ============================================================ */

/* Hero */
.partidos-hero {
  background: var(--navy);
  border-bottom: 2px solid rgba(102, 217, 255, 0.18);
  padding: 2rem 0 1.75rem;
}

.partidos-hero__inner {
  position: relative;
  z-index: 1;
}

.partidos-hero__title {
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Filters bar */
.partidos-filters-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 0.85rem 0;
  position: sticky;
  top: var(--global-header-height);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.partidos-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.partidos-filters__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.partidos-filters__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1;
}

.partidos-filters__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.partidos-select {
  display: block;
  width: 100%;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--gray);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236c757d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.partidos-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.18);
  outline: none;
}

.partidos-filters__actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.btn-partidos-filter {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-partidos-filter:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--navy);
}

.btn-partidos-clear {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: transparent;
  color: var(--gray-mid);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-partidos-clear:hover {
  background: var(--gray-light);
  border-color: var(--gray-mid);
  color: var(--gray);
}

/* Page body */
.partidos-body {
  background: var(--gray-light);
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height) - 160px);
  padding: 2rem 0;
}

/* Phase card */
.partidos-fase {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.partidos-fase__header {
  background: var(--navy);
  padding: 0.85rem 1.5rem;
  border-bottom: 2px solid rgba(102, 217, 255, 0.18);
}

.partidos-fase__title {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* Date separator */
.partidos-date-header {
  background: rgba(35, 52, 108, 0.05);
  border-top: 1px solid var(--gray-border);
  padding: 0.5rem 1.5rem;
}

.partidos-fase__body .partidos-date-header:first-child {
  border-top: none;
}

.partidos-date-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  text-transform: capitalize;
}

/* Match row — 5-column grid: hora | team1 | score | team2 | meta */
.partidos-match-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 1fr 80px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.15s;
}

.partidos-match-row:last-child {
  border-bottom: none;
}

.partidos-match-row:hover {
  background: rgba(35, 52, 108, 0.03);
}

/* Hora */
.partidos-match-hora {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-mid);
  text-align: center;
}

/* Teams */
.partidos-match-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.partidos-match-team--right {
  flex-direction: row-reverse;
  text-align: right;
}

.partidos-match-team img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.partidos-match-team span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Score */
.partidos-match-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 72px;
}

.partidos-score-val {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  min-width: 22px;
  text-align: center;
  line-height: 1;
}

.partidos-score-sep {
  font-size: var(--text-base);
  color: var(--gray-mid);
  font-weight: 300;
}

.partidos-score-vs {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
}

/* Meta column (grupo badge + ganador) */
.partidos-match-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.partidos-grupo-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--navy);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.partidos-ganador {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
}

/* Responsive — tablet */
@media (max-width: 767.98px) {
  .partidos-filters-wrap {
    position: static;
  }

  .partidos-filters__field {
    min-width: 120px;
  }

  .partidos-match-row {
    grid-template-columns: 44px 1fr auto 1fr 56px;
    padding: 0.65rem 1rem;
    gap: 0.35rem;
  }

  .partidos-match-team span {
    font-size: 0.7rem;
  }

  .partidos-match-team img {
    width: 22px;
    height: 16px;
  }

  .partidos-match-score {
    min-width: 56px;
  }

  .partidos-score-val {
    font-size: var(--text-base);
    min-width: 18px;
  }

  .partidos-date-header {
    padding: 0.5rem 1rem;
  }

  .partidos-fase__header {
    padding: 0.75rem 1rem;
  }
}

/* Responsive — mobile */
@media (max-width: 575.98px) {
  .partidos-hero {
    padding: 1.5rem 0 1.25rem;
  }

  .partidos-hero__title {
    font-size: var(--text-xl);
  }

  .partidos-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .partidos-filters__actions {
    justify-content: flex-end;
  }

  .partidos-match-row {
    grid-template-columns: 38px 1fr auto 1fr;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
  }

  .partidos-match-meta {
    display: none;
  }

  .partidos-score-val {
    font-size: var(--text-base);
  }

  .partidos-match-score {
    min-width: 48px;
  }
}

/* ============================================================
   GRUPOS — group standings page
   ============================================================ */

.grupos-hero {
  background: var(--navy);
  border-bottom: 2px solid rgba(102, 217, 255, 0.18);
  padding: 2rem 0 1.75rem;
}

.grupos-hero__title {
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.grupos-body {
  background: var(--gray-light);
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height) - 120px);
  padding: 2rem 0;
}

/* 2-column grid, 1-column on mobile */
.grupos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grupos-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.grupos-card__header {
  background: var(--navy);
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid rgba(102, 217, 255, 0.18);
}

.grupos-card__title {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.grupos-card__body {
  padding: 0;
}

/* Standings table */
.grupos-table {
  width: 100%;
  font-size: var(--text-sm);
}

.grupos-table thead tr {
  background: rgba(35, 52, 108, 0.05);
  border-bottom: 1px solid var(--gray-border);
}

.grupos-table th {
  padding: 0.5rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.grupos-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.15s;
}

.grupos-table tbody tr:last-child {
  border-bottom: none;
}

.grupos-table tbody tr:hover {
  background: rgba(35, 52, 108, 0.03);
}

.grupos-table td {
  padding: 0.55rem 0.5rem;
  color: var(--gray);
  font-size: var(--text-sm);
}

.grupos-flag-cell {
  /* width: 36px; */
  padding-left: 1rem !important;
}

.grupos-flag-cell img {
  width: 48px;
  height: 28px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-xs);
  display: block;
}

.grupos-name-cell {
  font-weight: 600;
  white-space: nowrap;
}

.grupos-col-pts {
  font-weight: 700;
  color: var(--navy) !important;
}

@media (max-width: 991.98px) {
  .grupos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .grupos-hero {
    padding: 1.5rem 0 1.25rem;
  }

  .grupos-hero__title {
    font-size: var(--text-xl);
  }

  .grupos-body {
    padding: 1.25rem 0;
  }

  .grupos-col-hide {
    display: none;
  }

  .grupos-table th,
  .grupos-table td {
    padding: 0.45rem 0.35rem;
    font-size: 0.75rem;
  }

  .grupos-flag-cell {
    padding-left: 0.5rem !important;
  }
}

/* ============================================================
   CLASIFICACIÓN — leaderboard page
   ============================================================ */

.clasificacion-hero {
  background: var(--navy);
  border-bottom: 2px solid rgba(102, 217, 255, 0.18);
  padding: 2rem 0 1.75rem;
}

.clasificacion-hero__title {
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.clasificacion-hero__desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

.clasificacion-body {
  background: var(--gray-light);
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height) - 120px);
  padding: 2rem 0;
}

.clasificacion-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.clasificacion-card__header {
  background: var(--navy);
  padding: 0.85rem 1.5rem;
  border-bottom: 2px solid rgba(102, 217, 255, 0.18);
}

.clasificacion-card__label {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Leaderboard table */
.clasificacion-table {
  width: 100%;
}

.clasificacion-table thead tr {
  background: rgba(35, 52, 108, 0.05);
  border-bottom: 1px solid var(--gray-border);
}

.clasificacion-table th {
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.clasificacion-th-pos {
  width: 56px;
}

.clasificacion-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.15s;
}

.clasificacion-table tbody tr:last-child {
  border-bottom: none;
}

.clasificacion-table tbody tr:hover {
  background: rgba(35, 52, 108, 0.03);
}

.clasificacion-table td {
  padding: 0.7rem 1rem;
  color: var(--gray);
  font-size: var(--text-sm);
}

/* Position badges */
.clasificacion-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--gray-light);
  color: var(--gray-mid);
}

.clasificacion-pos--1 {
  background: #FFD700;
  color: #6b5500;
}

.clasificacion-pos--2 {
  background: #d0d0d0;
  color: #444;
}

.clasificacion-pos--3 {
  background: #c08040;
  color: #fff;
}

/* Current-user row */
.clasificacion-row--me {
  background: var(--primary-soft) !important;
}

.clasificacion-row--me:hover {
  background: rgba(102, 217, 255, 0.18) !important;
}

.clasificacion-nombre {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clasificacion-yo-badge {
  display: inline-block;
  padding: 1px 8px;
  background: var(--primary);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.clasificacion-puntos {
  font-weight: 700;
  color: var(--navy);
  font-size: var(--text-base) !important;
}

@media (max-width: 575.98px) {
  .clasificacion-hero {
    padding: 1.5rem 0 1.25rem;
  }

  .clasificacion-hero__title {
    font-size: var(--text-xl);
  }

  .clasificacion-body {
    padding: 1.25rem 0;
  }

  .clasificacion-table th,
  .clasificacion-table td {
    padding: 0.6rem 0.75rem;
  }
}

.contenedor-seccion {
  padding: 20px 0;
}

.caja-contenido-simple {
  padding: 10px 0;
}

.caja-contenido-simple>h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.design-five-contenido>img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}

.imagen-contenido img {
  border-radius: 15px;
  width: 100%;
  object-fit: cover;
}

.contenedor>h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

/* ============================================================
   PAGE HERO — minimalist icon + title header (shared)
   ============================================================ */

.page-hero {
  padding: 0.5rem 0 0.5rem;
  background: transparent;
}

.page-hero__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-hero__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(35, 52, 108, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--navy);
  flex-shrink: 0;
}

.page-hero__title {
  font-size: var(--text-1xl);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-hero__subtitle {
  font-size: var(--text-sm);
  color: var(--gray-mid);
  margin: 0.15rem 0 0;
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 1.75rem 0 1.25rem;
  }

  .page-hero__icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .page-hero__title {
    font-size: var(--text-xl);
  }
}

/* ============================================================
   PREMIOS & TÉRMINOS — rich content styling
   ============================================================ */

/* Page wrapper */
.contenido-terminos {
  background: var(--gray-light);
  padding: 2rem 0 3rem;
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height) - 120px);
}

/* Each section block becomes a card */
.contenido-terminos .contenedor-seccion {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem 2rem 1.5rem !important;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--primary);
}

/* Section heading (h2 in seccion.php) */
.contenido-terminos .content-box>h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-border);
}

/* Override CKEditor inline gray on spans */
.contenido-terminos span[style*="color"] {
  color: inherit !important;
}

/* Base typography for rich content */
.contenido-terminos .descripcion,
.contenido-terminos .descripcion-seccion {
  color: var(--gray);
  font-size: var(--text-base);
  line-height: 1.8;
}

.contenido-terminos .descripcion p,
.contenido-terminos .descripcion-seccion p {
  margin-bottom: 0.85rem;
}

.contenido-terminos .descripcion ol,
.contenido-terminos .descripcion ul,
.contenido-terminos .descripcion-seccion ol,
.contenido-terminos .descripcion-seccion ul {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}

.contenido-terminos .descripcion li,
.contenido-terminos .descripcion-seccion li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.contenido-terminos .descripcion strong,
.contenido-terminos .descripcion-seccion strong {
  color: var(--navy);
  font-weight: 700;
}

/* Content card (disenio titles inside grid) */
.contenido-terminos .caja-contenido-simple>h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

/* Images in content columns */
.contenido-terminos .imagen-contenido {
  margin-bottom: 1rem;
}

/* ============================================================
   INVITADOS PAGE
   ============================================================ */

/* Quota tracker card */
.inv-quota-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(18, 29, 66, 0.08);
  border: 1px solid rgba(35, 52, 108, 0.1);
  padding: 1.5rem;
}

.inv-page-shell {
  max-width: 1120px;
}

.jugar-body--inv {
  min-height: auto;
  padding: 1.5rem 0 2rem;
}

.inv-layout {
  align-items: flex-start;
}

.inv-card--history {
  min-height: 100%;
}

.inv-quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.inv-quota-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 52, 108, 0.18);
  background: rgba(35, 52, 108, 0.05);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
}

.inv-quota-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin: 0;
}

.inv-quota-slots {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.inv-quota-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.inv-quota-slot__circle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 2px dashed var(--gray-border);
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #c4ccd5;
  transition: all 0.2s ease;
}

.inv-quota-slot--used .inv-quota-slot__circle {
  border-style: solid;
  border-color: var(--navy);
  background: linear-gradient(140deg, #23346c 0%, #17244f 100%);
  color: #c8efff;
  box-shadow: 0 8px 16px rgba(35, 52, 108, 0.22);
}

.inv-quota-slot__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca8b8;
}

.inv-quota-slot--used .inv-quota-slot__label {
  color: var(--navy);
}

.inv-quota-slot--registered .inv-quota-slot__circle {
  border-style: solid;
  border-color: #1a7f4b;
  background: linear-gradient(140deg, #1a7f4b 0%, #135c36 100%);
  color: #c8f5df;
}

.inv-quota-slot--registered .inv-quota-slot__label {
  color: #1a7f4b;
}

.inv-quota-note {
  font-size: var(--text-sm);
  color: var(--gray-mid);
  margin: 0;
  line-height: 1.55;
}

.inv-expired-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.8rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #9ca8b8;
}

/* Invitation form / list card */
.inv-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(19, 33, 77, 0.08);
  border: 1px solid rgba(35, 52, 108, 0.1);
  overflow: hidden;
}

.inv-card--muted {
  border-style: dashed;
  box-shadow: none;
}

.inv-card__header {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(35, 52, 108, 0.09);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(180deg, rgba(35, 52, 108, 0.04) 0%, rgba(35, 52, 108, 0.01) 100%);
}

.inv-card__header-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(35, 52, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--navy);
  flex-shrink: 0;
}

.inv-card__header h5 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.inv-card__body {
  padding: 1.25rem;
}

/* Info note inside form */
.inv-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--navy-soft);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--navy);
  line-height: 1.6;
}

.inv-form .invalid-feedback {
  font-size: 0.74rem;
}

.inv-empty-copy {
  font-size: var(--text-sm);
  color: var(--gray-mid);
  line-height: 1.65;
}

.inv-info-note i {
  color: var(--primary-dark);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.8rem;
}

/* History table */
.inv-table {
  width: 100%;
  font-size: var(--text-sm);
}

.inv-table thead th {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7488;
  padding: 0.72rem 1.1rem;
  border-bottom: 1px solid rgba(35, 52, 108, 0.12);
  background: #f5f8fc;
}

.inv-table tbody td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(35, 52, 108, 0.1);
  color: #3f4a5e;
  vertical-align: middle;
}

.inv-table tbody tr:last-child td {
  border-bottom: none;
}

.inv-table tbody tr:hover td {
  background: #f9fbff;
}

/* Status badges */
.inv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.58rem;
  border-radius: 11px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.inv-badge--pending {
  background: rgba(255, 193, 7, 0.13);
  color: #8a6500;
}

.inv-badge--done {
  background: var(--green-soft);
  color: #3d6610;
}

.inv-badge--expired {
  background: var(--navy-soft);
  color: var(--navy);
}

/* registro.php — welcome banner */
.inv-register-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  background: #f3f7fc;
  border: 1px solid rgba(35, 52, 108, 0.1);
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.inv-register-banner__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #23346c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #d8f4ff;
  flex-shrink: 0;
}

.inv-register-banner__text {
  font-size: 0.87rem;
  color: #2e3a52;
  line-height: 1.55;
  margin: 0;
}

.inv-register-banner__text strong {
  font-weight: 700;
}

/* Form section divider */
.inv-form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.25rem;
}

.inv-form-divider__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  white-space: nowrap;
}

.inv-form-divider__line {
  flex: 1;
  height: 1px;
  background: var(--gray-border);
}

.inscripcion-section--invitado {
  background:
    radial-gradient(circle at 12% 15%, rgba(102, 217, 255, 0.12), transparent 45%),
    radial-gradient(circle at 90% 8%, rgba(35, 52, 108, 0.07), transparent 42%),
    linear-gradient(180deg, #f2f6fb 0%, #f8fafd 100%);
}

.inscripcion-card--invitado {
  border: 1px solid rgba(35, 52, 108, 0.1);
  box-shadow: 0 20px 42px rgba(18, 30, 66, 0.14);
}

.inscripcion-card--invitado .inscripcion-card__header {
  border-bottom: 1px solid rgba(102, 217, 255, 0.3);
  padding-bottom: 1.25rem;
}

.inv-register-title {
  margin: 0.95rem 0 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.inv-register-subtitle {
  margin: 0.35rem auto 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.55;
}

.inv-register-form .inscripcion-label {
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.inv-register-form .inscripcion-input {
  border-color: rgba(35, 52, 108, 0.16);
  border-radius: 10px;
}

.inv-register-form .inscripcion-input:focus {
  border-color: #7ecff0;
  box-shadow: 0 0 0 3px rgba(126, 207, 240, 0.2);
}

.inv-input-help {
  margin-top: 0.45rem;
  font-size: 0.73rem;
  color: var(--gray-mid);
}

.inv-terms-check {
  /* padding: 0.6rem 0.75rem;
  border: 1px solid rgba(35, 52, 108, 0.11); */
  border-radius: 10px;
  /* background: #f7f9fc; */
}

.inv-terms-check .form-check-input {
  margin-top: 0.1rem !important;
}

@media (max-width: 767.98px) {
  .jugar-body--inv {
    padding: 1rem 0 1.5rem;
  }

  .inv-quota-slots {
    justify-content: space-between;
  }

  .inv-card__body,
  .inv-table thead th,
  .inv-table tbody td {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .inv-register-title {
    font-size: 1.15rem;
  }

  .inscripcion-terms-box {
    font-size: 11px;
  }
}

@media (min-width: 1200px) {
  .inv-page-shell .inv-table {
    table-layout: fixed;
  }

  .inv-page-shell .inv-table th:nth-child(1),
  .inv-page-shell .inv-table td:nth-child(1) {
    width: 20%;
  }

  .inv-page-shell .inv-table th:nth-child(2),
  .inv-page-shell .inv-table td:nth-child(2) {
    width: 42%;
  }

  .inv-page-shell .inv-table th:nth-child(3),
  .inv-page-shell .inv-table td:nth-child(3) {
    width: 20%;
  }

  .inv-page-shell .inv-table th:nth-child(4),
  .inv-page-shell .inv-table td:nth-child(4) {
    width: 18%;
  }
}

.contenido-terminos .imagen-contenido img {
  box-shadow: var(--shadow-md);
}

.contenedor-clasificacion {
  background: #FFF;
  padding: 2rem 0 3rem;
  min-height: calc(100vh - var(--global-header-height) - var(--global-footer-height) - 120px);
}

/* ============================================================
   SELECT2 — sobrescritura para coincidir con .ganador
   ============================================================ */
.select2-container--default .select2-selection--single {
  height: auto;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  font-size: var(--text-sm);
  color: var(--gray);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--gray);
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--gray-mid);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--gray-mid) transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--gray-mid) transparent;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 217, 255, 0.18);
  outline: none;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: var(--gray-light);
  opacity: 0.7;
  cursor: default;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
  color: var(--gray-mid);
}

.select2-dropdown {
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
  z-index: 9999;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: var(--text-sm);
  outline: none;
}

.select2-container--default .select2-results__option {
  padding: 0.45rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--gray);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background-color: var(--navy);
  color: var(--white);
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: var(--primary-soft);
  color: var(--gray);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--gray-mid);
  font-size: 1rem;
  margin-right: 16px;
  margin-top: -3px;
}

/* ============================================================
   DEADLINE ALERT — aviso de cierre de selecciones
   ============================================================ */
.deadline-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-soft);
  border: 1px solid rgba(118, 183, 43, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: var(--text-sm);
}

.deadline-alert__dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: dlPulse 2s ease-in-out infinite;
}

.deadline-alert__label {
  opacity: .65;
}

.deadline-alert__badge {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(118, 183, 43, 0.15);
  color: #558e13;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

@keyframes dlPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(118, 183, 43, .5);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(118, 183, 43, 0);
  }
}

/* ===== NOTICIAS MUNDIAL ===== */
.noticias-mundial {
  /* padding: 2.5rem 0 3rem; */
  padding-bottom: 3rem;
}

.noticias-mundial__titulo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.noticias-mundial__titulo span {
  color: var(--primary);
}

/* Card: imagen de fondo con overlay editorial */
.noticia-card {
  position: relative;
  display: block;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2450 100%);
  box-shadow: 0 4px 20px rgba(35, 52, 108, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(35, 52, 108, 0.28);
  color: #fff;
}

/* Imagen de fondo */
.noticia-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.noticia-card:hover .noticia-card__bg {
  transform: scale(1.06);
}

/* Gradiente oscuro sobre la imagen */
.noticia-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 16, 48, 0.96) 0%,
      rgba(10, 16, 48, 0.55) 45%,
      rgba(10, 16, 48, 0.10) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.1rem 1rem;
  transition: background 0.28s ease;
}

.noticia-card:hover .noticia-card__overlay {
  background: linear-gradient(to top,
      rgba(10, 16, 48, 0.98) 0%,
      rgba(10, 16, 48, 0.65) 50%,
      rgba(10, 16, 48, 0.15) 100%);
}

/* Fecha */
.noticia-card__date {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  display: block;
}

/* Título */
.noticia-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.noticia-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.noticia-card:hover .noticia-card__cta {
  opacity: 1;
  transform: translateY(0);
}