
/* Estilos generales */
* {
    box-sizing: border-box;
}

html, body {
    --blanco: #F0F0F0;
    --azul: #1A3C99;
    --morado: #792187;
    --celeste: #638EBF;
    --blue_f: rgba(99, 142, 191, 0.58);
    --negro_a: #0f1b3b;

    margin: 0;
    padding: 0;
    background: var(--blanco);
    overflow-x: hidden; /* Elimina el scroll horizontal */
    overflow-y: auto;   /* Permite el scroll vertical */
    font-family: "DM Sans", sans-serif;
}

header {
    display: flex;
    position: fixed;
    background-color: var(--blanco);
    width: 100vw;
    padding-top: 0.5em;
    padding-bottom: 0.4em;
    padding-left: 1.3em;
    align-items: baseline;
    z-index: 4;
}

a {
    text-decoration: none;
    color: var(--azul);
    font-family: "DM Sans", sans-serif;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 1.3em;
    width: 80vw;
    padding-top: 1em;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.7em;
}

nav ul li {
    list-style: none;
}

h1 {
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 700;
    width: 100vw;
    padding-top: 0.7em;
}

/* Cambia esto en tu CSS: */
.container-intro {
    display: flex;
    flex-direction: row; /* Asegura disposición en fila */
    width: 100%;
    height: auto;
    min-height: 40vh; /* Altura mínima relativa */
}

/* Estilos para la sección hero */
.hero_image {
    position: relative;
    width: 100vw;
    overflow: hidden;
    height: 30vh; 
  }

  .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: center;
    padding: 7em 60px; /* Ajusta el padding superior e inferior */
}

video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: 30vh;
    object-fit: cover;
}

.introduccion {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 40vh;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    background-color: var(--blanco);
    min-height: 30 vh; /* Cambiado a min-height */
    justify-content: center;
    align-items: flex-start;
    padding-top: 4em;
    padding-bottom: 2em;
    padding-left: 1em;
    padding-right: 1em;
    flex-grow: 0;
}

div.introduccion-de-la-empresa{
    width: 100vw;
    min-height: 30vh;
    font-size: 1em;
    color: var(--negro_a);
    text-align: left;
    display: flex;
    flex-direction: column;
    padding-left: 0.5em;
    align-items: flex-start; /* Centrado vertical */
    background-color: var(--blanco);
}

/* Estilos para la sección MVV */
.mvv-section {
    padding: 3rem 1rem;
    background-color: var(--blanco);
}

.mvv-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
     border-radius: 0 !important;
    overflow: visible; /* Ajuste opcional */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Sombra más sutil */
}

.accordion-item {
    border: 1px solid var(--celeste);
    border-bottom: none;
    border-radius: 0; /* Sin esquinas redondeadas */
}

.accordion-item:last-child {
    border-bottom: 1px solid var(--celeste);
}

.accordion-button {
    background-color: var(--blanco);
    color: var(--azul);
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    padding: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* Sin esquinas redondeadas */
}

.accordion-button:not(.collapsed) {
    background-color: var(--azul);
    color: var(--blanco);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--celeste);
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--blanco);
    font-size: 0.9rem;
    line-height: 1.6;
}

.valores-list {
    list-style-type: none;
    padding-left: 0;
}

.valores-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.valores-list li:before {
    content: "•";
    color: var(--azul);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Icono personalizado para el acordeón */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A3C99'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.btn {
    width: 80%;
    min-width: 120px; /* Ancho mínimo */
    position: relative;
    border-radius: 14px;
    border: 1px solid #1a3c99;
    box-sizing: border-box;
    height: 5em;
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Evita salto de línea */
    padding-top: 4em;
}

.btn-outline-primary {
    border: 2px solid var(--azul);
    color: var(--azul);
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espacio entre texto y flecha */
    justify-content: center;
}

.btn-outline-primary:hover {
    background-color: var(--azul);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 60, 153, 0.3);
    border: var(--azul);
}

.texto_exp {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 2em;
    padding-right: 2em;
    justify-content: center;
    padding-bottom: 3em;
}

.texto_exp button {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    padding-top: 2em;
    padding-bottom: 2em;
    padding-right: 2em;
    width: 20em;
    margin: 0 auto; /* Centra el botón en su contenedor */
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 1.8em;
    margin-top: 2.2em;
}

