/* ------------------------ */
/*      CONFIGURACIÓN      */
/* ------------------------ */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* ------------------------ */
/*          HEADER          */
/* ------------------------ */

.nav-header {
  background: #af601a;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-contenedor {
  text-align: center;
}

.logo {
  height: 60px;
}

.eslogan {
  font-size: 0.8rem;
  color: #ccc;
  font-style: italic;
  margin-top: 0.3rem;
}

/* Botón hamburguesa */
.menu-toggle {
  font-size: 2rem;
  background: none;
  color: white;
  border: none;
  display: none;
  margin-top: 0.5rem;
}

/* Menú de navegación */
.barra-navegacion {
  width: 100%;
}

.barra-navegacion ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0.5rem 0 0;
}

.barra-navegacion a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: 0.3s ease;
}

.barra-navegacion a:hover {
  background: #00c1d4;
  color: #002350;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .barra-navegacion {
    display: none;
  }

  .barra-navegacion.mostrar {
    display: block;
  }

  .barra-navegacion ul {
    flex-direction: column;
    align-items: center;
    background: #002350;
    padding: 1rem 0;
  }
}

/* ------------------------ */
/*         HERO VIDEO       */
/* ------------------------ */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.fondo-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texto-hero {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 40%;
}

.texto-hero h1 {
  font-size: 3rem;
  margin: 0;
}

.texto-hero p {
  font-size: 1.2rem;
}

/* ------------------------ */
/*         GALERÍA          */
/* ------------------------ */

.galeria-modelos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.modelo {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.modelo:hover {
  transform: scale(1.02);
}

.modelo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.modelo p {
  padding: 0.8rem;
  font-size: 0.95rem;
  text-align: center;
  color: #333;
}

.contenido-modelos {
  padding-top: 130px;
  background: #fff;
  padding: 2rem;
}

.contenido-modelos h1 {
  text-align: center;
  color: #002350;
}

.intro-modelos {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: #444;
}

/* ------------------------ */
/*        LIGHTBOX          */
/* ------------------------ */

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 130px; /* Ajuste para que quede debajo del nav */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-contenido {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.cerrar {
  position: absolute;
  top: 130px; /* Alineado con padding-top */
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3000;
}

/* ------------------------ */
/*         FOOTER           */
/* ------------------------ */

.footer {
  background: #566573;
  color: white;
  padding: 2rem;
}

.footer-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-contacto,
.footer-info,
.footer-redes {
  flex: 1 1 300px;
}

.footer-contacto h3,
.footer-info h3,
.footer-redes h3 {
  margin-bottom: 0.5rem;
}

.form-footer input,
.form-footer textarea {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.6rem;
  border: none;
  border-radius: 5px;
}

.form-footer button {
  background-color: #ffffff;
  color: #002350;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.footer-redes img {
  height: 32px;
  margin: 0.3rem;
  transition: transform 0.3s;
}

.footer-redes img:hover {
  transform: scale(1.2);
}

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* ------------------------ */
/*     SECCIONES VARIAS     */
/* ------------------------ */

.contenido-nosotros,
.contenido-servicios {
  padding-top: 130px;
  background: #fdfdfd;
  font-family: Arial, sans-serif;
}

.contenido-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.imagen-lado img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.textos-nosotros {
  flex: 1;
}

.textos-nosotros h1,
.textos-nosotros h2 {
  color: #002350;
}

.boton-visitanos {
  display: inline-block;
  background: #002350;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.boton-visitanos:hover {
  background: #00c1d4;
  color: #002350;
}
.carrusel {
  flex: 1 1 100%;
  max-width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.carrusel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: opacity 0.4s;
}
.seccion-detalles {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: space-between;
  background: #ffffff;
}

.bloque {
  flex: 1 1 45%;
  min-width: 300px;
}
.intro-servicio {
  text-align: center;
  padding: 2rem 1rem;
  background: #f0f0f0;
  margin-bottom: 2rem;
}

.intro-servicio h1 {
  color: #002350;
  margin-bottom: 1rem;
}

.intro-servicio p {
  font-size: 1.1rem;
  color: #333;
  margin: 0.3rem 0;
}
.seccion-intro .texto {
  flex: 1;
  min-width: 300px;
  padding: 1rem 2rem; /* margen interno a derecha e izquierda */
  background: #f9f9f9;
  border-radius: 10px;
}
