* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===== BASE ===== */
body {
  margin: 0;
  background: #f8fafc;
  color: #11111120;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== TOP BAR ===== */

.top-bar {
  background: linear-gradient(90deg, #0A1FFF, #FF2DAA);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 0px;
  text-align: center;
  letter-spacing: 1px;
}


.top-bar-content {
  line-height: 0.5;
}

.top-line {
  font-size: 14px;
  font-weight: 700;
}

.top-main {
  font-size: 22px;
  font-weight: 900;
}

.top-sub {
  font-size: 13px;
  font-weight: 600;
}

/* ===== HEADER ===== */
.main-header {
  background: #000;
  padding: 4px 0;
  text-align: center;
}

.logo-box {
  color: #fff;
}

.logo-text {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 3px;
}

.logo-highlight {
  font-size: 48px;
  font-weight: bold;
  color: hsl(253, 89%, 52%);
  margin-left: 10px;
}

.slogan {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;

  background: linear-gradient(90deg, #ff0000, #ffcc00, #00ffcc, #00aaff, #ff00ff);
  background-size: 300%;

  background-clip: text;
  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  animation: brillo 4s linear infinite;
}

@keyframes brillo {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 300%;
  }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, .6),
      rgba(0, 0, 0, .6)), url("../images/banner.jpg") center/cover;
  padding: 3px 0 50px 0;
  color: #fff;
}

.hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-box h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-box p {
  max-width: 700px;
}

/* ===== IMÁGENES DEL SORTEO ===== */
.sorteo-imagen {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 600px;      /* misma altura para todas las imágenes */
  overflow: hidden;

  border: 4px solid #f700ff6c;     /* color brillante */
  border-radius: 20px;   /* 🔵 bordes redondeados */
  box-shadow: 0 0 20px #fb00ff;  /* efecto brillo */

}

.slide {
  width: 100%;
  height: 100%;       /* ocupa toda la altura del slider */
  object-fit: cover;  /* recorta la imagen sin deformarla */
  display: none;
}

.slide.active {
  display: block;
}

/* 📱 MÓVIL */
@media (max-width: 768px) {

  .slider{
    height: 280px;   /* altura menor en celular */
  }

  .galeria-sorteo {
    justify-content: flex-start;
    padding-left: 10px;
  }

  .galeria-sorteo img {
    max-width: 85%;
  }

}


/* ===== BOTONES ===== */
.btn-principal {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 15px;
}

.btn-principal:hover {
  background: #1e4ed8;
}

#btnComprar {
  margin: 20px auto 0;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  padding: 30px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

/* ===== FORM ===== */
input,
select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

select {
  background: #fff;
  cursor: pointer;
}

label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.total {
  font-weight: bold;
  margin: 15px 0;
}

/* ===== UTIL ===== */
.oculto {
  display: none;
}

