/* =========================
   FUENTES Y VARIABLES
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variables de colores, tamaños y efectos para reutilizar */
:root {
  --red: #e60012;       /* Rojo Nintendo */
  --red-dark: #b3000e;  /* Rojo oscuro para hover o detalles */
  --muted: #6b6b6b;     /* Gris para textos secundarios */
  --glass: rgba(255,255,255,0.12); /* Transparencia tipo glass */
  --container: 1200px;  /* Máximo ancho del contenido */
}

/* =========================
   RESET Y BASE
========================= */
* {
  box-sizing: border-box; /* Que padding y border no desborden */
}
html, body {
  height: 100%; /* Ocupa toda la altura */
}
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #111;
  background: linear-gradient(180deg,#fafafa 0%, #f1f3f5 100%); /* Fondo claro con degradado */
  -webkit-font-smoothing: antialiased; /* Suaviza tipografía */
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
   NAVEGACIÓN (HEADER)
========================= */
.site-header {
  background: rgba(0,0,0,0.85); 
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40; 
  backdrop-filter: blur(4px); 
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
/* Logo cuadradito rojo */
.logo {
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
}
/* Links del menú */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  transition: background .25s;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.08);
}
/* Botón especial (CTA) */
.cta {
  background: #fff;
  color: var(--red);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* =========================
   HERO SECTION
========================= */
/* recordatorio : "Hero" = es portada grande al inicio con imagen de fondo */
.hero {
  height: 90vh; 
  min-height: 560px;
  margin-top: 64px;

  background-image: url('../assets/images/hardware/hardware-hero-combo.png');
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  position: relative;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-content {
  color: #fff;
  padding: 2rem;
}
.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem;
  text-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.hero-content p {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.9);
}
/* Botón grande dentro del Hero */
.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;

  box-shadow: 0 8px 24px rgba(230,0,18,0.18);
  transition: transform .18s, box-shadow .18s;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

/* =========================
   SECCIONES SPLIT
========================= */
/* recordatorio : "Split" = es sección dividida mitad texto, mitad imagen */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 3rem 0;
}
.split-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.split-content h2 {
  color: var(--red);
  margin-top: 0;
}
.features {
  list-style: disc;
  margin-left: 1.2rem;
  color: var(--muted);
}

/* =========================
   JUEGOS (CARDS)
========================= */
.cards-section {
  padding: 2rem 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1rem;
}
.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover img {
  transform: scale(1.06); 
}
/* Overlay = degradado con título encima */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s;
}
.card:hover .card-overlay {
  opacity: 1;
}
.card-overlay h3 {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

/* =========================
   SCREENSHOTS GRID
========================= */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 1rem;
}
.screenshot-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .25s;
}
.screenshot-grid img:hover {
  transform: scale(1.05);
}

/* =========================
   CONTACTO 
========================= */

.contact-hero {
  padding: 2rem 0;
  background: url('../assets/images/hardware/joy-con-01.png') center/cover no-repeat;
}
.contact-bg {
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18));
  padding: 4rem 0;
  display: flex;
  align-items: center;
}
.contact-panel {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px); /* Efecto glass */
  border-radius: 14px;
  padding: 2rem;
  color: #fff;
  max-width: 900px;
  margin: auto;
}
.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: #fff;
  margin-bottom: 0.8rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width:700px) {
  .field-row {
    grid-template-columns: 1fr 1fr; 
  }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--red);
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.footer-left img {
  border-radius: 40%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.footer-right {
  text-align: center;
}
.credits {
  font-size: 0.85rem;
  opacity: 0.9;
  text-align: center;
  padding: 1rem 0;
  color: rgba(255,255,255,0.95);
}

/* =========================
   DISEÑO RESPONSIVE
========================= */
/* Ajustes para pantallas grandes */
@media (min-width:900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 0;
  }
  .hero-content h1 {
    font-size: 4rem;
  }
  .nav {
    padding: 1.2rem 0;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-right {
    text-align: left;
  }
}
/* Ajustes para pantallas chicas */
@media (max-width:600px) {
  .nav-links {
    display: none; /* Oculto menú en móvil */
  }
  .cta {
    display: none;
  }
  .hero {
    height: 70vh; /* Más chico en móvil */
  }
}