* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

/* =====================
   HERO / HEADER
===================== */
.hero {
  padding: 100px 20px 80px;

  min-height: 95svh;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      rgba(10, 61, 98, 0.85),
      rgba(11, 102, 35, 0.85)
    );

  background-size: cover;
  background-position: 50% 100%;
  background-repeat: no-repeat;

  text-align: center;
  color: #ffffff;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
}

/* =====================
   HERO CONTENT
===================== */
.hero-content {
  /*text-align: center;*/
  /*margin-top: 100px;*/
  /*padding: 0 20px;
  transform: translateY(60px);*/
  transform: translateY(60px);
}

.hero-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 4px;
  text-transform: uppercase;

  color: #ffffff;

  /* EFECTO 3D / RELIEVE */
  text-shadow:
    0 2px 0 rgba(0,0,0,0.25),
    0 4px 0 rgba(0,0,0,0.22),
    0 8px 12px rgba(0,0,0,0.45);

  transform: perspective(800px) translateZ(40px);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-top: 14px;
  opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .hero {
    min-height: 55vh;
  }
  .hero-content {
    transform: none;
  }
}


.hero-buttons {
  margin-top: 25px;
}

/*-----un adicional al hero----*/
.hero-content {
  animation: heroFade 1.1s ease-out both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-content h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 18px auto 0;

  background: linear-gradient(
    90deg,
    transparent,
    #f1c40f,
    transparent
  );
}

/* =====================
   BOTONES
===================== */
.btn {
  padding: 12px 26px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  margin: 5px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #f1c40f;
  color: #000;
}

.btn-primary:hover {
  background: #ffd700;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
/*-----parte del seccion que es*/
/* =====================
   ABOUT POLLA
===================== */

.about-polla {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.about-header {
  margin-bottom: 25px;
}

.about-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0b6623; /* Verde FIFA */
}

.about-line {
  display: block;
  width: 80px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(
    90deg,
    #f1c40f,
    #0b6623
  );
  border-radius: 4px;
}

/* Texto */
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c2c2c;
  max-width: 720px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

.about-text strong {
  color: #0b6623;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .about-header h2 {
    font-size: 2.4rem;
  }

  .about-text {
    font-size: 0.95rem;
  }
}
/* =====================
   ANIMACION DEL SCROLL 
===================== */

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delay para texto */
.reveal.delay {
  transition-delay: 0.15s;
}
/*---el final*/

/* =====================
   SECCION
===================== */
.section {
  padding: 70px 20px;
  text-align: center;
}

.section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #0a3d62;
}

.section.gray {
  background-color: #ffffff;
}

/* =====================
   FEATURES
===================== */
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.features div {
  background: #0b6623;
  color: #fff;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
}

/* =====================
   PASOS
===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.step {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.step h3 {
  margin-top: 10px;
  color: #0a3d62;
}

.step span {
  display: inline-block;
  background: #f1c40f;
  color: #000;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  line-height: 38px;
  font-weight: bold;
}

/* =====================
   Preguntas
===================== */
.faq {
  max-width: 650px;
  margin: auto;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px;
  background: #0b6623;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
}

/* =====================
   Pie de pagina FINAL
===================== */
.cta {
  background: linear-gradient(135deg, #0b6623, #0a3d62);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

/* ===============================
   CARRUSEL - COMO SE JUEGA
================================ */
.carousel {
  max-width: 420px;
  margin: 50px auto 0;
  position: relative;
}

/* Contenedor */
.carousel-track {
  overflow: hidden;
  position: relative;
}

/* ===============================
   CARTA / SLIDE
================================ */
.carousel-slide {
  display: none;
  text-align: center;

  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8f9fa 100%
  );

  padding: 42px 32px;
  border-radius: 20px;

  /* Sombra profesional */
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.08);

  /* Borde sutil */
  border: 1px solid rgba(0, 0, 0, 0.05);

  /* Animaciones */
  transform: translateY(0);
  transition: all 0.35s ease;
}

/* Slide activo */
.carousel-slide.active {
  display: block;
  animation: fade 0.6s ease;
}

/* ===============================
   NUMERO / BADGE
================================ */
.carousel-slide span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;
  margin-bottom: 20px;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #f1c40f,
    #ffd700
  );

  color: #000;
  font-size: 1.35rem;
  font-weight: bold;

  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ===============================
   TITULO
