/* ======================================
   RESET + BASE GLOBAL
====================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ======================================
   VARIABLES DE DISEÑO (AJUSTABLES)
====================================== */

:root {
  /* Colores base */
  --color-primary: #0f2a3d;      /* Azul profundo elegante */
  --color-secondary: #ffffff;    /* Blanco */
  --color-text: #111111;         /* Texto principal */
  --color-text-light: #555555;   /* Texto secundario */
  --color-accent: #1f6feb;       /* Acento (botones / links) */

  /* Espaciados */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Anchos */
  --max-width: 1200px;

  /* Bordes */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Sombras suaves (Apple-like) */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ======================================
   ELEMENTOS BASE
====================================== */

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: var(--space-lg) var(--space-sm);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

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

.button {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.button:hover {
  background-color: #0b2232;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ======================================
   HEADER / FOOTER BASE (vacíos por ahora)
====================================== */

#main-header,
#main-footer {
  width: 100%;
}
/* ======================================
   HERO PRINCIPAL
====================================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #ffffff;

  background: linear-gradient(
    180deg,
    #0f2a3d,
    #05080c
  );

  background-size: 200% 200%;
  animation: heroGradient 18s ease-in-out infinite;
}
@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  max-width: 700px;
}

#hero h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

#hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

#hero .button {
  background-color: #ffffff;
  color: #0f2a3d;
}

#hero .button:hover {
  background-color: #e6e6e6;
}
/* ======================================
   HEADER + NAV APPLE-LIKE
====================================== */

#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: transparent;
  backdrop-filter: blur(8px);
}

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

.logo a {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.nav-button {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background-color: #ffffff;
  color: #0f2a3d !important;
  font-weight: 500;
}

.nav-button:hover {
  background-color: #e6e6e6;
}
/* ======================================
   MENU HAMBURGUESA (RESPONSIVE)
====================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  display: block;
}

/* ====== MOBILE ====== */
@media (max-width: 900px) {

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0b2232;
    display: none;
  }

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

  .main-nav.active {
    display: block;
  }

}
/* ======================================
   HERO VIDEO
====================================== */

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;

  /* MOBILE FIRST */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== DESKTOP ===== */
@media (min-width: 901px) {
  .hero-video {
    width: auto;
    height: 100%;
    max-width: 520px;   /* controla pixelado */
    object-fit: contain;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 12, 0.7),
    rgba(5, 8, 12, 0.85)
  );
  z-index: 2;
}

#hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audio-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.audio-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}