/* Opcional: Asegurar que el texto no se desborde */
.texto_exp button span {
    display: inline-block;
    max-width: 100%;
    white-space: normal; /* Permite salto de línea si es necesario */
    text-align: center;
}

.texto_exp .btn-outline-primary {
    margin-top: 3em; /* Ajusta este valor según necesites */
    /* Mantén tus otros estilos existentes */
}

h4 {
    text-transform: uppercase;
    color: var(--azul);
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 700;
    font-size: 2em;
    padding-bottom: 0.8em;
}

/* Estilos para la sección footer */
.footer {
    background-color: var(--blue_f);
} 

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer img {
    width: 60%;
}

.footer h2 {
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 700;
    color: #1a3c99;
    font-size: 1.3em;
}

.footer p {
    color: var(--negro_a);
    margin-bottom: 0;
    font-size: 0.8em;
}

.footer a {
    color: var(--negro_a);
    font-weight: 400;
    padding-bottom: 1.5em;
    font-size: 0.8em;
}

/* RESPONSIVE MEDIA QUERIES */

/* Desktop */

@media only screen and (min-width: 1200px){
    

    .container-intro {
        display: flex;
        flex-direction: row;
        width: 100vw;
        padding: 2rem;
        padding-bottom: 0;
        align-items: center; /* Esto centra verticalmente los elementos hijos */
        justify-content: center;
        min-height: 40vh; /* Asegura una altura mínima */
    }
    
    .img_desk {
        width: 15em;
        height: 15em; /* Mismo valor que el width para mantener el círculo */
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center; /* Centra la imagen verticalmente dentro del círculo */
        margin-bottom: -60px;
        z-index: 2;
        position: relative;
        background-color: var(--blanco);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .img_desk img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .introduccion {
        width: 50%;
        height: auto;
        box-shadow: none;
        background-color: var(--blanco);
        min-height: 14.25rem;
        display: flex;
        justify-content: center;
        align-items: center; /* Centra el contenido verticalmente */
        padding: 0;
    }

    .introduccion p {
        text-align: justify;
    }

    .intro-container {
        display: flex;
    } 

    .hero_image {
        height: 55vh;
    }

    h1  {
        font-size: 3rem;
        justify-content: center;
        align-items: flex-start;
        padding-top: 1em;
    }
    

    .hero-content h4 {
        font-size: 0.8em;
        text-align: center;
        margin-bottom: 30px; /* Espacio entre h4 y scroll-down */
    }

    nav ul {
        width: 95vw;
        gap: 5em;
        padding-right: 2em;
    }

    div.introduccion-de-la-empresa{
        width: 32rem;
        font-size: 1.063rem;
        color: var(--negro_a);
        text-align: left;
        display: flex;
        flex-direction: column;
        height: 10.125rem;
        padding-top: 3em;
        align-items: center; /* Centrado vertical */
        background-color: var(--blanco);
    }

   /* Contenedor principal de sectores */
    .sectores {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        padding: 1rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Tarjetas individuales */
    .sectores > div {
        flex: 1 1 300px; /* Flex-grow | Flex-shrink | Flex-basis */
        max-width: 350px;
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    /* Efecto hover */
    .sectores > div:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

    /* Contenido de las tarjetas */
    .sectores img {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
        display: block;
    }

    .sectores h5 {
        text-align: center;
        margin-bottom: 1rem;
        color: var(--celeste);
    }

    .industrias {
        padding-bottom: 6em;
    }

    .industrias p {
        font-size: 0.8em;
        text-align: left;
        padding-bottom: 0.4em;
    }
    
    .industrias h2 {
        font-family: "aktiv-grotesk", sans-serif;
        font-weight: 700;
        color: #1a3c99;
        text-align: center;
        padding-top: 2.5em;
        padding-bottom: 1em;
        font-size: 3em;
        justify-content: center;
    }
    
    h5 {
        padding-top: 1em;
        text-transform: uppercase;
        color: var(--celeste);
    }

    h4 {
        padding-top: 1.5em;
    }

    .texto_exp {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra todo el contenido */
        padding: 0 2em 3em;
        max-width: 70%;
        margin: 0 auto;
        text-align: center; /* Alinea el texto al centro */
    }
    
    /* Elimina .texto_exp button y usa esto en su lugar */
    .texto_exp .btn-outline-primary {
        margin: 2em auto; /* Centra el botón horizontalmente */
        width: auto; /* Ancho según contenido */
        padding: 0.75rem 2.5rem; /* Ajuste de padding */
    }

    .text_exp p {
        text-align: left; /* Asegura que el texto dentro de los párrafos esté alineado a la izquierda */
        width: 100%; /* Asegura que los párrafos ocupen todo el ancho disponible */
        margin-bottom: 1em; /* Espaciado entre párrafos */
    }

    .texto_exp h4 {
        align-self: center; /* Alinea el h4 a la izquierda también */
        justify-content: center;
        width: 100%; /* Ocupa todo el ancho */
        text-align: center; /* Texto alineado a la izquierda */
        padding-left: 0; /* Elimina cualquier padding izquierdo si existiera */
    }

    .texto_exp button {
        align-self: center; /* Centra solo el botón */
        padding-top: 2em;
    }

    .footer {
        padding-bottom: 1.5em;
    }

    .footer img {
        width: 15%;
    }

    nav ul {
        width: 90vw;
        gap: 4em;
        padding-right: 2em;
    }
    
    a img {
        padding-left: 1em;
    }
    
    p {
       text-align: left; 
    }

    h4 {
        padding-top: 2.5em;
    }

    
}

/* Tablet */

@media only screen and (max-width: 1200px) and (min-width: 540px){
    h1 {
        font-size: 2.3em;
        padding-top: 2em;
    }
    
    .introduccion {
        display: flex;
        width: 100%;
        height: 30em;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        padding: 0; /* Espaciado vertical y horizontal */
        background-color: var(--blanco);
        min-height: auto; /* Cambiado a min-height */
        justify-content: center;
        align-items: flex-start;
        padding-top: 5em;
    }

    div.introduccion-de-la-empresa {
        min-width: 40em;
        min-height: 20em;
    }

    video {
        position: absolute;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: 0vh;
        object-fit: cover;
    }

    .hero_image {
        position: relative;
        width: 100vw;
        overflow: hidden;
        height: 40vh; 
    }

    .container-intro {
        display: flex;
        flex-direction: row;
    } 
    
    .hero-content h4 {
        font-size: 0.8em;
        text-align: center;
        margin-bottom: 30px; /* Espacio entre h4 y scroll-down */
    }
    
    .hero-bottom h1 {
        font-size: 1.8em;
    }

    nav ul {
        width: 95vw;
        gap: 5em;
        padding-right: 2em;
    }

    div.introduccion-de-la-empresa{
        width: 26rem;
        font-size: 1.063rem;
        color: var(--negro_a);
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 1.5rem; /* Espacio entre elementos */
        height: 10.125rem;
        padding-left: 0.5em;
        align-items: flex-end; /* Centrado vertical */
        background-color: var(--blanco);
    }

   /* Contenedor principal de sectores */
    .sectores {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        padding: 1rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Tarjetas individuales */
    .sectores > div {
        flex: 1 1 300px; /* Flex-grow | Flex-shrink | Flex-basis */
        max-width: 350px;
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    /* Efecto hover */
    .sectores > div:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

    /* Contenido de las tarjetas */
    .sectores img {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
        display: block;
    }

    .sectores h5 {
        text-align: center;
        margin-bottom: 1rem;
        color: var(--celeste);
    }

    .industrias {
        padding-bottom: 4em;
    }

    .industrias p {
        font-size: 0.8em;
        text-align: left;
        padding-bottom: 0.4em;
    }
    
    .industrias h2 {
        font-family: "aktiv-grotesk", sans-serif;
        font-weight: 700;
        color: #1a3c99;
        text-align: center;
        padding-top: 2.5em;
        padding-bottom: 1em;
        font-size: 3em;
        justify-content: center;
    }
    
    h5 {
        padding-top: 1em;
        text-transform: uppercase;
        color: var(--celeste);
        
    }

    .footer img {
        width: 20%;
    }

    .footer {
        padding-bottom: 1em;
    }

    nav ul {
        width: 90vw;
        gap: 4em;
        padding-right: 2em;
    }

    a img {
        padding-left: 1em;
    }

    h4{
        padding-top: 1.5em;
    }

  

}

/* dispositivos móviles */

@media only screen and (max-width: 1200px) and (min-width: 320px) {
    .img_desk {
        display: none;
 }
}



