/* =========================================
   1. IMPORTS & CONFIGURACIÓN BASE
   ========================================= */
@import "reset.css";
@import "variables.css";

/* Configuración para LENIS (Scroll Suave) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Base Body */
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 50%
  );
}

h1,
h2,
h3,
.logo,
.btn {
  font-family: var(--font-heading);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilidades de Animación */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
}

/* =========================================
   LOGOTIPO BRANDING (SEMAKIN)
   ========================================= */

/* 1. Navbar Logo */
.logo h2,
.logo a {
  font-family: var(--font-logo) !important; /* Forzamos Semakin */
  font-weight: normal !important; /* Semakin ya suele ser gruesa, quitamos negrita extra */
  letter-spacing: 2px !important; /* Un poco de aire queda mejor */
  text-transform: uppercase;
  font-size: 2rem !important; /* Ajusta esto según lo grande que sea la fuente */
  line-height: 1;
  color: white;
}

/* 2. Footer Logo */
.footer-brand h2 {
  font-family: var(--font-logo) !important;
  font-size: 3.5rem !important; /* Más grande en el pie */
  letter-spacing: 3px;
  font-weight: normal;
  color: white;
  margin-bottom: 10px;
}

/* 3. Preloader Logo (Carga) */
.loader-logo {
  font-family: var(--font-logo) !important;
  font-size: 4rem; /* Gigante */
  letter-spacing: 5px;
  font-weight: normal;
}

/* 4. Game Hero Logo (El texto pequeño encima del título en farmerland.html) */
.game-logo-text {
  font-family: var(--font-logo) !important;
  letter-spacing: 3px;
}

/* 5. Logo en Página 404 */
.navbar .logo h2 {
  /* Se aplica la regla 1, pero por si acaso */
  font-family: var(--font-logo) !important;
}

/* =========================================
   2. NAVBAR (MEJORADO)
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(14, 14, 16, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: 0.3s;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  /* IMPORTANTE: Quita los puntos de la lista */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

/* Línea animada bajo el menú */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-purple);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-purple);
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%; /* La línea se queda expandida */
}

/* =========================================
   3. HERO SECTION (CENTRADO)
   ========================================= */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; /* Asegura centrado de texto */
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* ESTO CENTRA LOS BOTONES */
  justify-content: center;
  width: 100%;
  z-index: 2;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center; /* Centrado extra */
  margin-top: 10px;
}

.glow-effect {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.15),
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  animation: pulse 5s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Botones */
.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: black;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background: transparent;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   4. SECCIONES (TECH & JUEGOS)
   ========================================= */
.tech-section {
  padding: 60px 0;
  background: var(--bg-surface);
  position: relative;
  scroll-margin-top: 35vh;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 60s linear infinite;
  width: max-content;
}

.tech-item {
  font-size: 1.2rem;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tech-item:hover {
  opacity: 1;
  color: var(--accent-blue);
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.games-section {
  padding: 120px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-secondary);
}

.game-showcase {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 150px;
}
.game-showcase.reverse {
  flex-direction: row-reverse;
}

.game-preview {
  flex: 1.2;
  height: 400px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: 0.5s;
}
.game-preview:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.15);
}

.preview-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1a1a20, #25252e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
}

.game-details {
  flex: 1;
}
.game-details h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.game-details p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.tech-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   5. FOOTER (NUEVO DISEÑO PRO)
   ========================================= */
.footer {
  background: #050505;
  padding-top: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: radial-gradient(
    circle,
    var(--accent-purple) 0%,
    transparent 100%
  );
  opacity: 0.5;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  flex: 2;
  min-width: 300px;
}
.footer-brand h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.footer-desc {
  max-width: 400px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.footer-links-group {
  flex: 1;
  min-width: 150px;
}
.footer-title {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 15px;
}
.footer-list a {
  color: var(--text-secondary);
  transition: 0.3s;
  font-size: 0.95rem;
}
.footer-list a:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
}
.social-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.footer-bottom {
  padding: 30px 0;
  text-align: center;
  color: #555;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================
   6. PÁGINAS INTERNAS (About, Legal)
   ========================================= */
.hero-small {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(59, 130, 246, 0.1),
    transparent 50%
  );
}
.hero-small h1 {
  font-size: 3.5rem;
}

