:root {
  --rojo: #d92318;
  --verde: #006341;
  --blanco: #ffffff;
  --gris: #f4f4f4;
}

/* --- RESET Y GENERALES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--blanco);
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: var(--blanco);
  border-bottom: 2px solid var(--gris);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo img {
  height: 40px;
}
.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: var(--verde);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}
nav a {
  text-decoration: none;
  color: var(--verde);
  font-weight: bold;
  font-size: 14px;
}

/* --- CONTENIDO PRINCIPAL --- */
main {
  flex: 1;
  padding: 20px 5%;
}

.hero-img {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  aspect-ratio: 16 / 9;
  background-image: url("../images/1920x1080_landing.png");
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-main {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rojo);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
}

.btn-main:hover {
  background-color: #b51d14;
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-main:active {
  transform: translateX(-50%) scale(0.95);
  background-color: #9e1a12;
}

/* --- TERMINOS Y CONDICIONES - ABAJO --- */
.extra-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.extra-img-container {
  width: 100%;
  aspect-ratio: 16 / 4;
  background-image: url("../images/1920x500_landing2.png");
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- FOOTER --- */
footer {
  background: var(--gris);
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid #ddd;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}
.footer-links a {
  color: var(--rojo);
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
}

/* --- MODALES --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-body {
  background: #ffffff !important;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 650px;
  position: relative;
  border-top: 8px solid var(--rojo);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
  color: #333;
}

input[type="text"],
input[type="date"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
  gap: 10px;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-container label {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.tabla-premios-container,
.terminos-lista-container {
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.tabla-premios {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 450px;
}

.tabla-premios th {
  background-color: #ffffff;
  color: #000;
  font-weight: bold;
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tabla-premios td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 0.9rem;
}

.fila-resaltada {
  background-color: #f9f9f9;
}

/* Clase para los premios que no alcanzan con los puntos actuales */
.premio-inactivo {
  opacity: 0.4;
  filter: grayscale(100%);
}

.terminos-lista {
  list-style: none;
}
.terminos-lista li {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}

.terminos-lista strong {
  color: var(--verde);
  display: block;
  margin-bottom: 5px;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  nav ul.show {
    display: flex;
  }

  .hero-img {
    aspect-ratio: 9 / 16;
    background-image: url("../images/1080x1920_landing.png");
  }

  .btn-main {
    bottom: 120px;
    width: 85%;
  }

  .extra-img-container {
    aspect-ratio: 1 / 1;
    background-image: url("../images/1080x1080_landing2.png");
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
