/* =========================================================================
   SUBURBIA FOLIO V4 - styles.css — v4.4
   -------------------------------------------------------------------------
   ARCHIVO MAESTRO DE DISENHO para el sitio publico (home.php + juego.php)
   y el panel de administracion (manager/dashboard.php).

   Esta organizado por SECCIONES con comentarios grandes para que un
   disenhador grafico pueda encontrar rapido lo que quiere editar:

     1. VARIABLES    - colores, tamanhos y tipografia base (paleta V4)
     2. RESET        - limpieza de estilos default del navegador
     3. UTILIDADES   - titulos, parrafos, botones genericos, loader
     4. NAVBAR       - barra morada superior
     5. HERO         - banner principal con modelo y texto gigante
     6. MECANICA     - 4 cartas de pasos
     7. CALENDARIO   - fondo verde tipo brochazo con fechas
     8. REGISTRO     - formulario de folio
     9. PREMIOS      - fondo cancha con banderas + ganadores
    10. VERIFICA     - fondo morado con cartas decorativas
    11. FAQ          - accordion de preguntas
    12. FOOTER       - pie de pagina rosa
    13. ANIMACIONES  - aparicion con scroll
    14. MANAGER      - estilos del dashboard admin
    15. RESPONSIVE   - ajustes mobile-first (breakpoints)
   ========================================================================= */


/* =========================================================================
   0. FUENTE CUSTOM: Oscine Bold (textos generales, NO títulos)
   ========================================================================= */