================================ */
.carousel-slide h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 1.6px;
  margin-bottom: 12px;
  color: #0a3d62;
  text-transform: uppercase;
}

/* ===============================
   TEXTO
================================ */

.carousel-slide p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #444;
}

.carousel-slide strong {
  color: #0a3d62;
  font-weight: 600;
}

/* ===============================
   CONTROLES
================================ */
.carousel-controls {
  padding: 0 0.5rem;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  }

.carousel-controls button {
  background: linear-gradient(
    135deg,
    #0b6623,
    #0a3d62
  );

  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;

  font-size: 1.1rem;
  cursor: pointer;

  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.carousel-controls button:hover {
  transform: scale(1.1);
}

/* ===============================
   DOTS
================================ */
.carousel-dots {
  margin-top: 22px;
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
}

.dot.active {
  background: #f1c40f;
}

/* ===============================
   ANIMACION
================================ */
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 480px) {
  .carousel {
    max-width: 95%;
  }

  .carousel-slide {
    padding: 32px 22px;
  }

  .carousel-slide h3 {
    font-size: 1.45rem;
  }
}

/* ===============================
   CARTA TIPO FIFA - EFECTO PRO
================================ */

/* Glow animado */
.carousel-slide {
  position: relative;
  overflow: hidden;
}

/* BORDE BRILLANTE */
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    120deg,
    transparent,
    #f1c40f,
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* LUZ DESLIZANTE */
.carousel-slide::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 215, 0, 0.6),
    transparent
  );
  transform: skewX(-20deg);
}

/* ACTIVAR EFECTOS SOLO EN SLIDE ACTIVO */
.carousel-slide.active::before {
  opacity: 1;
}

.carousel-slide.active::after {
  animation: lightSweep 2.8s ease-in-out infinite;
}

