/* ========================= RESET Y BASE GLOBAL ========================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

@font-face {
  font-family: 'AstounderTB';
  src: url('/fonts/AstounderSquaredBB.otf') format('truetype');
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Orbitron', sans-serif;

  /* 🔥 FONDO UNIFICADO */
  background: radial-gradient(circle at top, #1a0033, #000);

  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;

  min-height: 100vh;
  display: flex;
  flex-direction: column;

  position: relative;
}

/* 🔥 EFECTO GLOW GLOBAL */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(140,82,255,0.15), transparent 70%);
  animation: pulseBg 6s infinite alternate;
  z-index: -1;
  pointer-events: none;
}

@keyframes pulseBg {
  from { transform: scale(1); opacity: 0.3; }
  to { transform: scale(1.3); opacity: 0.6; }
}

/* 🔥 FOOTER FIX */
main {
  flex: 1;
}

/* ========================= TIPOGRAFÍA ========================= */

h1 { font-size: 3.2rem;}
h2 { font-size: 2.5rem;}
h3 { font-size: 1.8rem;}
h4 { font-size: 1.4rem;}
h5 { font-size: 1.2rem;}
h6 { font-size: 1rem;}

h1, h2, h3, h4, h5, h6 {
  font-family: 'AstounderTB', sans-serif;
  letter-spacing: 1px;
}

a {
  color: #f5b942;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #fff;
}

/* ========================= HEADER ========================= */

.site-header {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 2px solid #8c52ff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: bold;
  color: #fff;
  font-size: 1.2rem;
  position: absolute;
  left: 20px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: bold;
}

/* ========================= HERO ========================= */

.hero {
  min-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #2c1a4b, #1a0f2e);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 70%);
  animation: pulse 5s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
}

.hero-text {
  max-width: 500px;
  text-align: center;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.highlight {
  color: #f5b942;
}

.subtitle {
  font-size: 1.2rem;
  color: #d5c2ff;
  margin-bottom: 1rem;
}

.description {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.hero-btn {
  background: #8c52ff;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: bold;
}

.hero-btn:hover {
  background: #f5b942;
  color: #111;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
}

/* ========================= INFO ========================= */

.info {
  text-align: center;
  padding: 4rem 2rem;

  /* 🔥 FIX CLAVE */
  background: transparent;
}

/* ========================= GRID ========================= */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  border: 1px solid #f5b942;
}

.info-card h3 {
  color: #ff66cc;
}

/* ========================= BOTONES ========================= */

.ver-detalles {
  display: inline-block;
  margin-top: 15px;
  padding: 0.8rem 1.8rem;
  background-color: #8c52ff;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
}

.ver-detalles:hover {
  background-color: #f5b942;
  color: #111;
}

/* ====================== FOOTER GLOBAL ====================== */
.site-footer {
  text-align: center;
  padding: 20px 0;
  background-color: #000;
  color: #ccc;
  border-top: 2px solid #8c52ff;

  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ========================= MOBILE ========================= */

@media (max-width: 768px) {

  .header-inner {
    padding: 1rem;
  }

  .brand {
    position: static;
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 200;
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: 0.4s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  .main-nav a {
    font-size: 1.3rem;
  }

}

/* 🔒 oculto en desktop */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
  }
}

/* 🔥 HEADER PRO */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(140,82,255,0.3);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
}

/* 🔥 BRAND PRO */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f5b942;
  letter-spacing: 1px;
}

/* 🔥 NAV PRO */
.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: bold;
  color: #fff;
  position: relative;
}

/* efecto underline pro */
.main-nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #f5b942;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

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