* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*background-image: url('../background_intelcon.webp');*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}



/* navbar */
.logo-navbar {
    height: 20px;
}

.font-navbar{
    font-family: 'Montserrat', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(237, 239, 245);
}



/* video background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background-index {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-index {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    top: 0; /* Fija el video en la parte superior de la pantalla */
    left: 0;
    width: 100%;
    z-index: -100;
    object-fit: cover;
    overflow: hidden;
}

.video-otros {
    display: flex;
    justify-content: center; /* Contenido centrado horizontalmente */
    align-items: center; /* Contenido centrado verticalmente */
}

.video-background-otros {
    position:fixed;
    bottom: 0px;
    right: 0px;
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    overflow: hidden;
    opacity: 0.6;
}



/* Textos */
.h1-index {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: aliceblue;
    font-size: 25px;
    z-index: 1;
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); /* Centrar el elemento en la pantalla */
}

.h1-otros{
    position: absolute;
    z-index: 1; /* Texto por encima de la imagen de fondo */
    text-align: center;
    color: aliceblue;
    font-weight: bolder;
}

h2 {
    color: aliceblue;
}

h4
 {
    color: aliceblue;
    margin: 0; 
   text-align: center;
}

p {
    color: white;
    margin: 0;
    padding: 25px;
}



/* Íconos de secciones */
.svg-iconos-secciones {
    width: 70px;
    margin: 0 auto; /* Centra horizontalmente */
}



