 html,
 body {
     overflow-x: hidden !important;
     width: 100%;
 }

 * {
     box-sizing: border-box;
 }

 img,
 video,
 iframe {
     max-width: 100%;
     height: auto;
     display: block;
 }

 :root {
     --color-1: #124186;
     --color-2: #dfdfdf;
     --color-3: #353535;

     --my-6: 90px;
 }

 /* Navbar de arriba +++++++++++ */
.top-bar {
    background-color: #353535;
    height: 30px;
    display: flex;
    align-items: center;
    z-index: 1031;
}

 .navbar-main {
     top: 30px;
     z-index: 1030;
 }

 .content {
     margin-top: 110px;
 }

 /* Navbar ++++++++++++++++++++++++++ */

 .logo-img {
     height: 45px;
     width: auto;
     object-fit: contain;
     display: block;
 }

 .navbar-nav a {
     color: var(--color-1);
 }

 .bg-light {
     --bs-bg-opacity: 1;
     background-color: rgb(255, 255, 255) !important;
 }

 /* backgraund */
 .video-background {
     position: relative;
     width: 100vw;
     height: 100vh;
     overflow: hidden;
 }

 .bg-video {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 0;
 }

 .video-overlay {
     position: relative;
     z-index: 1;
     background: rgba(0, 0, 0, 0.4);
     width: 100%;
     height: 100%;
 }

 .bg-background {
     background: #dfdfdf;
 }

 .img-servicio {
     height: 300px;
     width: 100%;
     object-fit: cover;
 }

 .texto p {
     color: #fff;
 }

 /* abajo del video  */
/* IMÁGENES PEGADAS */
.img-stack {
  display: flex;
  flex-direction: column;
  height: 600px;   
}

.img-item {
  height: 50%;
}

.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* TEXTO */
.titulo {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.descripcion {
  max-width: 520px;
  margin-bottom: 40px;
}

/* LISTA */
.lista-check {
  list-style: none;
  padding: 0;
}

.lista-check li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 18px;
  font-weight: 600;
}

.lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1f3c88;
  font-size: 1.2rem;
}

/* BLOQUE LISTA + LOGO */
.bloque-info {
  gap: 50px;
  align-items: center;
}

/* LOGO */
.logo-box img {
  width: 170px;
  height: auto;
}

.clientes {
  background-color: #f2f2f2;
  padding: 70px 0;
}

.clientes-titulo {
  display: inline-block;
  border: 2px solid #1f2a44;
  padding: 10px 30px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #1f2a44;
  margin-bottom: 60px;
}

.fila-logos {
  margin-bottom: 50px;
}

.logo {
  height: 100px;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
}
.ecos-col {
  padding-left: 80px;
}
.cta {
  background-color: #0f1e46;
  padding: 80px 0;
}

.cta-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.btn-cta {
  background-color: #e5e5e5;
  color: #0f1e46;
  padding: 12px 30px;
  font-weight: 500;
  border-radius: 3px;
  transition: 0.3s ease;
}

.btn-cta:hover {
  background-color: white;
  color: #0f1e46;
}

.servicios {
  background-color: #f2f2f2;
  padding: 80px 0;
}

/* Etiqueta superior */
.servicios-etiqueta {
  display: inline-block;
  border: 2px solid #1f2a44;
  padding: 6px 20px;
  font-size: 14px;
  margin-bottom: 15px;
  color: #1f2a44;
  font-weight: 700; 
}

/* Título */
.servicios-titulo {
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 10px;
}

/* Card personalizada */
.card-servicio {
  background: white;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  height: 100%;
  transition: 0.3s ease;
}

.card-servicio h5 {
  margin-top: 15px;
  font-weight: 600;
}

.card-servicio p {
  font-size: 14px;
  color: #555;
  margin: 15px 0;
}

/* Botón Saber más */
.btn-servicio {
  border: 1px solid #1f2a44;
  color: #1f2a44;
  padding: 8px 20px;
  border-radius: 5px;
  transition: 0.3s ease;
}

/* 🔥 Hover azul */
.btn-servicio:hover {
  background-color: #1f2a44;
  color: white;
}

/* Botón Ver más */
.btn-vermas {
  background-color: #1f2a44;
  color: white;
  padding: 10px 30px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.btn-vermas:hover {
  background-color: #162038;
}

.img-servicio {
  width: 100%;
  height: 220px;        
  object-fit: cover;   
  border-radius: 6px;
}

/* ===== SECCIÓN EQUIPO ===== */

.equipo-section {
    background-color: #f3f3f3;
}

/* Botón superior */
.badge-equipo {
    display: inline-block;
    padding: 6px 20px;
    border: 2px solid #0f1e46;
    color: #0f1e46;
    font-weight: 500; /* normal */
    font-size: 14px;
    
}

/* Título */
.titulo-equipo {
    font-weight: 700;
    letter-spacing: 2px;
}

/* Tarjeta */
.equipo-card {
    background: #fff;
    padding: 20px;
    transition: 0.3s ease;
}

.equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Imagen circular */
.equipo-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
}