.about-section {
  padding: 100px 0;
}
.about-text {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: 0.3s;
}
.team-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-purple);
}

.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #25252e;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-blue);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.member-role {
  color: var(--accent-purple);
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}
.legal-content h2 {
  color: white;
  margin: 40px 0 20px;
  font-size: 1.8rem;
}
.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.legal-content ul {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.legal-content li {
  margin-bottom: 10px;
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .game-showcase,
  .game-showcase.reverse {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 100px;
  }
  .game-preview {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .btn {
    width: 100%;
    text-align: center;
    max-width: 300px;
  }
}

/* =========================================
   NUEVAS ANIMACIONES DE FONDO (HERO)
   ========================================= */

/* Estilo base para los orbes flotantes */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  /* Mucho desenfoque para que parezca luz */
  filter: blur(100px);
  opacity: 0.3; /* Sutil, no queremos que distraiga del texto */
  z-index: -1; /* Detrás de todo */
  pointer-events: none; /* Que no moleste al ratón */
}

/* ORBE 1 (Azul - Arriba Izquierda) */
.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: -10%;
  left: -10%;
  /* Animación larga y alterna para movimiento orgánico */
  animation: floatMove1 25s ease-in-out infinite alternate;
}

/* ORBE 2 (Morado - Abajo Derecha) */
.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: -10%;
  right: -10%;
  /* Duración diferente para que nunca se sincronicen */
  animation: floatMove2 30s ease-in-out infinite alternate-reverse;
}

/* Definición de los movimientos */
@keyframes floatMove1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    /* Se mueve a la derecha y baja un poco */
    transform: translate(30vw, 20vh) scale(1.1);
  }
  100% {
    /* Se mueve más a la derecha y sube */
    transform: translate(50vw, -10vh) scale(0.9);
  }
}

@keyframes floatMove2 {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    /* Se mueve a la izquierda y sube */
    transform: translate(-20vw, -30vh) rotate(90deg);
  }
  100% {
    /* Se mueve más y baja */
    transform: translate(-40vw, 10vh) rotate(180deg);
  }
}

/* =========================================
   8. MENÚ MÓVIL (HAMBURGUESA)
   ========================================= */

/* Por defecto (Escritorio): Ocultar el botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

@media (hover: hover) {
  .menu-toggle:hover {
    color: var(--accent-purple);
  }
}

/* ESTILOS SOLO PARA MÓVIL (Menor de 768px) */
@media (max-width: 768px) {
  /* 1. Mostrar el botón */
  .menu-toggle {
    display: block;
    z-index: 1001; /* Por encima de todo */
  }

  /* 2. Transformar la lista en un panel lateral */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto a la derecha fuera de la pantalla */
    height: 100vh;
    width: 70%; /* Ocupa el 70% del ancho */
    background: rgba(14, 14, 16, 0.98); /* Casi opaco */
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column; /* En vertical */
    justify-content: center;
    align-items: center;
    gap: 40px; /* Separación entre enlaces */

    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Clase activa: Trae el menú a la pantalla */
  .nav-links.active {
    right: 0;
  }

  /* Estilo de los enlaces en móvil (más grandes) */
  .nav-links a {
    font-size: 1.5rem; /* Texto grande para dedos */
  }

  /* Desactivar la línea inferior animada en móvil (queda raro en vertical) */
  .nav-links a::after {
    display: none;
  }
}

