/* ======================================================
   SORTEO DE 4 MOTOS + CURSO DE DETAILING DE MOTO
   ======================================================
   Agregados sobre estilo.css para la landing del curso.
*/

/* ===== Cinta naranja de arriba (pasa sola) ===== */

.aviso-cinta {
  overflow: hidden;
  padding: 4px 0;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
}

.cinta-pista {
  display: inline-flex;
  animation: cintaPasa 22s linear infinite;
}

@keyframes cintaPasa {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cinta-pista { animation: none; }
}

/* Aviso de cierre (cuando se terminan las compras) */
.aviso.aviso-terminado {
  padding: 14px 16px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.aviso.aviso-terminado a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.aviso.aviso-terminado small {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}


/* ===== Carrusel: cartel provisorio hasta tener las fotos ===== */

.moto-provisoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 4 / 5;
  padding: 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 106, 0, .45), transparent 55%),
    linear-gradient(160deg, #0f172a, #1e293b 60%, #111827);
}

.moto-provisoria small {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--naranja);
}

.moto-provisoria b {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1.05;
}

.moto-provisoria span {
  font-size: 13px;
  opacity: .7;
}


/* ===== Tarjeta principal ===== */

.curso-etiqueta {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--verde-osc);
  background: var(--verde-claro);
  border-radius: 999px;
}

.producto-sub b { color: var(--naranja); }

.podio-motos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 6px;
  padding: 0;
  list-style: none;
}

.podio-motos li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

/* 2°, 3° y 4°: número arriba y nombre abajo */
.podio-motos li:not(:first-child) {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 13px;
  text-align: center;
}

.podio-motos li:first-child {
  grid-column: 1 / -1;
  font-size: 17px;
  background: linear-gradient(120deg, #fff7ed, #ffedd5);
  border-color: var(--naranja);
}

.podio-motos b {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 13px;
  color: #fff;
  background: var(--naranja);
  border-radius: 50%;
}


/* ===== ¿Qué aprendés en el curso? ===== */

.curso-temas {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.curso-temas li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 12px;
}

.curso-temas li span { font-size: 20px; }

.curso-entrega {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--verde-claro);
  border-radius: 12px;
}


/* ===== Tarjetas de cursos (tapa provisoria) ===== */

.curso-tapa {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  padding: 10px;
  text-align: left;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(150deg, #334155, #0f172a);
}

.curso-tapa small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  opacity: .85;
}

.curso-tapa b {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.1;
}

