/* ================================================================
   SKYLINE CHASE — Estilos del Inicio
================================================================ */

:root {
  /* VARIABLES: Definimos los colores aquí para que el código sea fácil de mantener */
  --rojo: #c0392b;
  --rojo-vivo: #e74c3c;
  --rojo-oscuro: #7b1818;
  --negro: #0a0a0a;
  --gris-oscuro: #1a1a1a;
  --gris-medio: #2a2a2a;
  --gris-texto: #888888;
  --blanco: #ffffff;
  --blanco-suave: #cccccc;
  --fuente-titulo: "Bebas Neue", sans-serif;
  --fuente-cuerpo: "Barlow", sans-serif;
}

/* RESET: Quitamos márgenes por defecto para que todo encaje perfectamente */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-cuerpo);
  background-color: var(--negro);
  color: var(--blanco);
  line-height: 1.7;
}

/* NAVBAR: Barra fija con efecto de cristal (blur) para dar un toque moderno */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px); /* Difumina el contenido que pasa por detrás */
  border-bottom: 1px solid var(--rojo-oscuro);
}

.nav-logo {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  letter-spacing: 3px;
}

.nav-logo span {
  color: var(--rojo);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--blanco-suave);
  font-size: 0.88rem;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rojo-vivo);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* --- SUBMENÚ DESPLEGABLE --- */
.tiene-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--gris-oscuro);
  border-top: 3px solid var(--rojo);
  width: 120px;
  list-style: none;
}

.tiene-submenu:hover .submenu {
  display: block;
}

/* Botón de descarga rápido */
.btn-download {
  background: var(--rojo);
  color: var(--blanco);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-download:hover {
  background: var(--rojo-vivo);
  transform: translateY(-3px);
}

/* HERO: Contenedor principal de la bienvenida */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

/* Capa de degradado para dar ese tono rojizo/oscuro de fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 0%,
      rgba(192, 57, 43, 0.4) 0%,
      transparent 70%
    ),
    var(--negro);
  z-index: 0;
}

/* Partículas: Simulación de estrellas mediante múltiples gradientes radiales pequeños */
.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, white 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 42%, white 0%, transparent 100%),
    radial-gradient(1px 1px at 62% 12%, white 0%, transparent 100%),
    radial-gradient(2px 2px at 85% 85%, white 0%, transparent 100%);
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-tag {
  display: inline-block;
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.5);
  color: var(--rojo-vivo);
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(
    3.5rem,
    10vw,
    7.5rem
  ); /* Se ajusta solo según el tamaño del monitor */
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.title-accent {
  color: var(--rojo);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--blanco-suave);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-btn {
  background: var(--rojo);
  color: var(--blanco);
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s;
}
.hero-btn:hover {
  background: var(--rojo-vivo);
  transform: translateY(-3px);
}

/* BADGES: Estilo de "pastilla" transparente para las características */
.hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--blanco-suave);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--rojo) 50%,
    transparent 100%
  );
}

footer {
  text-align: center;
  padding: 3rem;
  color: var(--gris-texto);
  font-size: 0.85rem;
}
.footer-name {
  color: var(--rojo-vivo);
  font-weight: 600;
}

/* ── COMPARTIR ── */
.compartir-section {
  padding: 4rem 0;
}

.compartir-grid {
  display: grid;
  /* 4 columnas en PC, pero abajo le añadiremos responsive para que no se rompa en móvil */
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem; /* Margen de seguridad para pantallas pequeñas */
}

.compartir-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.4rem 1rem;
  border-radius: 14px;
  /* Usamos un sutil borde rojo oscuro en lugar del amarillo original */
  border: 1px solid rgba(123, 24, 24, 0.3);
  /* Reemplazado var(--ink2) por tu gris oscuro de fondo */
  background: var(--gris-oscuro);
  text-decoration: none;
  /* Sincronizado con la fuente de cuerpo de tu proyecto */
  font-family: var(--fuente-cuerpo);
  text-align: center;
  transition:
    border-color 0.2s,
    transform 0.15s,
    background 0.2s;
}

.compartir-btn:hover {
  transform: translateY(-3px);
  /* Reemplazado var(--ink3) por tu gris medio para el efecto hover */
  background: var(--gris-medio);
}

/* Colores de los bordes al pasar el cursor (Hover personalizados) */
.compartir-x:hover {
  border-color: var(--blanco-suave);
}

.compartir-reddit:hover {
  border-color: #ff5000; /* Color oficial de Reddit */
}

.compartir-whatsapp:hover {
  border-color: #25d366; /* Color oficial de WhatsApp */
}

.compartir-copy:hover {
  /* Reemplazado el amarillo por tu rojo vivo de marca */
  border-color: var(--rojo-vivo);
}

.compartir-icon {
  font-size: 1.6rem;
  font-style: normal;
  /* Reemplazado var(--cream) por tu blanco de la plantilla */
  color: var(--blanco);
}

.compartir-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.compartir-label {
  font-size: 0.65rem;
  /* Reemplazado var(--muted) por tu gris de texto oficial */
  color: var(--gris-texto);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compartir-name {
  font-size: 0.88rem;
  font-weight: 700;
  /* Reemplazado var(--cream) por tu blanco suave para que contraste bien */
  color: var(--blanco-suave);
}

/* --- RESPONSIVE --- */
/* Si mantienes 4 columnas en móviles, los botones se van a estrujar demasiado y el texto no cabrá */
@media (max-width: 640px) {
  .compartir-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
  }
}

/* RESPONSIVE: Pequeños retoques para que en móviles no se rompa el diseño */
@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }
  .hero-title {
    letter-spacing: 2px;
  }
  .navbar {
    padding: 0 1rem;
  }
}

/* Ocultamos el cursor original en toda la página */
*,
body {
  cursor: none !important;
}

/* ── CURSOR ── */
* {
  cursor: none !important;
}

.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
}
.cursor-coin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold2);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transform: translate(-50%, -50%);
  transition:
    width 0.12s,
    height 0.12s,
    box-shadow 0.12s;
}
.cursor-coin.hovering {
  width: 36px;
  height: 36px;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.7);
}
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: trail-fade 0.5s ease forwards;
}
@keyframes trail-fade {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}
