/* ================================
   1. VARIABLES Y BASE
   ================================ */

:root {
  --bg-main: #05081b;
  --bg-body: #0a0f1d;
  --bg-body-secondary: #070b22;
  /* Color de tarjeta semitransparente para efecto cristal */
  --bg-card: rgba(7, 11, 34, 0.6);
  --accent-cyan: #00e5ff;
  --accent-purple: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-soft: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);

  /* FONDO TÉCNICO: Grilla sutil + degradado radial */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #1a1f47 0%, #05081b 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-attachment: fixed;
  /* El fondo se queda quieto al hacer scroll */
  overflow-x: hidden;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ================================
   2. HEADER / NAV (SOFISTICADO)
   ================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Efecto vidrio esmerilado */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 27, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Línea de luz neón en el borde inferior */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
  opacity: 0.7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

/* LOGO */
.logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-main {
  font-family: "Pridi", serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo-accent {
  font-family: "Pridi", serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  text-shadow: 0 0 15px var(--accent-cyan);
}

/* NAVEGACIÓN ESCRITORIO */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* Línea animada bajo los enlaces */
.main-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: width 0.3s ease-out;
  border-radius: 10px;
}

.main-nav a:hover::before,
.main-nav a.active::before {
  width: 80%;
}

/* DROPDOWN MEJORADO */
.nav-dropdown {
  position: absolute;
  top: 120%;
  /* Un poco más abajo */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(7, 11, 34, 0.95);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.8rem;
  display: none;
  min-width: 220px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 110;
  white-space: nowrap;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-dropdown a:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent-cyan);
  transform: translateX(5px);
}

.nav-dropdown-active {
  color: var(--accent-cyan) !important;
  font-weight: 600;
}

/* BOTÓN HAMBURGUESA (MÓVIL) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.2rem;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

/* Truco para 3 líneas a X, si usas 3 */
/* Ajuste para 2 líneas (tu HTML tiene 2 spans) */
.nav-toggle span:nth-child(2) {
  margin-top: 0;
}

.nav-toggle.open span:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
  opacity: 1;
}


/* ================================
   3. HERO SECTION
   ================================ */

.hero {
  padding: 6rem 0 5rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Título con gradiente en el texto */
.hero h1 {
  margin: 0 0 1.2rem;
  font-family: "Pridi", serif;
  font-weight: 700;
  font-size: 3.8rem;
  line-height: 1.1;
  background: linear-gradient(to right, #fff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 50ch;
}

/* BOTÓN PRINCIPAL */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #05081b;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Efecto hover del botón (inversión suave) */
.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.5);
}

.btn-gradient:hover::before {
  opacity: 1;
}

/* IMAGEN HERO CON GLOW Y 3D */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.4), transparent 60%);
  filter: blur(40px);
  animation: pulse-glow 6s infinite alternate;
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  display: block;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* ================================
   4. SECCIONES (HYDRO, STEAM, SERVICIOS)
   ================================ */

.section {
  padding: 6rem 0;
  position: relative;
}

/* HYDROGRID */
.hydro-section {
  text-align: center;
}

.hydro-inner h2 {
  font-size: 2.2rem;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hydro-name {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  font-weight: 700;
}

.hydro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* STEAM CARD (Glassmorphism) */
.steam-section {
  padding-top: 2rem;
}

.steam-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.steam-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* Borde superior brillante */
.steam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.steam-card h3 {
  font-family: "Pridi", serif;
  font-size: 2rem;
  color: #fff;
  margin: 0 0 1.5rem;
  text-align: center;
}

.steam-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  line-height: 1.6;
  text-align: justify;
}

.steam-media {
  display: flex;
  justify-content: center;
}

.steam-media img,
.steam-media video,
.steam-image {
  border-radius: 24px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s ease;
  background: #1e293b;
  /* Placeholder por si la img es transparente */
  object-fit: cover;
}

.steam-media img:hover {
  transform: scale(1.02);
}

/* SERVICIOS (Grid) */
.section-title {
  font-family: "Pridi", serif;
  font-size: 2rem;
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 3.5rem;
  font-size: 1.1rem;
  max-width: 600px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.card h4 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Punto decorativo en tarjeta */
.card::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.projects-section {
  text-align: center;
}

/* ================================
   5. FOOTER (ALINEACIÓN CORREGIDA)
   ================================ */

.site-footer {
  margin-top: 6rem;
  padding: 5rem 0 3rem;
  background-color: #020412;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Luz superior y fondo (igual que antes) */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
  opacity: 0.5;
  box-shadow: 0 0 20px var(--accent-purple);
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  /* Esto separa las columnas al máximo */
  align-items: flex-start;
  /* Alinea todo arriba */
  gap: 2rem;
  flex-wrap: wrap;
}

/* --- COLUMNAS GENERALES --- */
.footer-col {
  flex: 1;
  /* Toman el mismo ancho disponible */
  min-width: 200px;
}

/* Estilos de títulos H4 */
.footer-col h4 {
  font-family: "Pridi", serif;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 1.5rem;
  position: relative;
  display: inline-block;
}

/* Línea decorativa debajo del título (Base) */
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Estilos de enlaces */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 300;
  transition: all 0.3s ease;
  display: inline-block;
}

/* --- ALINEACIONES ESPECÍFICAS --- */

/* IZQUIERDA (Nosotros) */
.footer-col-left {
  text-align: left;
}