@font-face {
  font-family: 'Oscine';
  src: url('../fuentes/Oscine_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OscineRegular';
  src: url('../fuentes/Oscine_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Breakers';
  src: url('../fuentes/Breakers_Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================================================
   1. VARIABLES (paleta V4 y tamanhos)
   Cambia aqui los colores y se propagan a todo el sitio.
   ========================================================================= */
:root {
  --sub-morado-oscuro: #3D1A4E;
  --sub-morado-mid:    #2A0F3A;
  --sub-rosa:          #E51790;
  --sub-rosa-dark:     #C6137B;
  --sub-rosa-light:    #FF89CE;
  --sub-verde-cesped:  #2D7D3F;
  --sub-verde-brocha:  #5DB54A;
  --sub-blanco:        #FFFFFF;
  --sub-gris-texto:    #4F4F4F;
  --sub-texto-oscuro:  #2B1534;
  --sub-fondo-light:   #F7F3FA;

  --sub-font:          'Breakers', sans-serif;
  --sub-radio-card:    14px;
  --sub-radio-input:   30px;
  --sub-radio-boton:   30px;
  --sub-sombra-card:   0 10px 24px rgba(61, 26, 78, 0.18);
  --sub-sombra-boton:  0 6px 14px rgba(229, 23, 144, 0.30);

  /* Fuente para textos generales (párrafos, labels, botones, links).
     Títulos (h1-h3, .titulo-sub) usan --sub-font (Breakers). */
  --sub-font-body:     'OscineRegular', sans-serif;
}


/* =========================================================================
   2. RESET + base
   ========================================================================= */
* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  background: var(--sub-morado-oscuro);
}
body {
  font-family: var(--sub-font-body);
  font-size: 1.2rem;
  background: var(--sub-morado-oscuro);
  color: var(--sub-gris-texto);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}
main { margin: 0; padding: 0; }

/* Títulos conservan Poppins */
h1, h2, h3, h4, h5, h6,
.titulo-sub,
.titulo-sub-blanco,
.ganadores-titulo,
.premios-titulo-pill,
.hero-main-heading {
  font-family: var(--sub-font);
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

/* Contenedores de texto: siempre permitir crecimiento vertical y corte
   limpio de palabras largas para EVITAR textos cortados en mobile.
   Si agregas un .card-*, .caja-*, seccion, etc., hereda este comportamiento. */
section,
.container,
.card-paso,
.caja-verifica,
.calendario-caja,
.calendario-contenido,
.premios-contenido,
.accordion-sub,
.footer-sub,
.login-container,
.card-paso-titulo,
.card-paso-texto,
.titulo-sub,
.texto-intro {
  height: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}


/* =========================================================================
   3. UTILIDADES: titulos, parrafos, botones, loader
   ========================================================================= */
.titulo-sub {
  font-family: var(--sub-font);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--sub-rosa);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}
.titulo-sub-blanco { color: var(--sub-blanco); }

.texto-intro {
  color: var(--sub-gris-texto);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
}

.btn-sub-rosa {
  display: inline-block;
  background: var(--sub-rosa);
  color: var(--sub-blanco) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 2.6rem;
  border: none;
  border-radius: var(--sub-radio-boton);
  box-shadow: var(--sub-sombra-boton);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-sub-rosa:hover {
  background: var(--sub-rosa-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229, 23, 144, 0.40);
}
.btn-sub-rosa:active,
.btn-sub-rosa:focus,
.btn-sub-rosa:active:focus {
  background: #f04aaf !important;
  color: var(--sub-blanco) !important;
  box-shadow: 0 4px 12px rgba(229, 23, 144, 0.30) !important;
  outline: none;
}

.btn-sub-rosa-dark {
  display: inline-block;
  background: var(--sub-rosa-dark);
  color: var(--sub-blanco) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 2.6rem;
  border: none;
  border-radius: var(--sub-radio-boton);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn-sub-rosa-dark:hover {
  background: var(--sub-rosa);
  transform: translateY(-2px);
}

#loaderOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 20, 60, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
#loaderOverlay .center-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader-content { text-align: center; }
.spinner {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(255,255,255,0.25);
  border-top-color: var(--sub-rosa);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  color: var(--sub-blanco);
  font-weight: 600;
  letter-spacing: 0.05em;
}


/* =========================================================================
   4. NAVBAR (morado oscuro V4)
   ========================================================================= */
.nav-sub {
  background: var(--sub-morado-oscuro) !important;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  margin: 0 !important;
  border: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: sticky;
  top: -2px;
  z-index: 1030;
  outline: 0 !important;
}
.nav-sub::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--sub-morado-oscuro);
  z-index: -1;
}
.nav-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--sub-morado-oscuro);
  pointer-events: none;
}
.nav-logo { max-height: 40px; width: auto; }
.nav-sub,
.nav-sub .container,
.nav-sub .navbar-collapse,
.nav-sub .navbar-nav {
  background: var(--sub-morado-oscuro) !important;
  border: none !important;
  box-shadow: none !important;
}
.nav-link-sub,
.navbar-nav .nav-link.nav-link-sub {
  color: var(--sub-blanco) !important;
  font-family: var(--sub-font-body) !important;
  font-weight: 400 !important;
  font-size: 1.05rem;
  padding: 0.5rem 0.9rem !important;
  opacity: 0.92;
  transition: opacity .2s ease, color .2s ease;
}
.nav-link-sub:hover,
.navbar-nav .nav-link.nav-link-sub:hover {
  color: var(--sub-rosa-light) !important;
  font-weight: 400 !important;
  opacity: 1;
}
.navbar-toggler { border: 1px solid rgba(255,255,255,0.4); }
.navbar-toggler-icon { filter: invert(1) brightness(2); }


/* =========================================================================
   5. HERO (imagen con modelo y cartas ya integrados en hero.jpg)
   ========================================================================= */
.hero-sub {
  position: relative;
  background: linear-gradient(180deg, var(--sub-morado-oscuro) 0%, var(--sub-morado-mid) 100%);
  height: auto;
  margin-top: -3px;
  overflow: visible;
}
.hero-img { width: 100%; height: auto; display: block; object-fit: cover; }
.hero-legal {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #552166;
  max-width: 90%;
  padding: 0.4rem 1rem;
  height: auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-legal a { 
  color: #552166; 
  text-decoration: underline; 
  font-weight: 700;
}

/* Heading "ganacredito suburbia" floating over the hero image */
.hero-main-heading {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--sub-font);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--sub-blanco);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-shadow: 0 4px 20px rgba(0,0,0,0.45);
  z-index: 2;
  margin: 0;
  padding: 0 1rem;
}


/* =========================================================================
   6. MECANICA (4 cartas de pasos)
   ========================================================================= */
