/* ============================================
   LeoVegas App - Tema Bosque de Chapultepec
   Diseño Original 2026 - México
   Colores: Esmeralda #0d5c3f, Oro #d4a84b, Bosque #1a3c2a
   ============================================ */

/* === Variables CSS === */
:root {
  --color-bosque-profundo: #0a2818;
  --color-esmeralda: #0d5c3f;
  --color-esmeralda-claro: #1a7a54;
  --color-oro: #d4a84b;
  --color-oro-brillante: #f5d78e;
  --color-oro-oscuro: #a67c2e;
  --color-crema: #f8f5e8;
  --color-texto: #1a1a1a;
  --color-texto-claro: #f0ede0;
  --fuente-titulo: 'Playfair Display', Georgia, serif;
  --fuente-cuerpo: 'Source Sans Pro', 'Segoe UI', sans-serif;
  --sombra-suave: 0 4px 20px rgba(10, 40, 24, 0.15);
  --sombra-elevada: 0 12px 40px rgba(10, 40, 24, 0.25);
  --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset y Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fuente-cuerpo);
  background: linear-gradient(180deg, var(--color-bosque-profundo) 0%, #0f3520 50%, var(--color-bosque-profundo) 100%);
  color: var(--color-texto-claro);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-oro);
  text-decoration: none;
  transition: var(--transicion);
}

a:hover {
  color: var(--color-oro-brillante);
}

/* === Tipografía === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-oro);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  margin-bottom: 1.25rem;
  color: var(--color-texto-claro);
}

/* === Contenedor Principal === */
.contenedor {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Encabezado === */
.encabezado {
  background: linear-gradient(135deg, var(--color-bosque-profundo) 0%, rgba(13, 92, 63, 0.95) 100%);
  padding: 1rem 0;
  border-bottom: 2px solid var(--color-oro);
}

.encabezado__interior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.encabezado__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.encabezado__logo img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.encabezado__marca {
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  color: var(--color-oro);
}

.encabezado__marca span {
  color: var(--color-esmeralda-claro);
}

/* === Navegación === */
.navegacion__lista {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navegacion__enlace {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--color-texto-claro);
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transicion);
}

.navegacion__enlace:hover {
  background: rgba(212, 168, 75, 0.15);
  color: var(--color-oro);
}

/* === Botón CTA === */
.boton-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--color-oro) 0%, var(--color-oro-oscuro) 100%);
  color: var(--color-bosque-profundo);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transicion);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(212, 168, 75, 0.4);
}

.boton-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 168, 75, 0.5);
  color: var(--color-bosque-profundo);
}

.boton-cta--secundario {
  background: transparent;
  border: 2px solid var(--color-oro);
  color: var(--color-oro);
}

.boton-cta--secundario:hover {
  background: var(--color-oro);
  color: var(--color-bosque-profundo);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__fondo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 40, 24, 0.85) 0%, rgba(13, 92, 63, 0.7) 50%, rgba(10, 40, 24, 0.9) 100%);
}

.hero__contenido {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 3rem 0;
}

.hero__subtitulo {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(212, 168, 75, 0.2);
  border: 1px solid var(--color-oro);
  border-radius: 50px;
  color: var(--color-oro);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__titulo {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero__descripcion {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero__botones {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Secciones === */
.seccion {
  padding: 5rem 0;
}

.seccion--alterna {
  background: linear-gradient(180deg, rgba(13, 92, 63, 0.1) 0%, rgba(26, 60, 42, 0.2) 100%);
}

.seccion__encabezado {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.seccion__titulo {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.seccion__titulo::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-oro), transparent);
}

.seccion__descripcion {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* === Tarjetas de Juegos === */
.juegos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tarjeta-juego {
  background: linear-gradient(145deg, rgba(26, 60, 42, 0.8) 0%, rgba(10, 40, 24, 0.95) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 75, 0.2);
  transition: var(--transicion);
}

.tarjeta-juego:hover {
  transform: translateY(-8px);
  border-color: var(--color-oro);
  box-shadow: var(--sombra-elevada);
}

.tarjeta-juego__imagen {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.tarjeta-juego__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transicion);
}

.tarjeta-juego:hover .tarjeta-juego__imagen img {
  transform: scale(1.08);
}

.tarjeta-juego__contenido {
  padding: 1.5rem;
}

.tarjeta-juego__titulo {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.tarjeta-juego__descripcion {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.tarjeta-juego__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
}

.tarjeta-juego__rtp {
  font-size: 0.85rem;
  color: var(--color-esmeralda-claro);
  font-weight: 600;
}

/* === Promociones === */
.promocion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(26, 60, 42, 0.6) 0%, rgba(13, 92, 63, 0.4) 100%);
  border-radius: 24px;
  border: 1px solid rgba(212, 168, 75, 0.25);
}

.promocion__imagen {
  border-radius: 16px;
  overflow: hidden;
}

.promocion__contenido h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.promocion__destacado {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-oro-brillante);
  font-family: var(--fuente-titulo);
}

/* === Métodos de Pago === */
.pagos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pago-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(26, 60, 42, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 75, 0.15);
  transition: var(--transicion);
}