/* ===============================
   ANIMACION ENTRADA FIFA
================================ */
.carousel-slide.active {
  animation: fifaEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===============================
   KEYFRAMES
================================ */
@keyframes fifaEnter {
  0% {
    opacity: 0;
    transform: scale(0.9) rotateX(15deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes lightSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* ===============================
   EFECTO 3D CARTA FIFA
================================ */
@media (hover: none) {
  .carousel-slide {
    transform: none !important;
  }
}

/* ===============================
   CAPAS 3D - CARTA FIFA PRO
================================ */
.carousel {
  perspective: 1200px;
}

.carousel-slide {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  will-change: transform;
}

/* Capas internas */
.card-layer {
  transform-style: preserve-3d;
}

/* Profundidad */
.card-layer.badge {
  transform: translateZ(40px);
}

.card-layer.title {
  transform: translateZ(30px);
}

.card-layer.text {
  transform: translateZ(20px);
}

/* Sombra dinámica */
.carousel-slide {
  box-shadow:
    0 20px 40px rgba(0,0,0,0.15),
    0 8px 18px rgba(0,0,0,0.1);
}

#como-jugar {
  position: relative;
  padding: 80px 20px;

  background:
    linear-gradient(
      rgba(10, 61, 98, 0.88),
      rgba(11, 102, 35, 0.88)
    ),
    url("https://hiraoka.com.pe/media/.renditions/wysiwyg/lista-de-estadios-mundial-2026.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  min-height: 100vh;
}

#como-jugar h2 {
  color: #ffffff;
}

@media (max-width: 768px) {
  #como-jugar {
    padding: 60px 16px;
    min-height: auto;
  }
}
@media (max-width: 480px) {
  #como-jugar {
    background-position: top center;
  }
}

/* ===============================
   HEADER / MENÚ PRINCIPAL
================================ */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(10, 61, 98, 0.85);
  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Contenedor */
.header-container {
  max-width: 1200px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 12px; /* antes 20px */
}

/* Logo / título */
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

/* Botones */
.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Botón principal */
.btn-primary {
  background: #f1c40f;
  color: #0b6623;
  font-weight: 600;
}

/* Botón secundario */
.btn-outline {
  border: 1px solid rgba(255,255,255,0.6);
  color: #ffffff;
}

/* Hover */
.btn:hover {
  transform: translateY(-1px);
}

/*Parte de header*/
.main-header.scrolled {
  background: rgba(10, 61, 98, 0.95);
}

.main-header.scrolled .header-container {
  padding: 8px 20px;
}

.main-header.scrolled .logo {
  font-size: 1rem;
}

.main-header.scrolled .btn {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* ===============================
   HEADER RESPONSIVE - MÓVIL
================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* Breakpoint móvil */
@media (max-width: 768px) {
  .header-container {
    padding-left: 8px;
    padding-right: 12px;
  }

  .logo {
    margin-left: 0;
  }

  /* Ocultar botones normales */
  .header-actions {
    position: absolute;
    top: 100%;
    right: 0;

    width: 100%;
    background: rgba(10, 61, 98, 0.97);
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;
    gap: 14px;

    padding: 16px 0;

    display: none;
  }

  .header-actions a {
    width: 90%;
    text-align: center;
  }

  /* Mostrar menu */
  .menu-toggle {
    display: block;
  }

  /* Cuando el menú está abierto */
  .header-actions.active {
    display: flex;
  }
}

/* ===============================
   TABLA DE PUNTAJES
================================ */

.scoreboard {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  color: rgba(255,255,255,0.9);
}

.scoreboard h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #0e0e0e;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15)
}

/* Contenedor */
.score-table {
  background: linear-gradient(
    180deg,
    rgba(15, 30, 45, 0.95),
    rgba(10, 20, 30, 0.95)
  );
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

/* Filas */
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 16px 24px;

  border-bottom: 1px solid rgba(255,255,255,0.06);

  transition: background 0.25s ease;
}

/* Cabecera */
.score-row.header {
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* Fases sin puntos */
.score-row.muted {
  opacity: 0.6;
  font-style: italic;
}

/* Fases importantes */
.score-row.highlight {
  background: linear-gradient(
    90deg,
    rgba(241,196,15,0.12),
    rgba(241,196,15,0.02)
  );
  font-weight: 600;
}

/* Finales */
.score-row.final {
  background: linear-gradient(
    90deg,
    rgba(11,102,35,0.45),
    rgba(11,102,35,0.15)
  );
  font-weight: 700;
}

/* Campeón */
.score-row.champion {
  background: linear-gradient(
    90deg,
    #f1c40f,
    #b7950b
  );
  color: #0b6623;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Separador */
.divider {
  padding: 14px 24px;
  background: rgba(0,0,0,0.4);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

@media (max-width: 600px) {

  .score-row.header {
    display: none;
  }

  .score-table {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 10px 0;
    padding: 14px 16px;

    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: none;
  }

  .score-row span:first-child {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
  }

  .score-row span:last-child {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.8;
    white-space: nowrap;
  }

  /* Estados */
  .score-row.muted {
    opacity: 0.5;
  }

  .score-row.highlight {
    background: rgba(241, 196, 15, 0.12);
  }

  .score-row.final {
    background: rgba(11, 102, 35, 0.3);
  }

  .score-row.champion {
    background: linear-gradient(135deg, #f1c40f, #d4ac0d);
    color: #0b6623;
  }

  .divider {
    margin: 24px 0 10px;
    font-size: 0.75rem;
    opacity: 0.6;
  }
}

@media (max-width: 600px) {

  .score-row {
    position: relative;
    overflow: hidden;
  }

  /* Línea FIFA */
  .score-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #f1c40f;
    opacity: 0.8;
  }

  /* Puntaje más protagonista */
  .score-row span:last-child {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  /* Campeón especial */
  .score-row.champion {
    background: linear-gradient(
      135deg,
      #f1c40f,
      #b7950b
    );
    box-shadow: 0 12px 24px rgba(241, 196, 15, 0.35);
  }

  .score-row.champion::before {
    background: rgba(255,255,255,0.6);
  }
}

@media (max-width: 600px) {
  .score-row {
    animation: fadeUp 0.4s ease both;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 600px) {
  .scoreboard {
    color: #111;
  }

  .score-row span:first-child {
    color: #111;
  }

  .score-row span:last-child {
    color: #000;
  }
}

.score-row:not(.highlight):not(.final):not(.champion):not(.muted) {
  background: rgba(255,255,255,0.04);
}

@media (hover: hover) {
  .score-row:hover {
    background: linear-gradient(
      90deg,
      rgba(241,196,15,0.15),
      rgba(241,196,15,0.02)
    );
  }
}