.footer-col-left h4::after {
  left: 0;
  /* Línea a la izquierda */
}

.footer-col-left .footer-links-list a:hover {
  color: var(--accent-cyan);
  transform: translateX(6px);
  /* Se mueve a la derecha */
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* CENTRO (Logo y Redes) */
.footer-col-center {
  text-align: center;
  flex: 1.5;
  /* Un poco más ancho si es necesario */
}

/* DERECHA (Contáctanos) - AQUÍ ESTÁ EL CAMBIO CLAVE */
.footer-col-right {
  text-align: right;
  /* Alinea todo el texto a la derecha */
}

.footer-col-right h4::after {
  right: 0;
  /* Línea pegada a la derecha */
  left: auto;
  /* Anula la izquierda */
}

/* Hover Espejo: Se mueve hacia la IZQUIERDA al pasar el mouse */
.footer-col-right .footer-links-list a:hover {
  color: var(--accent-cyan);
  transform: translateX(-6px);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* --- ELEMENTOS CENTRALES --- */
.footer-brand-main {
  font-family: "Pridi", serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  color: #fff;
}

.footer-brand-accent {
  font-family: "Pridi", serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social a:hover {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.1);
  transform: translateY(-5px) scale(1.1);
}

.footer-logo-image img {
  max-width: 100px;
  display: block;
  margin: 0 auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-logo-image img:hover {
  opacity: 1;
}

/* --- RESPONSIVE DEL FOOTER --- */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }

  .footer-col {
    width: 100%;
    max-width: 360px;
  }

  /* En móvil todo vuelve al centro */
  .footer-col-left,
  .footer-col-center,
  .footer-col-right {
    text-align: center;
  }

  /* Centrar las líneas decorativas en móvil */
  .footer-col-left h4::after,
  .footer-col-right h4::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* Quitar desplazamientos laterales en móvil */
  .footer-col-left .footer-links-list a:hover,
  .footer-col-right .footer-links-list a:hover {
    transform: translateX(0) scale(1.05);
  }
}

/* ================================
   6. RESPONSIVE (MÓVIL / TABLET)
   ================================ */

@media (max-width: 960px) {
  .site-header {
    z-index: 1200;
  }

  .header-inner {
    min-height: 64px;
    padding-block: 0.75rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 1;
    /* Texto arriba */
  }

  .hero-media {
    order: 2;
    margin-top: 2rem;
  }

  .hero-sub,
  .hydro-inner h2,
  .hydro-text {
    margin-left: auto;
    margin-right: auto;
  }

  .steam-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* MENÚ MÓVIL */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1202;
    width: 44px;
    height: 44px;
    gap: 0;
    border-radius: 50%;
    touch-action: manipulation;
  }

  .nav-toggle span {
    position: absolute;
  }

  .nav-toggle:not(.open) span:nth-child(1) {
    transform: translateY(-4px);
  }

  .nav-toggle:not(.open) span:nth-child(2) {
    transform: translateY(4px);
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    transform: rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - 64px);
    background: linear-gradient(180deg, #05081b 0%, #070b22 100%);
    border-top: 1px solid var(--border-soft);
    border-bottom: 0;
    padding: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    overscroll-behavior: contain;
    z-index: 1201;
  }

  .main-nav.open {
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: min(100%, 420px);
    min-height: 100%;
    margin-inline: auto;
    padding: 2rem 1.25rem 2.5rem;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Dropdown en móvil: se muestra debajo del ítem */
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    box-shadow: none;
    margin: 0.75rem auto 0;
    padding: 0.55rem;
    white-space: normal;
  }

  .nav-has-dropdown:hover .nav-dropdown {
    display: none;
    transform: none !important;
  }

  .nav-has-dropdown.open .nav-dropdown,
  .nav-has-dropdown.open:hover .nav-dropdown {
    display: block;
    transform: none !important;
  }

  .nav-dropdown a {
    display: flex;
    width: 100%;
    padding: 0.75rem 0.7rem;
  }

  .nav-dropdown a:hover {
    transform: none;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@supports selector(body:has(.main-nav.open)) {
  @media (max-width: 960px) {
    body:has(.main-nav.open) {
      overflow: hidden;
    }
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1120px, 100% - 1.5rem);
  }

  .section {
    padding: 4rem 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 3.5rem;
    padding: 3.5rem 0 2.5rem;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-brand-big {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.35rem;
    max-width: 100%;
  }

  .footer-brand-main,
  .footer-brand-accent {
    font-size: 1.75rem;
    letter-spacing: 0;
  }

  body {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .steam-card {
    padding: 1.5rem;
  }
}

img,
video {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================
   7. ANIMACIONES (REVEAL)
   ================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ESTILOS AÑADIDOS PARA EL ENCABEZADO (NAV-LOGIN-BTN)
   ========================================= */

/* Estilo del nuevo botón "Iniciar Sesión" */
.nav-login-btn {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 20px;
  /* !important asegura que estos estilos tomen prioridad sobre los estilos base de .main-nav a */
  padding: 0.5rem 1.2rem !important;
  margin-left: 1rem;
  color: var(--accent-cyan);
  transition: all 0.3s ease;
  font-weight: 500 !important;
}

.nav-login-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-main) !important;
  /* Texto oscuro al hacer hover */
  text-shadow: none !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

/* Ajustes Responsive para el botón de Login */
@media (max-width: 960px) {
  .nav-login-btn {
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
    width: 100%;
    text-align: center;
  }
}
