@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    max-width: 100%;
    scroll-behavior: smooth;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

body {
    width: 100%;
    margin: 0;
    background: #f6f6f6;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    color: #212121;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Scrollbar personalizado moderno */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background-color: #F5F5F5;
}
body::-webkit-scrollbar-thumb {
    background-color: #000000;
    border-radius: 3px;
}

/* Header */
.header {
    background: linear-gradient(100deg, #007493 12%, #0D274D 88%);
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Nav */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
    padding: 15px 20px;
    height: 100%;
}

.logo {
    width: 180px;
    max-width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu-item {
    font-size: 16px;
    text-transform: uppercase;
}

.nav-menu-link {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #f6f6f6;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-menu-link:hover,
.active {
    background-color: #8CC81E;
    color: #000;
}

.btn-Nav {
    color: #8CC81E;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    display: none;
}

/* Main */
.section-main {
    width: 100%;
    flex: 1;
    margin-top: 100px; /* Espacio por el header fijo */
}

/* Banners */
.banner, .banner2, .banner3 {
    width: 100%;
    height: calc(100vh - 100px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner { background-image: url(../img/18.webp); }
.banner2 { background-image: url(../img/3.webp); }
.banner3 { background-image: url(../img/25.webp); }
.banner4 {
    width: 100%;
    min-height: calc(100vh - 100px);
    background: url(../img/19.webp) no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.banner-content {
    color: #8CC81E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.banner-content h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    padding: 10px 20px;
    border-bottom: 2px solid #8CC81E;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.banner-content a:hover {
    background-color: #8CC81E;
    color: #000;
    border-radius: 7px;
}

/* Secciones de Información (Modernizado con Flexbox en lugar de floats) */
.info, .info-2 {
    width: 100%;
    padding: 80px 20px;
}

.info-content, .info-content-2 {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.info-content-2 {
    flex-direction: row-reverse; /* Alterna la posición de la imagen y texto */
}

.content-sction, .content-sction-2 {
    flex: 1;
    min-width: 280px;
    text-transform: uppercase;
}

.img-info, .img-info-2 {
    flex: 1;
    min-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.img-info:hover, .img-info-2:hover {
    transform: translateY(-5px);
}

.title-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0D274D;
}

.info-txt p {
    font-size: 1rem;
    text-align: justify;
    line-height: 1.6;
    color: #444;
}

/* Contenedor Box (Servicios) */
.section-box {
    width: 100%;
    padding: 60px 20px;
}

.box-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.box-container .box {
    width: 350px;
    min-height: 320px;
    border-radius: 12px;
    background-color: #e6f3fb;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

.icon_box {
    color: #8CC81E;
    font-size: 45px;
    margin-bottom: 15px;
}

.box-container .box .title-box {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #212121;
    font-weight: bold;
    margin-bottom: 15px;
}

.box-container .box .info-box {
    color: #555;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.box-container .box:hover {
    background: linear-gradient(100deg, #1e1d23 1%, #0D274D 99%);
    transform: translateY(-8px);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
}

.box-container .box:hover .icon_box,
.box-container .box:hover .title-box,
.box-container .box:hover .info-box {
    color: #e6f3fb;
}

/* Mini Banner */
.mini-banner .mini-content .img-mini-banner img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}

/* Formulario */
.box-form {
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.box-form h1 {
    color: #8CC81E;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.box__input {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transition: all 0.3s ease;
}

.box__input:focus {
    outline: none;
    border-color: #8CC81E;
    background: #fff;
    box-shadow: 0 0 8px rgba(140, 200, 30, 0.5);
}

.box__submit {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    background: #8CC81E;
    color: #000;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.box__submit:hover {
    background: #7bb517;
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    width: 100%;
    background: linear-gradient(100deg, #007493 7%, #00245E 93%);
    color: #fff;
    text-align: center;
    margin-top: auto;
}

.footer--menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px 20px;
    flex-wrap: wrap;
}

.footer__menu {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer__menu:hover {
    color: #8CC81E;
}

.footer .footer-logo .box-footer figure img {
    width: 220px;
    margin: 0 auto;
}

.footer .footer-dat-company {
    background-color: #0a1a2a;
    padding: 25px;
    margin-top: 20px;
    color: #aaa;
}

/* Media Query para Dispositivos Móviles y Tablets */
@media (max-width: 768px) {
    .header {
        height: 80px;
    }
    
    .section-main {
        margin-top: 80px;
    }

    .banner, .banner2, .banner3, .banner4 {
        height: calc(100vh - 80px);
    }

    .logo {
        width: 140px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #0D274D;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        transition: left 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav_open {
        left: 0;
    }

    .nav-menu-item {
        font-size: 1.2rem;
    }

    .btn-Nav {
        display: block;
    }

    .info-content, .info-content-2 {
        flex-direction: column;
        text-align: center;
    }

    .info-content-2 {
        flex-direction: column;
    }

    .content-sction, .content-sction-2 {
        width: 100%;
    }

    .img-info, .img-info-2 {
        width: 100%;
    }
}