/* =========================================
   9. BANNER COOKIES
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: -100px; /* Oculto abajo al principio */
  left: 0;
  width: 100%;
  background: rgba(14, 14, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 2000; /* Por encima de todo */
  padding: 20px;
  transition: bottom 0.5s ease-in-out;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
  bottom: 0; /* Sube para mostrarse */
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.btn-cookie {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: 0.2s;
}

.btn-cookie.accept {
  background: var(--accent-purple);
  color: white;
}
.btn-cookie.accept:hover {
  background: #6d28d9;
}

.btn-cookie.decline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.btn-cookie.decline:hover {
  border-color: white;
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================
   10. PÁGINA 404 (GLITCH EFFECT)
   ========================================= */
.error-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-content p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* El texto gigante */
.glitch {
  font-size: 8rem;
  font-weight: 900;
  position: relative;
  color: white;
  letter-spacing: -5px;
  margin-bottom: 10px;
}

/* Capas duplicadas para el efecto */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color); /* Tapa el fondo */
}

/* Capa Roja (se mueve a la izquierda) */
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

/* Capa Azul (se mueve a la derecha) */
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Animaciones locas */
@keyframes glitch-anim {
  0% {
    clip: rect(30px, 9999px, 10px, 0);
  }
  5% {
    clip: rect(80px, 9999px, 90px, 0);
  }
  10% {
    clip: rect(10px, 9999px, 50px, 0);
  }
  15% {
    clip: rect(60px, 9999px, 20px, 0);
  }
  /* Pausa larga para que no maree */
  20% {
    clip: rect(0, 0, 0, 0);
  }
  100% {
    clip: rect(0, 0, 0, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(10px, 9999px, 60px, 0);
  }
  5% {
    clip: rect(90px, 9999px, 20px, 0);
  }
  10% {
    clip: rect(40px, 9999px, 10px, 0);
  }
  15% {
    clip: rect(20px, 9999px, 80px, 0);
  }
  /* Pausa larga */
  20% {
    clip: rect(0, 0, 0, 0);
  }
  100% {
    clip: rect(0, 0, 0, 0);
  }
}

/* =========================================
   11. PRELOADER (INTRO CINEMÁTICA)
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000; /* Negro puro para la intro */
  z-index: 9999; /* Por encima de TODO */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* Estado oculto (se activa con JS) */
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 5px;
  color: white;
  margin-bottom: 20px;
  animation: logoPulse 2s infinite ease-in-out;
}

.loader-line {
  width: 0%; /* Empieza vacío */
  height: 2px;
  background: var(--gradient-main);
  margin: 0 auto;
  box-shadow: 0 0 15px var(--accent-purple);
  animation: loadLine 1.5s ease-in-out forwards; /* La barra se llena */
}

/* Animaciones */
@keyframes logoPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
}

@keyframes loadLine {
  0% {
    width: 0%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* BOTÓN VOLVER ARRIBA */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-purple);
  font-size: 1.2rem;
  z-index: 900;
  cursor: pointer;
  transition: 0.3s;

  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* =========================================
   12. NEWSLETTER SECTION (LIQUID NEON)
   ========================================= */
.newsletter-section {
  padding: 20px 0 80px;
  position: relative;
}

.games-section {
  padding-bottom: 40px;
}

.newsletter-box {
  position: relative;
  border-radius: 20px;
  padding: 3px; /* Grosor del borde de luz */

  /* EL FONDO MÁGICO ANIMADO */
  background: linear-gradient(
    60deg,
    #1a1a20,
    #1a1a20,
    #1a1a20,
    var(--accent-blue),
    var(--accent-purple),
    var(--accent-blue),
    #1a1a20,
    #1a1a20,
    #1a1a20
  );
  background-size: 300% 300%; /* Hacemos el fondo enorme */
  animation: liquid-flow 6s ease infinite; /* Animación lenta y fluida */

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); /* Sombra base */
}

