/* Estilos generales de style.css */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
}

/* --- HEADER --- */
.header {
  background: #08163b;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* --- Navbar base --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.menu-btn {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Menú principal --- */
.menu-auth {
  display: flex;
  gap: 20px;
}
.menu {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.menu a:hover {
  color: #00c3ff;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 100px;
    height: auto;
    background: white;
    border: 4px solid #efefef;
    border-radius: 10px;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.btn {
  display: inline-block;
  background-color: #0a1a44;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #142b70;
}
/* Menú de navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #d1d1d1;
}

/* --- HERO --- */
.hero {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10%;
  background: white;
}

.hero-content {
  max-width: 50%;
}

.hero-content h2 {
  color: #0a1a44;
  font-size: 2rem;
}

.hero-content p {
  margin: 20px 0;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background-color: #0a1a44;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #142b70;
}

.hero-image {
  width: 40%;
  border-radius: 10px;
}

/* --- SECCIONES --- */
.info {
  padding: 60px 10%;
  text-align: center;
  background: white;
  margin-top: 20px;
  border-radius: 8px;
}

.info img {
  margin-top: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
}

.contacto {
  padding: 60px 10%;
  text-align: center;
  background-color: #e6e6e6;
}
/* --- Sección de video + información --- */
.video-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10%;
  margin-top: 30px;
  background: white;
  border-radius: 10px;
  gap: 40px;
}

.video-container {
  flex: 1;
}

.video-container video {
  width: 100%;
  border-radius: 10px;
  border: 3px solid #0a1a44;
}

.video-info {
  flex: 1.2;
  color: #0a1a44;
}

.video-info h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.video-info p {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 15px;
  background-color: #0a1a44;
  color: white;
}

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

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    margin-top: 20px;
  }
  .video-section {
    flex-direction: column;
    text-align: center;
  }

  .video-info {
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 600px) {

  .btn {
    padding: 8px 16px;
  }
}


/* --- 📱 Vista móvil (mejorada) --- */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    position: relative;
    z-index: 1100;
  }

  /* El header se mantiene pequeño */
  .navbar {
    justify-content: space-between;
    align-items: center;
  }

  /* 🔹 Menú lateral oculto */
  .menu {
    position: fixed;
    top: 0;
    right: -260px; /* fuera de pantalla */
    width: 250px;
    height: 84vh;
    background: #0a1a44;
    flex-direction: column;
    display: flex;
    align-items: flex-start;
    padding: 80px 20px;
    gap: 25px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
  }

  /* 🔹 Menú cuando se muestra */
  .menu.show {
    right: -90px;
    opacity: 1;
  }

  /* Evita scroll de fondo */
  .menu-open {
    overflow: hidden;
  }

  /* Los enlaces del menú */
  .menu a {
    width: 100%;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .menu a:last-child {
    border-bottom: none;
  }
  /* --- Fondo oscuro detrás del menú --- */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900; /* justo debajo del menú */
  }
  
  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  .menu-auth {
    margin-top: auto;     /* ← AHORA funciona */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .menu-auth a {
    width: 100%;
    font-size: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
  }
}