/* Contenedores principales */
.clientes{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: justify;
    font-size: 15px;
    margin-top: 90px;
    min-height: 50vh;
    max-width: 70%;
    z-index: 1;
    background-color: black;
    background: linear-gradient(50deg, rgba(40, 42, 55, 0.9) 50%, rgba(40, 42, 55, 0.5)),
    url(../img/imagen-clientes-intelcon.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5px;
    width: 900px;
    border-radius: 10px;
}

.formulario-contacto{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: justify;
    font-size: 15px;
    margin-top: 90px;
    min-height: 50vh;
    max-width: 70%;
    z-index: 1;
    background-color: black;
    background: linear-gradient(50deg, rgba(40, 42, 55, 0.9) 50%, rgba(40, 42, 55, 0.5)),
    url(../img/imagen-formulario-contacto-intelcon.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5px;
    width: 900px;
    border-radius: 10px;
}

.nosotros {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: justify;
    font-size: 15px;
    margin-top: 90px;
    min-height: 50vh;
    max-width: 70%;
    z-index: 1;
    background-color: black;
    background: linear-gradient(50deg, rgba(40, 42, 55, 0.9) 50%, rgba(40, 42, 55, 0.5)),
    url(../img/imagen-nosotros-intelcon.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5px;
    width: 900px;
    border-radius: 10px;
}

.servicios {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: justify;
    font-size: 15px;
    margin-top: 90px;
    min-height: 50vh;
    max-width: 70%;
    z-index: 1;
    background-color: black;
    background: linear-gradient(50deg, rgba(40, 42, 55, 0.9) 50%, rgba(40, 42, 55, 0.5)),
    url(../img/imagen-servicios-intelcon.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5px;
    width: 900px;
    border-radius: 10px;
}

.proyectos{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: justify;
    font-size: 15px;
    margin-top: 90px;
    min-height: 50vh;
    max-width: 70%;
    z-index: 1;
    background-color: black;
    background: linear-gradient(50deg, rgba(40, 42, 55, 0.9) 50%, rgba(40, 42, 55, 0.5)),
    url(../img/imagen-clientes-intelcon.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5px;
    width: 900px;
    border-radius: 10px;
}

/* proyectos */


.carousel-item img {
    object-fit: contain; /* Cubre el contenedor sin deformar la imagen */
    height: 500px; /* Altura fija para todas las imágenes */
    width: 100%; /* Asegura que las imágenes ocupen todo el ancho */
  }

  .proyecto {
    position: relative; /* Hace que el contenedor de la imagen sea un contenedor de referencia para el texto */
  }
  
  .contenedor-imagen-proyecto {
    position: relative; /* Asegura que el texto se pueda colocar encima de la imagen */

  }
  
  .nombre-proyecto {
    position: absolute; /* Posiciona el título de manera absoluta dentro del contenedor */
    top: 50%; /* Posiciona el título verticalmente en el 50% de la altura del contenedor */
    left: 50%; /* Posiciona el título horizontalmente en el 50% de la anchura del contenedor */
    transform: translate(-50%, -50%); /* Ajusta el título para centrarlo correctamente */
    color: white; /* Color blanco para que contraste con la imagen */
    font-size: 20px; /* Tamaño de la fuente del título */
    font-weight: bold; /* Estilo en negrita */
    z-index: 10; /* Asegura que el título esté encima de la imagen */
    text-align: center; /* Centra el texto dentro del párrafo */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }
  
  .img-proyecto {
    width: 100%; /* Asegura que la imagen ocupe el 100% del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    border-radius: 15px;
    filter: brightness(0.5) contrast(1.2); /* Baja el brillo y ajusta el contraste */
    transition: filter 0.3s ease; /* Transición suave para el filtro */
  }
  



/* clientes */
.grid-clientes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    align-content: start;
    align-items: stretch;
    padding: 30px;
}

.contenedor-img-cliente {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    height: 100%;
}

.imagen-cliente img {
    max-height: 90%;
    max-width: 90%;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
}

.contenedor-img-cliente p {
    margin-top: 10px;
    color: white;
}



/* Contacto */
.form-label,
.datos-de-contacto {
    color: aliceblue;
}

.datos-contacto {
    padding-bottom: 25px;
}

.btn-enviar {
    margin-left: 15px;
}

.fila-contacto {
    margin-left: 50%;
}

.campo-formulario {
    padding-left: 25px;
    padding-right: 25px;
}


/* Footer */
.svg-footer {
    margin-right: 10px;
    width: 30px;
}

footer {
    margin-top: auto;
}

.container-footer {

    margin-top:auto;
    background-color: aliceblue;
}



/* Separador */ 
.separador {
    height: 30px;
}

/* Secciones */
.grid-secciones-chicas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-content: start;
    align-items: flex-start;
    padding: 25px;
}

.seccion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra verticalmente */
    text-align: justify; 
    margin-bottom: 20px;
}



/* Estilos de los h1 de las secciones y sus background */
.titulo-servicios-background {
    position: relative;
    width: 100%;
    height: 300px; 
    overflow: hidden; /* Oculta cualquier parte de la imagen que se extienda fuera del contenedor */
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.titulo-servicios-background:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/h1-background-servicios.jpg');
    opacity: 0.5;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.titulo-proyectos-background {
    position: relative;
    width: 100%;
    height: 300px; 
    overflow: hidden; /* Oculta cualquier parte de la imagen que se extienda fuera del contenedor */
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.titulo-proyectos-background:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/h1-background-proyectos.png');
    opacity: 0.5;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.titulo-clientes-background {
    position: relative;
    width: 100%;
    height: 300px; 
    overflow: hidden; /* Oculta cualquier parte de la imagen que se extienda fuera del contenedor */
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.titulo-clientes-background:before {
    content: '';
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/h1-background-clientes.png');
    opacity: 0.5;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.titulo-contacto-background {
    position: relative;
    width: 100%;
    height: 300px; 
    overflow: hidden; /* Oculta cualquier parte de la imagen que se extienda fuera del contenedor */
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.titulo-contacto-background:before {
    content: '';
    position: center;
    top: 0;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-image: url('../img/h1-background-contacto.png');
    opacity: 0.5;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}


.titulo-nosotros-background {
    position: relative;
    width: 100%;
    height: 300px; 
    overflow: hidden; /* Oculta cualquier parte de la imagen que se extienda fuera del contenedor */
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.titulo-nosotros-background:before {
    content: '';
    position: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/h1-background-nosotros.jpg');
    opacity: 0.5;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}




/* responsive */
@media (max-width: 433px) {
    .fila-contacto {
        margin-left: 5%;
    }
}

@media (max-width: 950px) {
    .grid-secciones-chicas {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        
    }
    .grid-clientes {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-proyectos {
        grid-template-columns: repeat(2, 1fr);
    }
    .nosotros{
        max-width: 80%;
    }
    .servicios{
        max-width: 80%;
    }
    .formulario-contacto{
        max-width: 80%;
    }
    .clientes{
        max-width: 80%;
    }
    .proyectos{
        max-width: 80%;
    }
}

@media (max-width: 700px) {

    .nosotros{
        max-width: 90%;
    }
    .servicios{
        max-width: 90%;
    }
    .formulario-contacto{
        max-width: 90%;
    }
    .clientes{
        max-width: 90%;
    }
    .proyectos{
        max-width: 90%;
    }
}

@media (max-width: 500px) {
    .grid-clientes {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .grid-proyectos {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .nosotros{
        max-width: 95%;
    }
    .servicios{
        max-width: 95%;
    }
    .formulario-contacto{
        max-width: 95%;
    }
    .clientes{
        max-width: 95%;
    }
    .proyectos{
        max-width: 95%;
    }
    .grid-secciones-chicas {
        padding: 5px;
    }
}