/* ================================================================
   SKYLINE CHASE — Estilos de la página Proyecto
================================================================ */

:root {
  /* Variables: Centralizamos los colores para que el diseño sea coherente */
  --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 Y BASE: Asegura que todos los navegadores partan de cero (limpiando márgenes) */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* NAVBAR: Estructura flexible (Flexbox) con efecto de cristal ahumado (Glassmorphism) */
.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);
}

/* SECCIONES: Contenedor estándar con limitador de ancho (max-width) */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(2rem, 5vw, 3.2rem); /* Tamaño fluido según la pantalla */
  color: var(--blanco);
  margin-bottom: 1rem;
}

/* TARJETAS PROYECTO: Diseño de rejilla (CSS Grid) de 2 columnas */
.about-highlight {
  border-left: 3px solid var(--rojo);
  padding: 1.5rem 1.75rem;
  background: rgba(192, 57, 43, 0.06);
  border-radius: 0 10px 10px 0;
  color: var(--blanco-suave);
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
  gap: 1.25rem;
}

.about-card {
  background: var(--gris-oscuro);
  border: 1px solid var(--gris-medio);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.25s;
}
.about-card:hover {
  border-color: var(--rojo);
}

.about-card h3 {
  color: var(--blanco);
  margin-bottom: 0.75rem;
}
.about-card p {
  font-size: 0.9rem;
  color: var(--gris-texto);
}

/* HERO SECTION: Contenedor para el botón final de GitHub */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6rem;
}

.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);
}

/* FOOTER: Pie de página centrado */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--gris-medio);
  color: var(--gris-texto);
  font-size: 0.85rem;
}
.footer-name {
  color: var(--rojo-vivo);
  font-weight: 600;
}

/* 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);
  }
}