.tapa-inicial { background: linear-gradient(150deg, #64748b, #1e293b); }
.tapa-bronce  { background: linear-gradient(150deg, #c2703d, #5c2e12); }
.tapa-plata   { background: linear-gradient(150deg, #cbd5e1, #475569); }
.tapa-oro     { background: linear-gradient(150deg, #facc15, #a16207); }
.tapa-pro     { background: linear-gradient(150deg, #00a650, #064e3b); }
.tapa-maximo  { background: linear-gradient(150deg, #ff6a00, #7c2d12); }

.pack-recomendado .curso-tapa,
.pack-ancho .curso-tapa { aspect-ratio: 16 / 7; }

.pack-recomendado .curso-tapa b,
.pack-ancho .curso-tapa b { font-size: 24px; }

/* ===== Ganadores reales: título y contador fuertes ===== */
.ganadores-chapita {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #04210f;
  background: #3ddc84;
  border-radius: 999px;
}

.ganadores-titulo {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.05;
  background: linear-gradient(90deg, #ffe08a, #ffcc00 40%, #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ganadores-titulo span {
  -webkit-text-fill-color: initial;
  color: initial;
}

.ganadores .contador-ganadores {
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2a1a05, #1a1306);
  border: 2px solid #ffcc00;
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(255, 196, 0, .25);
}

.ganadores .contador-ganadores b {
  font-size: 46px;
  line-height: 1;
  background: linear-gradient(180deg, #fff3b0, #ffcc00 55%, #ff9500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ganadores .contador-ganadores strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.ganadores-premios {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #ffd97a;
}

/* Efecto flash: un destello blanco pasa por el título y el +70,
   y el recuadro dorado late y tiene un reflejo que lo cruza */
.ganadores-titulo,
.ganadores .contador-ganadores b {
  background-size: 250% 100%;
  animation: flashTexto 3s ease-in-out infinite;
}

.ganadores-titulo {
  background-image: linear-gradient(100deg, #ffcc00 0%, #ff8a00 35%, #fff8d6 48%, #ffcc00 56%, #ff8a00 100%);
}

.ganadores .contador-ganadores b {
  background-image: linear-gradient(100deg, #ffcc00 0%, #ff9500 35%, #ffffff 48%, #ffe08a 56%, #ff9500 100%);
}

@keyframes flashTexto {
  0% { background-position: 100% 0; }
  60%, 100% { background-position: -50% 0; }
}

.ganadores .contador-ganadores {
  position: relative;
  overflow: hidden;
  animation: brilloDorado 3s ease-in-out infinite;
}

.ganadores .contador-ganadores::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: reflejoRegalo 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes brilloDorado {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 196, 0, .2); }
  50% { box-shadow: 0 0 30px rgba(255, 196, 0, .55); }
}

@media (prefers-reduced-motion: reduce) {
  .ganadores-titulo,
  .ganadores .contador-ganadores,
  .ganadores .contador-ganadores b { animation: none; }
  .ganadores .contador-ganadores::after { display: none; }
}

/* ===== Sidra de Ganadores (boceto D), ciclo de 5 segundos =====
   0-10% aparece · 14-34% se sacude · 42% descorcha: el corcho sale para
   arriba y caen papelitos sobre el título y el +70 · 86% desaparece */
#ganadores { position: relative; }

.sidra-capa {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.sidra-d {
  position: absolute;
  top: 40px;
  right: 18px;
  animation: sidraD 5s ease-in-out infinite;
}

.sidra-d svg { display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }

@keyframes sidraD {
  0% { opacity: 0; transform: scale(.4) rotate(-20deg); }
  10% { opacity: 1; transform: scale(1) rotate(0); }
  14%, 22%, 30% { transform: rotate(-12deg); }
  18%, 26%, 34% { transform: rotate(12deg); }
  38% { transform: scale(1.15) rotate(0); }
  42% { transform: scale(1) rotate(0); }
  76% { opacity: 1; transform: none; }
  86%, 100% { opacity: 0; transform: scale(.4); }
}

.sidra-d-corcho {
  position: absolute;
  top: -2px;
  left: 14px;
  width: 12px;
  height: 11px;
  background: linear-gradient(180deg, #edc48a, #9c6a33);
  border-radius: 3px 3px 2px 2px;
  animation: sidraDCorcho 5s ease-out infinite;
}

@keyframes sidraDCorcho {
  0%, 41% { opacity: 1; transform: none; }
  52% { opacity: 1; transform: translateY(-90px) rotate(-360deg); }
  60%, 100% { opacity: 0; transform: translateY(-110px) rotate(-420deg); }
}

.sidra-lluvia i {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: sidraPapel 5s linear infinite;
}

@keyframes sidraPapel {
  0%, 41% { opacity: 0; transform: translateY(0) rotate(0); }
  43% { opacity: 1; }
  80% { opacity: 1; transform: translateY(280px) rotate(540deg); }
  84%, 100% { opacity: 0; transform: translateY(290px) rotate(600deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sidra-capa { display: none; }
}

/* ===== Botón "Ver TODOS los ganadores": violeta eléctrico que late,
   con reflejo que lo cruza y flecha que salta ===== */
.ganadores .ganadores-ver-mas {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 15px 14px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  border: 2px solid #a78bfa;
  border-radius: 16px;
  box-shadow: 0 0 0 0 rgba(124, 58, 237, .6);
  cursor: pointer;
  animation: verMasLate 2.2s ease-in-out infinite;
}

.ganadores .ganadores-ver-mas[hidden] { display: none; }

.ver-mas-texto {
  display: block;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.ganadores .ganadores-ver-mas small {
  display: block;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ddd6fe;
}

.ver-mas-flecha {
  display: inline-block;
  animation: manoSalta 1.1s ease-in-out infinite;
}

.ganadores .ganadores-ver-mas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: reflejoRegalo 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes verMasLate {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, .55); }
  50% { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ganadores .ganadores-ver-mas,
  .ver-mas-flecha { animation: none; }
  .ganadores .ganadores-ver-mas::after { display: none; }
}

/* Precio tachado: solo cuando hay palabra clave activa (tacha el precio
   normal real). Sin descuento se ve únicamente el precio del curso. */
.pack-card .precio-anterior { display: none; }
body.descuento-activo .pack-card .precio-anterior { display: inline; }

/* Ruleta: aviso al volver a girar */
.ruleta-aviso-reintento {
  margin: 6px 0 0;
  font-size: 12.5px;
  opacity: .75;
}

/* ===== "Ver mis números" (debajo de los cursos): cartel llamativo ===== */
.consulta-container#numeros {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 106, 0, .35), transparent 55%),
    linear-gradient(160deg, #0f2a1c, #0b1a12);
  border: 2px solid #00a650;
  box-shadow: 0 0 0 4px rgba(0, 166, 80, .15), 0 10px 30px rgba(0, 0, 0, .35);
}

.numeros-chapita {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #111;
  background: #ffcc00;
  border-radius: 999px;
}

#numeros h2 {
  font-size: 26px;
  color: #fff;
}

#numeros .bajada { color: #cfe9da; }

.numeros-lupa {
  display: inline-block;
  animation: lupaBusca 2.2s ease-in-out infinite;
}

@keyframes lupaBusca {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(4px, -2px) rotate(-12deg); }
  50% { transform: translate(-3px, 2px) rotate(8deg); }
}

#numeros .consulta-form input {
  font-size: 18px;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(0, 200, 100, .5);
  border-radius: 14px;
}

#numeros .consulta-form button {
  padding: 0 20px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #00a650, #00c96a);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 166, 80, .45);
}

@media (prefers-reduced-motion: reduce) {
  .numeros-lupa { animation: none; }
}

/* "Elegí tu curso 👇": manito que salta y aviso de tocar */
.mano-toca {
  display: inline-block;
  animation: manoSalta 1.1s ease-in-out infinite;
}

@keyframes manoSalta {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.toca-curso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 166, 80, .16);
  border: 1px dashed rgba(0, 200, 100, .55);
  border-radius: 12px;
}

.toca-dedo {
  display: inline-block;
  font-size: 20px;
  animation: dedoToca 1.4s ease-in-out infinite;
}

/* El dedo baja, "toca" y vuelve */
@keyframes dedoToca {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(5px) scale(.88); }
  55% { transform: translateY(5px) scale(.88); }
}

@media (prefers-reduced-motion: reduce) {
  .mano-toca, .toca-dedo { animation: none; }
}

/* "🎁 N números de regalo": cartel que crece con el curso
   Nivel 1 (1 a 8) · 2 (16 a 40) · 3 (60 a 120) · 4 (200 y 800) */
.pack-card .cantidad-chances {
  display: block;
  margin: 2px auto 6px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #ffb27a;
  background: rgba(255, 106, 0, .12);
  border: 1px solid rgba(255, 106, 0, .45);
  border-radius: 12px;
}

.pack-card .cantidad-chances b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  line-height: 1.05;
  color: #fff;
}

/* Nivel 2: naranja lleno */
.pack-card:is([data-chances="16"], [data-chances="24"], [data-chances="40"]) .cantidad-chances {
  color: #fff;
  background: linear-gradient(135deg, #ff6a00, #ff9a3c);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 106, 0, .35);
}

.pack-card:is([data-chances="16"], [data-chances="24"], [data-chances="40"]) .cantidad-chances b { font-size: 26px; }

/* Nivel 3: dorado con brillo */
.pack-card:is([data-chances="60"], [data-chances="80"], [data-chances="120"]) .cantidad-chances {
  padding: 9px 10px;
  font-size: 15px;
  color: #2a1600;
  background: linear-gradient(135deg, #ffd54a, #ffb300 55%, #ff8a00);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(255, 196, 0, .45);
}

.pack-card:is([data-chances="60"], [data-chances="80"], [data-chances="120"]) .cantidad-chances b {
  font-size: 30px;
  color: #1a0d00;
}

/* Nivel 4: el más grande, con reflejo que pasa */
.pack-card:is([data-chances="200"], [data-chances="800"]) .cantidad-chances {
  position: relative;
  overflow: hidden;
  padding: 11px 10px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff2d55, #ff6a00 50%, #ffcc00);
  border: 2px solid #ffe08a;
  box-shadow: 0 0 22px rgba(255, 90, 0, .6);
}

.pack-card:is([data-chances="200"], [data-chances="800"]) .cantidad-chances b {
  font-size: 36px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.pack-card[data-chances="800"] .cantidad-chances b { font-size: 44px; }

.pack-card:is([data-chances="200"], [data-chances="800"]) .cantidad-chances::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: reflejoRegalo 2.8s ease-in-out infinite;
}

@keyframes reflejoRegalo {
  60%, 100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .pack-card .cantidad-chances::after { animation: none; display: none; }
}

/* El nombre del curso ya está en la tapa */
.pack-card h3 { display: none; }

/* Qué incluye cada curso (boceto 22/11: los extras los confirma el hermano) */
.curso-incluye {
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.35;
}

.curso-incluye li {
  padding: 3px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.curso-incluye li:last-child { border-bottom: 0; }

/* Mockups reales de los ebooks que trae cada curso (assets/cursos) */
.curso-tapa:has(.curso-mockups) {
  aspect-ratio: auto;
  justify-content: space-between;
  gap: 6px;
}

.curso-mockups {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.curso-mockups img {
  width: 62%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}

/* Varios ebooks: se superponen como un abanico */
.curso-mockups.n2 img { width: 48%; }
.curso-mockups.n3 img { width: 40%; }
.curso-mockups.n4 img { width: 34%; }
.curso-mockups img + img { margin-left: -12%; }

.pack-recomendado .curso-mockups img,
.pack-ancho .curso-mockups img { width: 30%; }
.pack-recomendado .curso-mockups img + img,
.pack-ancho .curso-mockups img + img { margin-left: -4%; }

/* Master y Edición Máxima: la foto con los 7 ebooks juntos */
.curso-mockups.todos img { width: 80%; aspect-ratio: 4 / 5; }
.pack-ancho .curso-mockups.todos img { width: 46%; }
.curso-mockups.n5 img { width: 30%; }
.curso-mockups.n6 img { width: 28%; }
.curso-mockups.n5 img + img,
.curso-mockups.n6 img + img { margin-left: -16%; }

/* Kit Calcos (tarjeta ancha de arriba): un solo ebook, foto grande */
.pack-mini .curso-mockups img { width: 56%; max-width: 230px; }


/* ===== Fotos reales de las motos (assets/motos) ===== */

.moto-foto {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.moto-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moto-cartel {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 18px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

.moto-cartel small {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--naranja);
}

.moto-cartel b {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 8vw, 40px);
  line-height: 1.05;
}

/* Álbum: una tira deslizable por moto */
.album-motos { margin: 18px 0 6px; }

.album-motos h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.album-moto h3 {
  margin: 12px 0 6px;
  font-size: 15px;
}

.album-tira {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.album-tira img {
  flex: 0 0 40%;
  max-width: 170px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
}