/* Sombra Brillante (Glow) que también se mueve */
.newsletter-box::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: inherit; /* Copia el mismo degradado */
  background-size: inherit;
  animation: inherit; /* Copia la misma animación */
  filter: blur(30px); /* Lo desenfocamos para crear el "Glow" */
  opacity: 0.6;
}

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

/* Contenido interno (Tapamos el centro para dejar solo el borde) */
.newsletter-inner {
  background: var(--bg-surface); /* Fondo oscuro sólido */
  border-radius: 17px; /* Un poco menos que el padre para encajar */
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  overflow: hidden; /* Para recortar el icono gigante */
}

/* Resto de estilos iguales... */
.newsletter-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.newsletter-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Formulario */
.input-group {
  display: flex;
  gap: 15px;
}
.input-group input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 50px;
  color: white;
  font-family: var(--font-body);
  outline: none;
  transition: 0.3s;
}
.input-group input:focus {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

/* Icono Decorativo */
.newsletter-icon {
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.02);
  position: absolute;
  right: 20px;
  bottom: -40px;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .newsletter-inner {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }
  .input-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 20px;
  }
  .newsletter-icon {
    font-size: 10rem;
    right: 50%;
    transform: translateX(50%) rotate(-15deg);
    bottom: 10px;
    opacity: 0.5;
  }
}

/* =========================================
   13. ROADMAP (TIMELINE)
   ========================================= */
.roadmap-container {
  position: relative;
  padding: 20px 0;
}

/* La línea vertical central */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Dibujamos la línea de neón */
.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-blue),
    var(--accent-purple),
    transparent
  );
  top: 0;
  bottom: 0;
  left: 50%; /* En el centro */
  margin-left: -1px;
  box-shadow: 0 0 15px var(--accent-purple);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%; /* Ocupa la mitad del ancho */
}

/* Posicionamiento Zig-Zag */
.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* CONTENIDO DE LA TARJETA */
.timeline-content {
  padding: 30px;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Tarjeta activa (En progreso) */
.glass-active {
  background: linear-gradient(
    145deg,
    rgba(22, 22, 26, 0.9),
    rgba(59, 130, 246, 0.1)
  );
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* LOS PUNTOS DE LUZ (DOTS) */
.timeline-dot {
  width: 20px;
  height: 20px;
  background: #1a1a20;
  border: 3px solid var(--text-secondary);
  border-radius: 50%;
  position: absolute;
  top: 30px; /* Alineado con el título */
  z-index: 10;
}

/* Posición de los puntos según lado */
.timeline-item.left .timeline-dot {
  right: -10px;
} /* En la línea central */
.timeline-item.right .timeline-dot {
  left: -10px;
}

/* Estilos de los puntos */
.timeline-dot.completed {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple);
}
.timeline-dot.current {
  background: var(--accent-blue);
  border-color: white;
  box-shadow: 0 0 20px var(--accent-blue);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* TEXTOS Y BADGES */
.timeline-date {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: white;
}
.timeline-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.done {
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent-purple);
}
.status-badge.progress {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}
.status-badge.future {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* --- RESPONSIVE (Móvil) --- */
@media screen and (max-width: 768px) {
  /* La línea se mueve a la izquierda */
  .timeline::after {
    left: 31px;
  }

  /* Las cajas ocupan todo el ancho y se van a la derecha */
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Forzamos alineación a la izquierda siempre */
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  /* Movemos los puntos a la izquierda */
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 21px; /* Alineado con la línea */
    right: auto;
  }
}

/* =========================================
   15. PÁGINAS DE PRODUCTO (JUEGOS)
   ========================================= */

/* Hero Específico */
.game-hero {
  min-height: 90vh; /* Casi pantalla completa */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
  background: radial-gradient(
    circle at center,
    rgba(16, 185, 129, 0.05),
    transparent 60%
  );
}

.game-logo-text {
  font-size: 1rem;
  letter-spacing: 8px;
  font-weight: 900;
  color: #10b981; /* Verde FarmerLand */
  margin-bottom: 20px;
  opacity: 0.8;
}

.game-hero-content h1 {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 30px;
}

/* BOTONES DE TIENDA (STORE BUTTONS) */
.store-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  color: black;
  padding: 10px 25px;
  border-radius: 12px;
  transition: 0.3s;
  text-align: left;
  min-width: 200px;
}