/* Texto */
.equipo-card h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.equipo-card p {
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .equipo-card {
        flex-direction: column;
        text-align: center;
    }

    .equipo-img {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .equipo-card .text-start {
        text-align: center !important;
    }
}

/* ===== FOOTER ===== */

.footer-section {
    background-color: #e9e9e9;
}

/* Logo */
.footer-logo {
    max-width: 150px;
}

/* Columnas */
.footer-col {
    padding-left: 30px;
}

/* Línea divisoria */
.border-start {
    border-left: 1px solid #cfcfcf !important;
}

/* Títulos */
.footer-col h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Texto */
.footer-col p {
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

/* Barra inferior negra */
.footer-bottom {
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
}
/* Caja del título */
.titulo-box {
    display: inline-block;
    background-color: rgba(90, 90, 90, 0.85);
    border: 2px solid #2c5cff;
    padding: 10px 40px;
}

.titulo-box h1 {
    color: #fff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Asegura que el contenedor tenga posición relativa para permitir posicionamiento absoluto */
.fondo-contenedor {
    position: relative;
    width: 100%;
    height: 100vh; /* Puedes ajustar la altura según sea necesario */
}

/* Hace que la imagen de fondo sea responsiva y cubra todo el ancho */
.imagen-fondo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Capa oscura con 50% de opacidad */
.capa-oscura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Capa oscura con 50% de opacidad */
}

/* Contenedor para el texto */
.contenido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Estilo del borde azul alrededor del texto */
.cuadro-borde-azul {
    display: inline-block;
    padding: 10px 20px;
    border: 3px solid #0f1e46; /* Borde azul con opacidad */
    border-radius: 10px; /* Bordes redondeados */
    background-color: transparent; /* Fondo transparente */
}

/* Color blanco para el texto dentro del borde azul */
.cuadro-borde-azul h1 {
    color: white;
    font-size: 2.5rem; /* Tamaño de fuente mayor */
    margin: 0;
}

/* ++++++++++++++++++++++++++++++++++++++++ */

/* Fondo de la sección */
.sobre-nosotros {
    background-color: #f2f2f2;
}

/* Imagen */
.img-wrapper {
    background: #eaeaea;
    padding: 15px;
}

/* Limitar el tamaño de la imagen */
.img-fluid {
    width: 90%;
    height: auto;
    margin: 0 auto;
}

/* Texto de la sección */
.texto-box {
    background-color: #0f1e46;
    color: white;
    padding: 40px;
}

/* Empresa */
.empresa {
    font-size: 13px;
    letter-spacing: 1px;
    color: #cfcfcf;
    display: block;
    margin-bottom: 10px;
}

/* Título con borde azul */
.titulo-box {
    display: inline-block;
    border: 2px solid #0f1e46;
    padding: 5px 15px;
    background: white;
    color: #0f1e46;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Párrafos */
.texto-box p {
    font-size: 15px;
    line-height: 1.6;
}

/* Empresa +++++++++++++++++++++++++++++++++++++++++++++ */
/* Fondo de la sección */
.sobre-nosotros {
    background-color: #f2f2f2; /* Fondo gris claro */
    padding-top: 50px; /* Espacio superior */
}

/* Imagen */
.img-fluid {
    width: 80%; /* Reducir tamaño de la imagen */
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Caja de texto */
.texto-box02 {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px; /* Espacio superior */
}

/* Empresa */
.empresa02 {
    font-size: 13px;
    letter-spacing: 1px;
    color: #cfcfcf;
    display: block;
    margin-bottom: 10px;
}

/* Título con borde azul */
.titulo-box02 {
    display: inline-block;
    border: 2px solid #0f1e46;
    padding: 5px 15px;
    background: white;
    color: #0f1e46;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Párrafos */
.texto-box02 p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Servicios +++++++++++++++++++++++++++++++ */

/* Fondo gris para la sección */
.servicios {
    background: #f2f2f2;
    padding: 60px 0;
}

/* Grid de 6 tarjetas en 2 filas */
.servicios-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* Card */
.servicio-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* CLAVE */
    transition: all 0.3s ease;
}

/* Hover effect para elevar */
.servicio-card:hover {
    transform: translateY(-5px);
}

/* Contenedor de imagen */
.img-servicio {
    height: 220px; /* TODAS IGUALES */
    overflow: hidden;
}

.img-servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE */
}

/* Contenido */
.contenido-servicio {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

/* Título del servicio */
.contenido-servicio h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
    color: #0f1e46;
}

/* Descripción del servicio */
.contenido-servicio p {
    font-size: 0.9rem;
    color: #333;
    margin-top: 10px;
    flex-grow: 1; /* Esto empuja el botón hacia abajo */
}

/* Botón "Saber más" */
.btn-servicio {
    margin-top: 20px;
    align-self: center;
    background: #0f1e46;
    color: #fff;
    padding: 10px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-servicio:hover {
    background: #2c5cff;
}

/* Contacto ++++++++++++++++++ */

/* Fondo gris igual a la imagen */
.contacto {
    background-color: #f2f2f2;
    padding: 60px 0;
}

/* Título de la sección */
.titulo {
    font-size: 2rem;
    color: #003366;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Descripción del texto */
.descripcion {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Contenedor de los iconos */
.redes-sociales {
    display: flex;
    justify-content: flex-start;  /* Alineación horizontal de los iconos */
    gap: 10px;  /* Menos espacio entre los iconos */
    margin-top: 20px;  /* Ajuste de margen superior */
}

/* Estilo de los iconos */
.social-icon img {
    width: 35px;  /* Iconos más pequeños */
    height: 35px;
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.2); /* Efecto hover para agrandar */
}

/* Ajustar la alineación y espaciado */
.row {
    display: flex;
    justify-content: flex-start; /* Alinea las columnas hacia la izquierda */
    align-items: flex-start;
}

.col-md-8 {
    padding-right: 0px; /* Eliminar espaciado entre columnas */
}

.datos-contacto {
    text-align: left; 
    margin-bottom: 20px;
}

.datos-contacto p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.col-md-4 {
    padding-left: 0; 
}

/* Formulario */
.contacto-form {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.contacto-form .container {
    max-width: 1200px;
}

.titulo {
    font-size: 2rem;
    color: #003366;
    font-weight: 600;
    margin-bottom: 25px;
}

.lista {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-left: 20px;
}

.lista li {
    margin-bottom: 15px;
}

.lista li strong {
    color: #003366;  /* Color azul */
}

/* Estilo de la columna izquierda */
.col-md-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Estilo del formulario (columna derecha) */
.col-md-6:last-child {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-size: 1rem;
    color: #333;
}

.form-control {
    font-size: 1rem;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #003366;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #2c5cff;
}

/* Asegurar que el formulario esté alineado a la izquierda */
.col-md-6:last-child .form-control {
    margin-bottom: 10px;
}

/* Galeria */

.galeria {
    background-color: #f9f9f9;
    padding: 60px 0;
}

/* Título de la galería */
.titulo-galeria {
    font-size: 2.5rem;
    color: #003366;
    font-weight: 600;
    margin-bottom: 40px;
}

/* Ajustar la tarjeta */
.card1 {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.card-img-top1 {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body1 {
    padding: 10px;
}

.card-text1 {
    font-size: 1rem;
    color: #333;
    text-align: center;
}

/* Disposición de las columnas: 3 por fila */
.row1 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Ajuste para que en pantallas grandes haya 3 columnas por fila */
.col-lg-4 {
    flex: 1 1 32%;
    margin-bottom: 20px;
}

/* Ajuste para dispositivos más pequeños (tabletas y móviles) */
@media (max-width: 768px) {
    .col-md-4 {
        flex: 1 1 48%; /* Dos columnas en pantallas más pequeñas */
    }

    .col-sm-12 {
        flex: 1 1 100%; /* Una columna en pantallas móviles */
    }

    .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {

  .video-background {
    height: 70vh;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .texto-linea {
    font-size: 0.9rem;
  }

}

@media (max-width: 768px) {

  .img-stack {
    height: auto;
  }

  .img-item {
    height: auto;
  }

  .contenido-texto {
    padding-left: 0 !important;
    margin-top: 30px;
    text-align: center;
  }

  .bloque-info {
    flex-direction: column;
    gap: 20px;
  }

}

@media (max-width: 768px) {
  .ecos-col {
    padding-left: 0 !important;
  }

  .logo {
    height: 70px;
    margin-bottom: 20px;
  }
}

/* Responsive servicios  */
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .servicios {
        padding: 40px 0;
    }

    .img-servicio {
        height: 200px;
    }

    .contenido-servicio {
        padding: 20px;
    }

    .contenido-servicio h3 {
        font-size: 1.1rem;
    }

    .contenido-servicio p {
        font-size: 14px;
    }

    .btn-servicio {
        width: 100%;
        text-align: center;
    }
}