
/* 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;
}

/* Barra de navegación */
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;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Cambia de center a space-between */
    align-items: center;
    color: white;
    text-align: center;
    padding: 20vh 20px 60px; /* Ajusta el padding superior e inferior */
}

.hero-content h1  {
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    font-size: 2rem;
    position: static;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Sombra para mejor legibilidad */
    padding-top: 1em;
}

.hero-content h4 {
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 0.8em;
    text-align: center;
    position: static;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px; /* Espacio entre h4 y scroll-down */
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto; /* Esto lo empuja hacia abajo */
    gap: 1.5em;
    padding-left: 1em;
    padding-right: 1em;
}

.hero-bottom h1 {
    font-size: 1.5em;
}

.scroll-down {
    animation: bounce 2s infinite;
    margin-top: 0; /* Eliminamos el margen superior anterior */
}

.introduccion {
    display: flex;
    width: 100%;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 4rem 1rem; /* Espaciado vertical y horizontal */
    background-color: var(--blanco);
    min-height: 25rem; /* Cambiado a min-height */
    justify-content: center;
    align-items: center;
}

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

.btn {
    width: 55%;
    min-width: 120px; /* Ancho mínimo */
    position: relative;
    border-radius: 14px;
    border: 1px solid #1a3c99;
    box-sizing: border-box;
    height: 2.2em;
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* Empuja el botón a la derecha */
}

.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;
    justify-content: center;
}



/* Sección de industrias */
.industrias {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2em;
    padding-right: 1.8em;
    padding-bottom: 2em;
}

.industrias p {
    font-size: 0.8em;
    text-align: justify;
    padding-bottom: 0.4em;
}

.industrias h2 {
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 700;
    color: #1a3c99;
    text-align: center;
    padding-top: 2em;
    padding-bottom: 1em;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    text-align: center; /* Ya lo tienes, pero lo confirmamos */
    padding: 1em 0; /* Ajusta el padding superior e inferior */
    font-size: 3em;
}

h5 {
    padding-top: 1em;
    text-transform: uppercase;
    color: var(--celeste);
}

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

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

.footer img {
    width: 55%;
}

.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;
}

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-5px);
    }
    60% {
      transform: translateY(-10px);
    }
}

/* RESPONSIVE MEDIA QUERIES */

/* Desktop */

@media only screen and (min-width: 1200px){
    
    .introduccion {
        display: flex;
        width: 50%;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        padding: 4rem 1rem; /* Espaciado vertical y horizontal */
        background-color: var(--blanco);
        min-height: 14.25rem; /* Cambiado a min-height */
        justify-content: center;
        align-items: center;
    }

    .img_dk {
        display: flex;
        width: 50%;
        overflow: hidden;
    }
    
    .img_dk img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .intro-container {
        display: flex;
    } 

    .hero-content h1  {
        font-size: 5.5rem;
        justify-content: center;
        align-items: flex-start;
        padding-top: 0.7em;
    }
    
    .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: 32rem;
        font-size: 1.063rem;
        color: var(--negro_a);
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        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: 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);
        
    }

    .footer {
        padding-bottom: 1.5em;
    }

    .footer img {
        width: 15%;
    }

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

/* Tablet */

@media only screen and (max-width: 1200px) and (min-width: 540px){
    .introduccion {
        display: flex;
        width: 100%;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        padding: 4rem 1rem; /* Espaciado vertical y horizontal */
        background-color: var(--blanco);
        min-height: 14.25rem; /* Cambiado a min-height */
        justify-content: center;
        align-items: center;
    }

    .img_dk {
        display: flex;
        width: 50%;
        overflow: hidden;
    }
    
    .img_dk img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .intro-container {
        display: flex;
    } 

    .hero-content h1  {
        font-size: 4rem;
        justify-content: center;
        align-items: flex-start;
        padding-top: 0.7em;
    }
    
    .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;
        justify-content: space-between;
        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;
    }
}

/* dispositivos móviles */

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