/* ===================== 🔹 RESET Y ESTILO GENERAL 🔹 ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  background-color: #111;
}

/* ===================== 🔹 BARRA DE NAVEGACIÓN 🔹 ===================== */
.navbar { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  background-color: #000; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; /* centra el contenido verticalmente */ 
  padding: 1rem 3rem;
  z-index: 1000; 
  backdrop-filter: blur(5px);
  
  /* 🔹 Parámetros que puedes modificar manualmente */ 
  height: 125px; /* ajusta la altura total de la barra */ 
  padding-left: 3rem; /* espacio a la izquierda */ 
  padding-right: 3rem; /* espacio a la derecha */ 
  padding-top: 0.5rem; /* espacio arriba del logo/texto */ 
  padding-bottom: 0.5rem; /* espacio abajo del logo/texto */ 
  border-bottom: 1px solid #ffc107; 
} 

  /* Contenedor del logo */ 
  .logo { 
    display: flex; 
    align-items: center; 
  } 
  
  /* Imagen del logo: ajusta el tamaño real sin deformar */ 
.form-logo3 { 
  width: 260px; /* tamaño ancho sin deformar */ 
  height: auto; /* mantiene proporción */ 
  object-fit: contain;/* sin deformación */ 
  margin-left: -50px; /* mueve más a la derecha */ 
  margin-top: 5px; margin-bottom: 5px; /* agrega espacio interno */ 
}

/* Enlaces del menú */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #FFD700;
}
/* ===================== 🔹 HERO / SECCIÓN INICIO 🔹 ===================== */
.hero-section {
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.85);
}
.hero-logo {
  max-width: 300px;
  margin-bottom: 1rem;
}
.hero-section h1 {
  font-size: 2rem;
  color: #FFD700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px #000;
}
.hero-section p {
  font-size: 1.1rem;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.btn-cta {
  background-color: #ffc107;
  color: black;
  padding: 0.75rem 2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.btn-cta:hover {
  background-color: #e0a800;
}

/* ===================== 🔹 VIDEOS DE FONDO BAJO NAVBAR 🔹 ===================== */
.video-background {
  position: fixed;
  top: 125px; /* 👈 altura exacta de tu navbar */
  left: 0;
  width: 100vw;
  height: calc(100vh - 125px); /* 👈 ocupa todo el espacio visible debajo */
  display: flex;
  overflow: hidden;
  z-index: -1; /* detrás de todo el contenido */
  background-color: #000;
}

.bg-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  pointer-events: none; /* evita que interfiera con clics */
}

/* proporciones 30 / 40 / 30 */
.bg-video.left { flex: 3; }
.bg-video.center { flex: 4; }
.bg-video.right { flex: 3; }

/* 🔹 EFECTO SUAVE DE ESCALADO PARA MEJOR ADAPTACIÓN VISUAL */
.bg-video:hover {
  transform: scale(1.02);
}

/* 🔹 MODO RESPONSIVO — TABLETS Y CELULARES */
@media (max-width: 1024px) {
  .video-background {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 125px);
  }

  .bg-video {
    flex: 1;
    width: 100%;
    height: 33.33vh;
  }
}

/* 🔹 PARA PANTALLAS MUY PEQUEÑAS */
@media (max-width: 600px) {
  .bg-video {
    height: 33.33vh;
    object-fit: cover;
  }
}

/* 🔹 SEGURIDAD VISUAL EN TELEVISORES Y ULTRA-WIDE */
@media (min-aspect-ratio: 21/9) {
  .bg-video {
    object-position: center;
  }
}

/* 🔹 En móviles se apilan los 3 videos */
@media (max-width: 768px) {
  .video-background {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 125px);
  }
  .bg-video.left,
  .bg-video.center,
  .bg-video.right {
    flex: 1;
    width: 100%;
    height: 33.33vh;
  }
}

/* ===================== 🔹 CARDS / TARJETAS ===================== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 4rem;
  justify-items: center;
}
.card-orange {
  background: rgba(255, 140, 0, 0.15);
  border: 1px solid rgba(255, 140, 0, 0.4);
  border-radius: 18px;
  padding: 1.8rem;
  width: 100%;
  max-width: 360px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.15);
}
.card-orange:hover {
  background: rgba(255, 140, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}
.card-orange h3 {
  color: #ffa533;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card-orange p {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.5;
}

/* ===================== 🔹 SUBCARDS ===================== */
.subcard {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid #F97316;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.8rem;
  color: #ddd;
  font-size: 0.9rem;
  transition: transform 0.3s, background-color 0.3s;
  cursor: pointer;
}
.subcard:hover {
  background-color: rgba(34, 34, 34, 0.9);
  transform: scale(1.02);
}
.subcard h4 {
  color: #F97316;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

/* ===================== 🔹 MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: flex-start; /* 👈 inicia desde arriba */
  z-index: 2000;
  backdrop-filter: blur(5px);
  padding-top: 130px; /* 👈 espacio debajo de la barra de navegación */
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  position: relative;
  background: #111;
  border: 1px solid #333;
  border-radius: 16px;
  max-width: 650px;
  width: 90%;
  max-height: 75vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.4);
  animation: fadeIn 0.3s ease;
  color: white;
}

/* 🔹 Fondo opcional si usas imágenes */
.modal-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
  z-index: 1;
}

.modal-content-wrapper {
  position: relative;
  z-index: 2;
}

.modal-content-wrapper h2 {
  color: #FFD700;
  margin-bottom: 1rem;
}

/* 🔹 Botón de cerrar */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #FFD700;
  font-size: 1rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 215, 0, 0.3);
  transform: scale(1.1);
}

/* 🔹 Animación suave */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ===================== 🔹 ANIMACIONES ===================== */
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ===================== 🔹 SECCIÓN CONTACTO ===================== */
.contacto-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
  margin-top: 5rem; /* espacio debajo de la barra */
}
.contacto-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 90%;
  max-width: 300px;
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #ffc107;
  backdrop-filter: blur(4px);
}
.contacto-section h1 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #ffcc00;
  text-shadow: 1px 1px 2px #000;
}
.contacto-section input, .contacto-section textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ffc107;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.contacto-section button {
  background-color: #ffc107;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contacto-section button:hover {
  background-color: #e0a800;
}

/* ===================== 🔹 RESPONSIVO 🔹 ===================== */
@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  .form-logo3 {
    width: 220px;
    height: auto;
    margin-bottom: 1rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .nav-links a {
    font-size: 1.1rem;
  }
  .cards-container {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .form-logo3 {
    width: 180px;
  }
  .nav-links a {
    font-size: 1rem;
  }
  .cards-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .hero-section h1 {
    font-size: 1.6rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  .form-logo3 {
    width: 150px;
  }
  .nav-links {
    gap: 0.8rem;
  }
  .nav-links a {
    font-size: 0.95rem;
  }
  .hero-section h1 {
    font-size: 1.4rem;
  }
  .hero-section p {
    font-size: 0.9rem;
  }
  .cards-container {
    padding: 1rem;
  }
}