.store-btn i {
  font-size: 2rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.btn-text span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.btn-text strong {
  font-size: 1.2rem;
  font-family: sans-serif;
}

.store-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.store-btn.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.store-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 100px 0;
}

.feature-card {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.feature-card:hover {
  border-color: #10b981;
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: #10b981;
  margin-bottom: 20px;
}

/* SCREENSHOT GALLERY */
.gallery-section {
  padding-bottom: 100px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 20px;
  margin-top: 50px;
}

.screen-item {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.placeholder-screen {
  width: 100%;
  height: 100%;
  background: #202025;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
}

.download-cta {
  background: var(--bg-surface);
  padding: 100px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Forzamos al contenedor a centrar todo vertical y horizontalmente */
.download-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrado horizontal */
  justify-content: center;
  text-align: center;
}

.download-cta h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.download-cta p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Botón Esmeralda Específico (Sin estilos en línea) */
.btn-emerald {
  background-color: #10b981;
  color: white;
  /* Flex para centrar icono y texto perfectamente */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Espacio entre texto e icono */
  padding: 16px 40px; /* Un poco más grande */
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3); /* Sombra verde */
}

.btn-emerald:hover {
  background-color: #059669; /* Verde más oscuro al pasar ratón */
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

/* =========================================
   16. GALERÍA LIGHTBOX
   ========================================= */

/* Estilo de las imágenes en la rejilla */
.screen-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Efecto Hover: Zoom suave */
.screen-item:hover .gallery-img {
  transform: scale(1.1);
}

/* Icono de lupa al pasar el ratón */
.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}
.screen-overlay i {
  color: white;
  font-size: 2rem;
  transform: scale(0);
  transition: 0.3s;
}
.screen-item:hover .screen-overlay {
  opacity: 1;
}
.screen-item:hover .screen-overlay i {
  transform: scale(1);
}

/* EL LIGHTBOX (Ventana Modal) */
.lightbox {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 10000; /* Encima de TODO */
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95); /* Fondo casi negro */
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.2); /* Sombra verde sutil */
  animation: zoomIn 0.3s;
}

#lightbox-caption {
  margin-top: 20px;
  color: #ccc;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.lightbox-close:hover {
  color: var(--accent-purple);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================================
   17. UI POLISHING (SCROLLBAR & SELECTION)
   ========================================= */

/* 1. COLOR DE SELECCIÓN DE TEXTO */
::selection {
  background: var(--accent-purple); /* Fondo morado al seleccionar */
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Para Firefox */
::-moz-selection {
  background: var(--accent-purple);
  color: white;
}

/* 2. BARRA DE SCROLL PERSONALIZADA (Webkit: Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px; /* Más fina que la normal (suele ser 17px) */
  background-color: var(--bg-color);
}

/* El carril (fondo de la barra) */
::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* El pulgar (lo que mueves) */
::-webkit-scrollbar-thumb {
  background-color: var(--bg-surface);
  border-radius: 10px; /* Redondita */
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}

/* Al pasar el ratón por encima de la barra */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-purple); /* Se ilumina */
  box-shadow: 0 0 10px var(--accent-purple);
}

/* =========================================
   18. PAGINA CONTACTO
   ========================================= */

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  width: 100%;
  padding: 20px;
}
.contact-info h1 {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 20px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}
.social-list a:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-purple);
  transform: translateX(10px);
}

/* Formulario simple */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
input,
textarea {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px;
  color: white;
  font-family: var(--font-body);
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
