/* ============================================================
   🧱 RESETEO GLOBAL Y BASE
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
  
body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #f5f5f5;
  scroll-behavior: smooth;
  padding-top: 70px; /* evita que el contenido quede oculto bajo el header fijo */
}

/* ============================================================
   🧩 CONTENEDOR GENERAL
============================================================ */
.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   🔷 NAVBAR (AZUL ACERO)
============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1F497D; /* Azul acero corporativo */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 10px 0;
  transition: background 0.3s ease;
}

/* --- LOGO Y MARCA --- */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -5px;
}

.logo {
  height: 55px;
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.subtext {
  font-size: 0.95rem;
  color: #dbe4f3;
  font-weight: 500;
  line-height: 1;
  margin-left: 8px;
}

/* --- ENLACES DE NAVEGACIÓN --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00aaff;
}

/* ============================================================
   🏞️ SECCIÓN HERO (PORTADA PRINCIPAL)
============================================================ */
.hero {
  height: 100vh;
  background: url('../img/fondo.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Capa oscura sobre imagen */
.overlay {
  background: rgba(0, 0, 0, 0.55);
  position: absolute;
  inset: 0;
}

/* Contenedor principal */
.hero-container {
  display: flex;
  align-items: center;      /* Centrado vertical */
  justify-content: space-between;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  gap: 60px;
  min-height: 100vh;        /* Ocupa toda la pantalla */
  position: relative;
  z-index: 2;
}

/* --- Texto del hero --- */
.hero-text {
  flex: 1;
  text-align: left;
  max-width: 600px;
  padding-top: 0;    /* Centrado perfecto */
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* --- Video del hero --- */
.hero-video {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-video iframe {
  width: 100%;
  max-width: 700px;  
  height: 400px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* --- Botón general --- */
.btn {
  background: #00aaff;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #007acc;
}

/* ============================================================
   📖 SECCIONES GENERALES
============================================================ */
.section {
  padding: 100px 20px;
  text-align: center;
}

.section.dark {
  background: #0a0a0a;
  color: #fff;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.text-container {
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}

/* ============================================================
   🧍 SECCIÓN QUIÉNES SOMOS (CENTRADO Y EQUILIBRADO)
============================================================ */
#nosotros {
  background: #f8f8f8;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#nosotros {
  background: linear-gradient(180deg, #f8f8f8 0%, #e5ebf3 100%);
  position: relative;
}

#nosotros::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #1F497D;
}

/* --- Título principal --- */
#nosotros h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #111;
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

/* Línea decorativa */
#nosotros h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: #1F497D;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* --- Contenedor del texto --- */
#nosotros .text-container {
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.9;
  color: #333;
  font-size: 1.1rem;
  padding: 0 60px;
}

#nosotros .text-container p {
  margin-bottom: 25px;
}

#nosotros .text-container strong {
  color: #1F497D;
  font-weight: 700;
}

/* --- Responsivo --- */
@media (max-width: 900px) {
  #nosotros {
    padding: 70px 15px;
  }

  #nosotros h2 {
    font-size: 2.2rem;
  }

  #nosotros .text-container {
    padding: 0 20px;
    text-align: left;
  }
}

/* ============================================================
   🎯 SECCIÓN MISIÓN Y VISIÓN
============================================================ */
.mision-vision {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.mision-vision .columna {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 40%;
  min-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mision-vision .columna:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.mision-vision h3 {
  color: #1F497D;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.mision-vision p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================================
   👥 SECCIÓN EQUIPO 
============================================================ */
.equipo-section {
  display: flex;
  flex-direction: column;
}

.bloque {
  position: relative;
  display: flex;
  height: 70vh;
  overflow: hidden;
}

.bloque.reverse {
  flex-direction: row-reverse;
}

.bloque img {
  width: 50%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bloque:hover img {
  transform: scale(1.05);
}

.bloque-texto {
  width: 50%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.bloque-texto.visible {
  opacity: 1;
  transform: translateY(0);
}

.bloque-texto h3 {
  font-size: 2rem;
  color: #00aaff;
  margin-bottom: 15px;
}

.bloque-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ============================================================
   🧰 SECCIÓN SERVICIOS
============================================================ */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: #fff;
  color: #000;
  padding: 25px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

/* ============================================================
   🖼️ GALERÍA / SLIDER DESLIZABLE (ESTILO CASEVIP)
============================================================ */
.galeria-section {
  text-align: center;
  background: #f7f7f7;
  padding: 80px 0;
}

.galeria-section h2 {
  font-size: 2rem;
  color: #001d6e;
  margin-bottom: 10px;
  font-weight: 700;
}

.galeria-subtitle {
  font-size: 1rem;
  color: #222;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* ------ CONTENEDOR DEL SLIDER ------ */
.galeria-slider {
  position: relative;
  width: 90%;
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ------ TRACK (donde se mueven las imágenes) ------ */
.galeria-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Mantener proporción 16:9 en cada imagen */
.galeria-track img {
  width: 100%;
  min-width: 100%;

  /* FORZAR PROPORCIÓN 16:9 */
  aspect-ratio: 16/9;

  object-fit: cover;
  object-position: center;
  display: block;
}
/* ------ BOTONES LATERALES ------ */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 40px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background: #1F497D;
}

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

/* ------ RESPONSIVE ------ */
@media (max-width: 900px) {
  .galeria-track img {
    height: 280px;
  }
}

/* ============================================================
   📍 SECCIÓN CONTACTO 
============================================================ */
.contact-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h2 {
  color: #1F497D;
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-info p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-info strong {
  color: #1F497D;
}

.contact-map {
  flex: 1;
  min-width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

/* ============================================================
   ⚫ FOOTER
============================================================ */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 25px 10px;
}

/* ============================================================
   💬 BOTÓN WHATSAPP FLOTANTE
============================================================ */
.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: #fff;
  font-size: 25px;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.whatsapp:hover {
  transform: scale(1.1);
}

/* ============================================================
   📱 RESPONSIVE DESIGN
============================================================ */
@media (max-width: 900px) {
  /* HERO */
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
    padding-top: 0;
  }

  .hero-video iframe {
    max-width: 100%;
    height: 250px;
  }

  /* EQUIPO */
  .bloque {
    flex-direction: column;
    height: auto;
  }

  .bloque img,
  .bloque-texto {
    width: 100%;
  }

  .bloque-texto {
    padding: 40px 20px;
  }

  /* GALERÍA */
  .carousel-track img {
    width: 220px;
    height: 160px;
  }

  /* CONTACTO */
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    margin-bottom: 40px;
  }

  .contact-map iframe {
    height: 300px;
  }
}