/* ===== BARRA DE PROGRESO ===== */
.progreso-sorteo {
  margin: 25px auto;
  max-width: 420px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.progreso-sorteo h3 {
  margin-bottom: 8px;
  font-weight: bold;
}

.progreso-sorteo p {
  margin: 6px 0;
}

.barra {
  width: 100%;
  height: 16px;
  background: #ccc;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.barra-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c853, #ffeb3b, #ff5252);
  transition: width 0.6s ease;
}

.nota {
  font-size: 13px;
  opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */

/* 📱 CELULARES */
@media (max-width: 480px) {

  .container {
    width: 94%;
  }

  .top-main {
    font-size: 18px;
  }

  .top-sub {
    font-size: 12px;
  }

  .logo-text,
  .logo-highlight {
    font-size: 34px;
    letter-spacing: 2px;
  }

  .slogan {
    font-size: 12px;
  }

  .hero {
    padding: 3px 0 50px 0;
  }

  .hero-box h2 {
    font-size: 24px;
  }

  .hero-box p {
    font-size: 14px;
  }

  .card {
    padding: 20px;
    margin: 20px auto;
  }

  input,
  select {
    font-size: 14px;
    padding: 11px;
  }

  .btn-principal {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .nota {
    font-size: 12px;
  }
}

/* 📲 TABLETS */
@media (max-width: 768px) {

  .container {
    width: 92%;
  }

  .logo-text,
  .logo-highlight {
    font-size: 40px;
  }

  .hero-box h2 {
    font-size: 30px;
  }

  .card {
    padding: 25px;
  }
}

/* ===== CORRECCIÓN ESPACIO ANTES DEL FOOTER ===== */
main>*:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* foother*/

.footer {
  width: 100%;
  background: #383737;
  /* combina con tu fondo */
  color: #eee;
  margin-top: px;
}

.footer a {
  color: #4da3ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand h3 {
  margin: 0 0 8px;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

.footer-contact {
  text-align: right;
  font-size: 14px;
}

.footer-social {
  margin-top: 6px;
}

.footer-social a {
  margin-left: 12px;
  font-size: 14px;
}

.footer-bottom {
  background: #1f1f1f;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #aaa;
}


/* body*/

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;

  background: linear-gradient(270deg,
    #0f172a,
    #1e3a8a,
    #7c3aed,
    #ec4899,
    #f59e0b
  );

  background-size: 400% 400%;
  animation: fondoMove 12s ease infinite;

  color: #ffffff;
}

@keyframes fondoMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* impulso digital*/
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #555;
}

.footer-bottom .impulso-link {
  color: #1877f2;
  /* azul Facebook */
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom .impulso-link:hover {
  text-decoration: underline;
}


/* =========================
   CHECKOUT LAYOUT
========================= */

/* =========================
   CHECKOUT GRID PRINCIPAL
========================= */
/* =========================
   OVERLAY + CARD MÁS ELEGANTE
========================= */
.overlay {
  background: rgba(0, 0, 0, 0.65);
}

.card {
  max-width: 1200px;
  width: 96%;
  margin: 40px auto;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

/* =========================
   CHECKOUT ANCHO COMPLETO
========================= */
.checkout {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr;
  gap: 10px;
  align-items: flex-start;
}

/* =========================
   COLUMNA IZQUIERDA
========================= */
.checkout-left {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 1px 8px;
}

.checkout-left h2 {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

/* cada campo */
.field {
  display: flex;
  flex-direction: column;
}

/* campos largos */
.field.full {
  grid-column: 1 / -1;
}

/* labels */
.checkout-left label {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}

/* inputs elegantes */
.checkout-left input,
.checkout-left select {
  height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #6383b7;
  background: #dfe4e9;
  transition: all .2s ease;
}

/* placeholder */
.checkout-left input::placeholder {
  color: #000307;
}

/* focus bonito */
.checkout-left input:focus,
.checkout-left select:focus {
  outline: none;
  background: #fff;
  border-color: #7d6113;
  box-shadow: 0 0 0 3px rgba(124, 242, 194, .25);
}

/* =========================
   COLUMNA DERECHA (PEDIDO)
========================= */
.checkout-right {
  background: #f8fafc;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid #ac999f;
}

.checkout-right h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* pedido */
.pedido {
  border-bottom: none;
}

.pedido-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

/* método de pago */
.metodo-pago {
  background: #dad5ce;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.metodo-pago label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.metodo-pago p {
  margin-top: 6px;
  font-size: 12px;
  color: #555;
}

/* términos */
.terminos {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #301414;
  margin-bottom: 18px;
}

/* botón pagar */
.btn-pagar {
  width: 100%;
  height: 44px;
  background: #2f2f2f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-pagar:hover {
  background: #1f1f1f;
}

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

  .checkout-left {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }
}

/* busqueda numeros comprados */
.numeros-box{
display:flex;
flex-wrap:wrap;
gap:6px;
margin-top:10px;
}

.numero{
background:#1e1e1e;
padding:5px 8px;
border-radius:4px;
font-size:13px;
}


/* unout de colsulta co numero de  whsaapp */

#consultaWhatsapp{
width:250px;
max-width:90%;
padding:8px;
border-radius:6px;
border:none;
}


* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===== BASE ===== */
body {
  margin: 0;
  background: #f8fafc;
  color: #11111120;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: linear-gradient(90deg, #0A1FFF, #FF2DAA);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 0px;
  text-align: center;
  letter-spacing: 1px;
}

.top-bar-content {
  line-height: 0.5;
}

.top-line {
  font-size: 14px;
  font-weight: 700;
}

.top-main {
  font-size: 22px;
  font-weight: 900;
}

.top-sub {
  font-size: 13px;
  font-weight: 600;
}

/* ===== HEADER ===== */
.main-header {
  background: #000;
  padding: 4px 0;
  text-align: center;
}

.logo-box {
  color: #fff;
}

.logo-text {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 3px;
}

.logo-highlight {
  font-size: 48px;
  font-weight: bold;
  color: hsl(253, 89%, 52%);
  margin-left: 10px;
}

.slogan {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff0000, #ffcc00, #00ffcc, #00aaff, #ff00ff);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brillo 4s linear infinite;
}

@keyframes brillo {
  0% { background-position: 0%; }
  100% { background-position: 300%; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("../images/banner.jpg") center/cover;
  padding: 3px 0 50px 0;
  color: #fff;
}

.hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-box h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-box p {
  max-width: 700px;
}

/* ===== IMÁGENES DEL SORTEO ===== */
.sorteo-imagen {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slider {
  position: relative;
  width: 100%;
  max-width:600px;
  height: 600px;
  overflow: hidden;
  border: 4px solid #f700ff6c;
  border-radius: 20px;
  box-shadow: 0 0 20px #fb00ff;
}

/* .slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
} */

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center 0%; /* <- AÑADIDO: Sube el enfoque para que no recorte lo importante */
  display: none;
}

.slide.active {
  display: block;
}

/* 📱 MÓVIL SLIDER */
@media (max-width: 768px) {
  .slider {
    height: 280px;
  }
  .galeria-sorteo {
    justify-content: flex-start;
    padding-left: 10px;
  }
  .galeria-sorteo img {
    max-width: 85%;
  }
}

/* ===== BOTONES ===== */
.btn-principal {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 15px;
}

.btn-principal:hover {
  background: #1e4ed8;
}

#btnComprar {
  margin: 20px auto 0;
}

/* ===== CARDS GLOBAL ===== */
.card {
  background: #fff;
  padding: 30px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

/* ===== FORM ===== */
input, select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

select {
  background: #fff;
  cursor: pointer;
}

label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.total {
  font-weight: bold;
  margin: 15px 0;
}

/* ===== UTIL ===== */
.oculto {
  display: none;
}

/* ===== BARRA DE PROGRESO ===== */
.progreso-sorteo {
  margin: 25px auto;
  max-width: 420px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.progreso-sorteo h3 {
  margin-bottom: 8px;
  font-weight: bold;
}

.progreso-sorteo p {
  margin: 6px 0;
}

.barra {
  width: 100%;
  height: 16px;
  background: #ccc;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.barra-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c853, #ffeb3b, #ff5252);
  transition: width 0.6s ease;
}

.nota {
  font-size: 13px;
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  background: #383737;
  color: #eee;
}

.footer a {
  color: #4da3ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand h3 {
  margin: 0 0 8px;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

.footer-contact {
  text-align: right;
  font-size: 14px;
}

.footer-social {
  margin-top: 6px;
}

.footer-social a {
  margin-left: 12px;
  font-size: 14px;
}

.footer-bottom {
  background: #1f1f1f;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: #555;
}

.footer-bottom .impulso-link {
  color: #1877f2;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom .impulso-link:hover {
  text-decoration: underline;
}

/* ===== ANIMATED BODY BODY ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(270deg, #0f172a, #1e3a8a, #7c3aed, #ec4899, #f59e0b);
  background-size: 400% 400%;
  animation: fondoMove 12s ease infinite;
  color: #ffffff;
}

@keyframes fondoMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   CHECKOUT LAYOUT & GRID
========================= */
.overlay {
  background: rgba(0, 0, 0, 0.65);
}

.card {
  max-width: 1200px;
  width: 96%;
  margin: 40px auto;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.checkout {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr;
  gap: 10px;
  align-items: flex-start;
}

.checkout-left {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 1px 8px;
}

.checkout-left h2 {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  grid-column: 1 / -1;
}

.checkout-left label {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}

.checkout-left input,
.checkout-left select {
  height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #6383b7;
  background: #dfe4e9;
  transition: all .2s ease;
}

.checkout-left input::placeholder {
  color: #000307;
}

.checkout-left input:focus,
.checkout-left select:focus {
  outline: none;
  background: #fff;
  border-color: #7d6113;
  box-shadow: 0 0 0 3px rgba(124, 242, 194, .25);
}

.checkout-right {
  background: #f8fafc;
  padding: 22px;
  border-radius: 10px;
  border: 1px solid #ac999f;
}

.checkout-right h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.pedido-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

.metodo-pago {
  background: #dad5ce;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.metodo-pago label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.metodo-pago p {
  margin-top: 6px;
  font-size: 12px;
  color: #555;
}

.terminos {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #301414;
  margin-bottom: 18px;
}

.btn-pagar {
  width: 100%;
  height: 44px;
  background: #2f2f2f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-pagar:hover {
  background: #1f1f1f;
}

.numeros-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.numero {
  background: #1e1e1e;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
}

#consultaWhatsapp {
  width: 250px;
  max-width: 90%;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

main>*:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* RESPONSIVE BASE */
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-left { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .container { width: 94%; }
  .top-main { font-size: 18px; }
  .top-sub { font-size: 12px; }
  .logo-text, .logo-highlight { font-size: 34px; letter-spacing: 2px; }
  .slogan { font-size: 12px; }
  .hero { padding: 3px 0 50px 0; }
  .hero-box h2 { font-size: 24px; }
  .hero-box p { font-size: 14px; }
  input, select { font-size: 14px; padding: 11px; }
  .btn-principal { width: 100%; padding: 14px; font-size: 16px; }
  .nota { font-size: 12px; }
}

@media (max-width: 768px) {
  .container { width: 92%; }
  .logo-text, .logo-highlight { font-size: 40px; }
  .hero-box h2 { font-size: 30px; }
}


/* ===================================================
   🚀 NUEVA CORRECCIÓN ADICIONAL PARA LAS TARJETAS EN CELULAR 
   =================================================== */
@media (max-width: 480px) {
  /* Evita el estiramiento vertical forzando un empaquetado fluido */
  .checkout, 
  .checkout-left,
  [class*="contenedor-tarjetas"], 
  [class*="boletos-container"] {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 5px !important; /* Espacio fijo controlado entre tarjetas */
    height: auto !important; /* Elimina alturas rígidas en móvil */
  }

  /* Compactación del relleno interno y márgenes de cada tarjeta */
  .card, 
  [class*="tarjeta-boleto"],
  [class*="producto-card"] {
    margin: 2px auto !important;
    padding: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}