.pago-item:hover {
  border-color: var(--color-oro);
  background: rgba(26, 60, 42, 0.7);
}

.pago-item__icono {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-oro);
  border-radius: 10px;
  font-size: 1.5rem;
}

.pago-item__info h4 {
  color: var(--color-texto-claro);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pago-item__info p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

/* === FAQ === */
.faq__lista {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 168, 75, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(26, 60, 42, 0.4);
}

.faq-item__pregunta {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--color-oro);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transicion);
}

.faq-item__pregunta:hover {
  background: rgba(212, 168, 75, 0.1);
}

.faq-item__icono {
  font-size: 1.5rem;
  transition: var(--transicion);
}

.faq-item.activo .faq-item__icono {
  transform: rotate(45deg);
}

.faq-item__respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.activo .faq-item__respuesta {
  max-height: 500px;
}

.faq-item__respuesta-contenido {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-texto-claro);
  opacity: 0.9;
}

/* === Testimonios === */
.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonio {
  padding: 2rem;
  background: linear-gradient(145deg, rgba(26, 60, 42, 0.7) 0%, rgba(10, 40, 24, 0.9) 100%);
  border-radius: 16px;
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.testimonio__estrellas {
  color: var(--color-oro);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonio__texto {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonio__texto::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--color-oro);
  opacity: 0.3;
  font-family: var(--fuente-titulo);
}

.testimonio__autor {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonio__autor-info h4 {
  color: var(--color-texto-claro);
  font-size: 1rem;
}

.testimonio__autor-info span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* === Autor/Experto === */
.autor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(26, 60, 42, 0.6) 0%, rgba(13, 92, 63, 0.3) 100%);
  border-radius: 20px;
  border: 1px solid rgba(212, 168, 75, 0.25);
  align-items: center;
}

.autor__imagen {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-oro);
}

.autor__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autor__nombre {
  color: var(--color-oro);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.autor__titulo {
  color: var(--color-esmeralda-claro);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* === Licencia === */
.licencia {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(26, 60, 42, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.licencia__imagen {
  width: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

/* === Juego Responsable === */
.responsable {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(26, 60, 42, 0.4) 100%);
  border-radius: 20px;
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.responsable__icono {
  width: 80px;
  height: 80px;
  background: var(--color-oro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.responsable__lista {
  list-style: none;
  margin-top: 1.5rem;
}

.responsable__lista li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(212, 168, 75, 0.1);
}

.responsable__lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-esmeralda-claro);
  font-weight: bold;
}

/* === Pie de Página === */
.pie {
  background: linear-gradient(180deg, var(--color-bosque-profundo) 0%, #061510 100%);
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--color-oro);
}

.pie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.pie__columna h4 {
  color: var(--color-oro);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: var(--fuente-titulo);
}

.pie__lista {
  list-style: none;
}

.pie__lista li {
  margin-bottom: 0.75rem;
}

.pie__lista a {
  color: var(--color-texto-claro);
  opacity: 0.8;
  font-size: 0.95rem;
}

.pie__lista a:hover {
  opacity: 1;
  color: var(--color-oro);
}

.pie__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.pie__social a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 75, 0.15);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: var(--transicion);
}

.pie__social a:hover {
  background: var(--color-oro);
  color: var(--color-bosque-profundo);
}

.pie__inferior {
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
  text-align: center;
}

.pie__pagos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pie__pagos img {
  height: 35px;
  opacity: 0.8;
  transition: var(--transicion);
}

.pie__pagos img:hover {
  opacity: 1;
}

.pie__edad {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  border-radius: 8px;
  color: #ff6b6b;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pie__copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Responsive === */
@media (max-width: 992px) {
  .promocion {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .autor {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .autor__imagen {
    margin: 0 auto;
  }
  
  .licencia {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .encabezado__interior {
    flex-direction: column;
  }
  
  .navegacion__lista {
    justify-content: center;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero__contenido {
    text-align: center;
  }
  
  .hero__botones {
    justify-content: center;
  }
  
  .seccion {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .navegacion__lista {
    gap: 0.25rem;
  }
  
  .navegacion__enlace {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .boton-cta {
    width: 100%;
    justify-content: center;
  }
}

/* === Animaciones === */
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes brillar {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.animacion-flotar {
  animation: flotar 3s ease-in-out infinite;
}

.animacion-brillar {
  animation: brillar 2s ease-in-out infinite;
}

/* === Utilidades === */
.texto-centro { text-align: center; }
.texto-oro { color: var(--color-oro); }
.texto-esmeralda { color: var(--color-esmeralda-claro); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