.seccion-mecanica {
  padding: 80px 20px;
  background: var(--sub-blanco);
  overflow-x: hidden;
}
.seccion-mecanica .container {
  max-width: 1200px !important;
  padding: 0 15px;
}
.seccion-mecanica .row {
  justify-content: center;
  --bs-gutter-x: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

.card-paso {
  border-radius: var(--sub-radio-card);
  padding: 0;
  color: var(--sub-blanco);
  min-height: auto;
  text-align: center;
  position: relative;
  box-shadow: none; /* Removing shadow optionally if bg is transparent but matching "no background" style */
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  
  /* Background completely transparent */
  background-image: none;
  background-color: transparent;
  border: none;
}
.card-paso:hover { 
  transform: translateY(-6px);
}

.card-paso-icono {
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)) !important;
}
.card-paso-titulo {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
  text-transform: none;
}
.card-paso-texto {
  font-size: 0.8rem; font-weight: 600;
  line-height: 1.45;
  margin: 0;
  opacity: 0.95;
  font-weight: 400;
}

/* Bootstrap col-12 / col-lg-3 maneja el grid: 1 columna mobile, 4 desktop */


/* =========================================================================
   7. CALENDARIO (fondo verde brochazo + caja blanca con fechas)
   ========================================================================= */
.seccion-calendario {
  position: relative;
  display: block;
  padding: 0;
  line-height: 0;
}
.seccion-calendario picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.calendario-fondo {
  width: 100%;
  height: auto;
  display: block;
  position: static;
}
.calendario-contenido {
  display: none;
}
.calendario-sub {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--sub-blanco);
  font-weight: 500;
}
.calendario-caja {
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  background: rgba(45, 125, 63, 0.4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  max-width: 800px;
  margin: 0 auto;
}
.calendario-fechas {
  font-size: 1.4rem; /* Aumentado significativamente */
  font-weight: 700;
  color: var(--sub-blanco);
  margin: 0.5rem 0;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}


/* =========================================================================
   8. REGISTRO (form con folio + correo + checkboxes + boton Jugar)
   ========================================================================= */
.seccion-registro {
  padding: 70px 20px 70px 20px;
  background: var(--sub-blanco);
}
.form-registro { max-width: 620px; margin: 0 auto; }
.form-label-sub {
  font-size: 1.18rem;
  color: var(--sub-gris-texto);
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: block;
}
.form-sub {
  border: 1px solid #CFCFCF;
  border-radius: var(--sub-radio-input);
  padding: 0.75rem 1.2rem;
  font-size: 1.1rem;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-sub:focus {
  outline: none;
  border-color: var(--sub-rosa);
  box-shadow: 0 0 0 3px rgba(229, 23, 144, 0.15);
}
.form-sub-readonly {
  background-color: #E2E2E2 !important;
  color: #444 !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
  user-select: none;
}
.input-con-ayuda {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.input-con-ayuda > .form-sub {
  flex: 1;
  min-width: 0;
}
.help-popup-container {
  position: relative;
  flex-shrink: 0;
}
.help-icon {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.help-icon-img { width: 34px; height: 34px; }
.help-tooltip {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(100% + 12px);
  right: auto;
  background: var(--sub-blanco);
  border: 2px solid var(--sub-rosa);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  color: var(--sub-gris-texto);
  width: 240px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  z-index: 10;
  line-height: 1.4;
}
.help-tooltip.show { display: block; }

.check-sub {
  border: 2px solid var(--sub-rosa);
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.2rem;
  cursor: pointer;
}
.check-sub:checked { background-color: var(--sub-rosa); border-color: var(--sub-rosa); }
.texto-check {
  font-size: 1.22rem;
  color: var(--sub-gris-texto);
  margin-left: 0.4rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.link-check { color: var(--sub-rosa); text-decoration: underline; }
.texto-check-bases {
  white-space: normal;
  font-size: 1.22rem;
}
.msg-error { color: var(--sub-rosa-dark); font-size: 0.8rem; display: block; margin-top: 0.3rem; }

.btn-sub-jugar {
  font-family: var(--sub-font);
  font-size: 2.1rem;
  padding: 1rem 4rem;
  min-width: 220px;
  border-radius: 8px;
}


/* =========================================================================
   9. PREMIOS + GANADORES (cancha verde con banderas y fechas)
   ========================================================================= */
.seccion-premios {
  position: relative;
  background: var(--sub-verde-cesped);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seccion-premios picture {
  width: 100%;
  display: block;
}
.premios-fondo {
  width: 100%;
  height: auto;
  display: block;
  position: static;
}
.premios-contenido {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  color: var(--sub-blanco);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.premios-titulo-pill {
  display: inline-block;
  background: var(--sub-morado-oscuro);
  color: var(--sub-blanco);
  font-weight: 800;
  font-size: 1.6rem; /* Aumentado */
  padding: 0.6rem 2.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.banderas-container {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.bandera-item {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
  border-radius: 0;
  border: none;
  background: none;
  margin-left: -15px;
  margin-right: -15px;
  position: relative;
}
.bandera-item:nth-child(2) { z-index: 2; }
.bandera-item:nth-child(1) { z-index: 1; }
.bandera-item:nth-child(3) { z-index: 3; }
.btn-conoce { margin-bottom: 0.5rem; margin-top: -1rem; }
.ganadores-bloque {
  margin-top: 3rem;
  color: var(--sub-blanco);
}
.ganadores-titulo {
  font-size: 3.5rem; /* Aumentado sustancialmente */
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.ganadores-texto {
  font-size: 1.8rem; /* Aumentado */
  font-weight: 700;
  line-height: 1.3;
}


/* =========================================================================
  10. VERIFICA FOLIO (morado + cartas decorativas + caja rosa)
   ========================================================================= */
.seccion-verifica {
  position: relative;
  background: var(--sub-morado-oscuro);
  padding: 80px 20px 90px 20px;
  height: auto;
  min-height: 300px;
  overflow: hidden;
}
.verifica-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cartas-decor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  pointer-events: none;
  opacity: 0.85;
  z-index: 2;
}
.verifica-container {
  position: relative;
  z-index: 2;
}
.cartas-decor-left  { left: 2%; }
.cartas-decor-right { right: 2%; }
.carta-decor {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}
.carta-decor-1 { transform: rotate(-8deg); }
.carta-decor-2 { transform: rotate(6deg) translateX(-30px); }

.caja-verifica {
  max-width: 480px;
  background: transparent;
  border-radius: 16px;
  padding: 2rem 1.8rem;
  color: var(--sub-blanco);
  text-align: center;
  box-shadow: none;
  position: relative;
  z-index: 2;
}
.caja-verifica-titulo { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem 0; }
.caja-verifica-sub    { font-size: 1.2rem; margin-bottom: 1.2rem; opacity: 0.95; }
.form-verifica {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.form-sub-verifica {
  background: var(--sub-blanco);
  color: var(--sub-texto-oscuro);
  text-align: center;
  font-weight: 600;
  max-width: 300px;
  margin: 0 auto;
}
.btn-verificar {
  margin-top: 0.8rem;
  background-color: var(--sub-blanco);
  color: var(--sub-rosa-dark);
  font-family: var(--sub-font);
  font-size: 2.1rem;
  font-weight: 800;
  padding: 0.6rem 3rem;
  border-radius: 8px;
  border: none;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-verificar:hover {
  background-color: #f0f0f0;
  color: var(--sub-rosa-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-verificar:active,
.btn-verificar:focus,
.btn-verificar:active:focus {
  background-color: #e6e6e6 !important;
  color: var(--sub-rosa-dark) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
  outline: none;
}
.caja-verifica-pie {
  font-size: 1.18rem;
  margin-top: 1.2rem;
  opacity: 0.9;
  line-height: 1.4;
}
.status-box {
  background: var(--sub-blanco);
  color: #8CC63F;
  text-align: center;
  font-weight: 600;
  max-width: 300px;
  margin: 0.8rem auto 0 auto;
  border: 1px solid #CFCFCF;
  border-radius: var(--sub-radio-input);
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  display: block;
}


/* =========================================================================
  11. FAQ (accordion)
   ========================================================================= */
.seccion-faq {
  padding: 70px 20px 60px 20px;
  background: var(--sub-blanco);
}
.accordion-sub { max-width: 820px; margin-top: 1.5rem; }
.accordion-sub .accordion-item {
  border: none;
  border-bottom: 2px solid #555;
  background: transparent;
}
.accordion-sub .accordion-button {
  background: transparent;
  color: var(--sub-texto-oscuro);
  font-family: 'Oscine', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.35rem;
  padding: 1rem 0.5rem;
  box-shadow: none;
}
.accordion-sub .accordion-button:not(.collapsed) {
  color: var(--sub-rosa);
  background: transparent;
}
.accordion-sub .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(27%) sepia(86%) saturate(3000%) hue-rotate(300deg);
}
.accordion-sub .accordion-body {
  color: var(--sub-gris-texto);
  font-size: 1.12rem;
  font-weight: normal !important;
  padding: 0 0.5rem 1rem 0.5rem;
}


/* =========================================================================
  12. FOOTER (rosa Suburbia)
   ========================================================================= */
.footer-sub {
  background: #4d4d4d;
  color: var(--sub-blanco);
  padding: 1.2rem 0 0.8rem 0;
}
.footer-legales {
  font-size: 1.05rem;
  margin: 0 0 0.8rem 0;
  line-height: 1.5;
  opacity: 0.95;
}
.link-footer { color: var(--sub-blanco); text-decoration: none; }
.link-footer:hover { text-decoration: underline; }
.footer-socials { display: flex; justify-content: center; gap: 0.8rem; }
.footer-social-icon {
  width: 28px;
  height: 28px;
  transition: transform .2s ease;
}
.footer-social-icon:hover { transform: scale(1.12); }


/* =========================================================================
   13. ANIMACIONES (aparicion con scroll)
   ========================================================================= */
.animatable {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}
.moveUp { transform: translateY(40px); }
.visible { opacity: 1; transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Animaciones para banderas */
.flag-enter-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.flag-enter-bottom { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.flag-enter-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }

.flag-visible { opacity: 1; transform: translate(0, 0); }

.flag-delay-1 { transition-delay: 0.2s; }
.flag-delay-2 { transition-delay: 0.4s; }
.flag-delay-3 { transition-delay: 0.6s; }



/* =========================================================================
  14. MANAGER (dashboard admin)
   ========================================================================= */
.bg-suburbia { background: var(--sub-rosa); }
.bg-gray     { background: var(--sub-gris-texto); }

#tablaRegistros {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 0.88rem;
}
#tablaRegistros thead th {
  background: var(--sub-gris-texto);
  color: var(--sub-blanco);
  padding: 0.75rem 0.6rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
#tablaRegistros tbody td {
  padding: 0.6rem;
  border-bottom: 1px solid #EAE3EE;
}
#tablaRegistros tbody tr:hover { background: var(--sub-fondo-light); }
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #CFCFCF;
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  margin-left: 0.4rem;
}


/* Botón del login del Manager (rosa Suburbia) */
.btn-form-suburbia {
  background: var(--sub-rosa);
  color: var(--sub-blanco);
  font-weight: 600;
  border: none;
  border-radius: var(--sub-radio-boton);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  transition: background .2s ease, transform .18s ease;
  cursor: pointer;
}
.btn-form-suburbia:hover {
  background: var(--sub-rosa-dark);
  color: var(--sub-blanco);
  transform: translateY(-2px);
}


/* Desktop: texto bases en una sola línea */
@media (min-width: 992px) {
  .texto-check-bases { white-space: nowrap; }
}

/* =========================================================================
  15. RESPONSIVE (mobile-first ajustes)
   ========================================================================= */
@media (max-width: 991px) {
  .titulo-sub { font-size: 2.2rem; }
  .nav-sub .navbar-collapse {
    background: var(--sub-morado-oscuro);
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    margin-top: 0.5rem;
  }
  .seccion-mecanica { padding: 60px 15px; }
  .seccion-registro  { padding: 60px 15px; }
  .seccion-faq       { padding: 60px 15px 50px; }
  .form-registro { max-width: 100%; }
  .card-paso-icono { width: 140px; height: 140px; }
}

@media (max-width: 767px) {
  /* Tipografía */
  .titulo-sub  { font-size: 2.2rem; }
  .texto-intro { font-size: 1.18rem; }

  /* Secciones — padding reducido */
  .seccion-mecanica  { padding: 40px 4px; overflow: hidden; }
  .seccion-mecanica .container { padding-left: 4px; padding-right: 4px; max-width: 100%; }
  .seccion-registro  { padding: 50px 12px; }
  .seccion-faq       { padding: 50px 12px 40px; }
  .form-registro     { max-width: 100%; }

  /* Mecánica — tarjetas más grandes en mobile */
  .seccion-mecanica .row { --bs-gutter-x: 0.6rem; --bs-gutter-y: 1rem; margin-left: 0; margin-right: 0; }
  .seccion-mecanica .row > [class*="col"] { padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); }
  .card-paso         { min-height: auto; padding: 0; margin-bottom: 0; }
  .card-paso-icono   { width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
  .card-paso-titulo  { font-size: 1.3rem; }
  .card-paso-texto   { font-size: 1rem; }

  /* Hero */
  .hero-sub   { min-height: auto; }
  .hero-legal { font-size: 0.62rem; bottom: 10px; max-width: 96%; padding: 0 0.5rem; }

  /* Botones Jugar y Verificar */
  .btn-sub-jugar, .btn-verificar { font-size: 1.7rem !important; padding: 0.85rem 2.5rem; min-width: 160px; }

  /* Premios mobile — bg-premios.jpg (sin círculos) cubre la sección con object-fit */
  .seccion-premios { min-height: 420px; }
  .seccion-premios picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .premios-fondo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .banderas-container { display: flex; gap: 0; margin-bottom: 1.5rem; }
  .bandera-item   { width: 70px; height: 70px; margin-left: -10px; margin-right: -10px; }
  .btn-conoce     { font-size: 0.95rem; padding: 0.75rem 1.8rem; }

  /* Ganadores mobile — la imagen se muestra completa sin recorte */
  #ganadores { min-height: auto; }
  #ganadores picture {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
  }
  #ganadores .premios-fondo {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  /* Verifica — mobile: background-image approach so content drives height */
  .cartas-decor      { display: none; }
  .seccion-verifica  { padding: 0; min-height: auto; display: flex; align-items: center; justify-content: center; position: relative; }
  .seccion-verifica picture { display: none; }
  .seccion-verifica  {
    background-image: url('../imagenes/bg-jugar-r.jpg');
    background-size: cover;
    background-position: center;
    padding: 2rem 1rem;
  }
  .caja-verifica-titulo, .caja-verifica-sub, .caja-verifica-pie { font-size: 1.18rem !important; }
  .verifica-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }
  .seccion-verifica h2.titulo-sub { font-size: 2.2rem; margin-bottom: 0.4rem; }
  .caja-verifica     { padding: 0.8rem 1rem; max-width: 80%; margin: 0 auto; }
  .form-sub-verifica    { padding: 0.4rem 0.8rem; font-size: 0.9rem; font-weight: 600; }

  /* Tooltip en mobile — va abajo porque a la derecha no hay espacio */
  .help-tooltip {
    top: calc(100% + 10px);
    transform: none;
    left: auto;
    right: 0;
    width: min(240px, 80vw);
  }

  /* Checkbox bases — vuelve a multilinea en pantallas chicas */
  .texto-check-bases { white-space: normal;  }

  /* Footer */
  .footer-legales { font-size: 1.05rem; line-height: 1.7; }

  /* Manager tabla */
  #tablaRegistros thead th { font-size: 0.7rem;  padding: 0.5rem 0.4rem; }
  #tablaRegistros tbody td { font-size: 0.78rem; padding: 0.45rem 0.4rem; }
}

/* Pantallas muy pequeñas */
@media (max-width: 400px) {
  .card-paso-icono { width: 100%; max-width: 160px; height: auto; }
  .bandera-item   { width: 55px; height: 55px; }
  .btn-sub-jugar  { min-width: 140px; padding: 0.8rem 1.8rem; }
  .caja-verifica  { padding: 1.2rem 1rem; }
}
@media (min-width: 1200px) {
  .titulo-sub { font-size: 2.6rem; }
  .texto-intro { max-width: 900px; }
  .card-paso { min-height: 400px; padding: 2rem; transform: scale(1.15); }
  .card-paso:hover { transform: scale(1.15) translateY(-8px); }
  .card-paso-icono { width: 260px; height: 260px; margin-bottom: 1rem; }
  .card-paso-titulo { font-size: 2.2rem; margin-bottom: 0; }
  .bandera-item { width: 140px; height: 140px; }
  .hero-main-heading { font-size: 3.2rem; top: 24px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .texto-intro { max-width: 820px; }
}

/* Scroll to top button */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background-color: var(--sub-morado-oscuro);
  color: var(--sub-blanco);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}
.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
}
.btn-scroll-top:hover {
  transform: translateY(-4px);
  background-color: var(--sub-morado-mid);
}

@media (max-width: 767px) {
  .btn-scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
