/* ========================= */
/* RESET */
/* ========================= */
html,body{
    width:100%;
    overflow-x:hidden;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#2963ba;
    margin:0;
}

/* ========================= */
/* HEADER */
/* ========================= */

header{
    background:#0d1b2a;
    color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 20px;
    flex-wrap:wrap;
    gap:15px;
}

/* LOGO */

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width:60px;
    border-radius:10px;
}

/* MENU */

nav ul{
    list-style:none;
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

nav a:hover{
    color:#00d4ff;
}

/* OFERTAS */

.ofertas{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.ofertas img{
    width:60px;
    border-radius:10px;
    transition:0.3s;
}

.ofertas img:hover{
    transform:scale(1.05);
}

/* ========================= */
/* MAPAS */
/* ========================= */

.mapas{
    padding:20px;
}

/* ========================= */
/* HERO */
/* ========================= */

/* HERO */
.hero{
    width:100%;
    min-height:420px;

    background:
    linear-gradient(rgba(0,0,0,0.35),rgba(0,0,0,0.35)),
    url("../img/avi.png");

    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;

    display:flex;
    align-items:center;
    padding:60px;

    color:white;
    position:relative;

    overflow:hidden;
}
/* TEXTO */

.hero-text{
    position:relative;
    max-width:550px;
    z-index:2;
}

.hero-text h2{
    font-size:42px;
    margin-bottom:15px;
    line-height:1.2;
}

.hero-text span{
    color:#ff7b00;
}

.hero-text p{
    font-size:19px;
    line-height:1.6;
}

/* ========================= */
/* SUCURSALES */
/* ========================= */

.sucursales-box{
    background:#0b2a47;
    color:white;
    margin:20px;
    padding:25px;
    border-radius:10px;
}

.sucursales-box h2{
    text-align:center;
    margin-bottom:20px;
}

/* CONTENEDOR */

.contenedor{
    display:flex;
    gap:20px;
    margin-top:20px;
    flex-wrap:nowrap;
}

/* TARJETAS */

.card{
    background:#0c3f6b;
    padding:15px;
    border-radius:15px;
    width:33.3%;
    text-align:center;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card iframe{
    width:100%;
    height:220px;
    border:none;
    border-radius:10px;
}

.card h3{
    margin:12px 0;
}

/* BOTÓN */

.btn-whatsapp{
    display:inline-block;
    background:#25D366;
    color:white;
    padding:10px 15px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.btn-whatsapp:hover{
    background:#1ebe5d;
}

.btn-whatsapp:visited{
    color:white;
}

/* ========================= */
/* PORQUE ELEGIRNOS */
/* ========================= */

.porque{
    background:#f4f6f9;
    padding:50px 20px;
    text-align:center;
}

.porque h2{
    margin-bottom:30px;
    font-size:30px;
    color:#0b2a47;
}

/* CONTENEDOR */

.contenedor-porque{
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:nowrap;
}

/* ITEMS */

.item{
    width:24%;
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    text-align:center;
    transition:0.3s;
}

.item:hover{
    transform:translateY(-5px);
}

.item i{
    font-size:40px;
    color:#0b2a47;
    margin-bottom:10px;
}

.item h3{
    margin:10px 0;
    color:#0b2a47;
}

.item p{
    font-size:14px;
    color:#555;
    line-height:1.6;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer{
    background:#0d1b2a;
    color:white;
    padding:40px 20px 10px;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:20px;
}

.footer-box{
    width:22%;
}

.footer-box h4{
    margin-bottom:10px;
}

.footer-box a{
    display:block;
    color:#ccc;
    text-decoration:none;
    margin:5px 0;
}

.footer-box a:hover{
    color:white;
}

/* COPYRIGHT */

.footer-copy{
    text-align:center;
    margin-top:20px;
    border-top:1px solid #444;
    padding-top:10px;
    font-size:14px;
}

/* ================================================= */
/* ==================== TABLET ===================== */
/* ================================================= */

@media(max-width:1024px){

    header{
        justify-content:center;
        text-align:center;
    }

    nav ul{
        justify-content:center;
    }

    .ofertas{
        justify-content:center;
    }

    .hero{
        min-height:350px;
        padding:40px;
        background-position:center center;
    }

    .hero-text h2{
        font-size:34px;
    }

    .hero-text p{
        font-size:17px;
    }

    .contenedor{
        flex-wrap:wrap;
        justify-content:center;
    }

    .card{
        width:48%;
    }

    .contenedor-porque{
        flex-wrap:wrap;
        justify-content:center;
    }

    .item{
        width:48%;
    }

    .footer-box{
        width:45%;
    }
}

/* ================================================= */
/* ==================== CELULAR ==================== */
/* ================================================= */

@media(max-width:768px){

    header{
        flex-direction:column;
        text-align:center;
    }

    .logo{
        justify-content:center;
    }

    nav ul{
        flex-direction:column;
        align-items:center;
    }

    .ofertas{
        justify-content:center;
    }

    /* HERO */

    .hero{
        min-height:300px;
        padding:30px 20px;

        /* EVITA DISTORSIÓN */
        background-size:cover;
        background-position:center center;
    }

    .hero-text{
        max-width:100%;
        text-align:center;
    }

    .hero-text h2{
        font-size:28px;
    }

    .hero-text p{
        font-size:15px;
    }

    /* TARJETAS */

    .contenedor{
        flex-direction:column;
        align-items:center;
    }

    .card{
        width:100%;
    }

    .card iframe{
        height:200px;
    }

    /* PORQUE */

    .contenedor-porque{
        flex-direction:column;
        align-items:center;
    }

    .item{
        width:100%;
    }

    /* FOOTER */

    .footer-container{
        flex-direction:column;
        text-align:center;
    }

    .footer-box{
        width:100%;
    }
}

/* ================================================= */
/* ============== CELULARES PEQUEÑOS =============== */
/* ================================================= */

@media(max-width:480px){

    .hero{
        min-height:260px;
        padding:20px 15px;
    }

    .hero-text h2{
        font-size:22px;
    }

    .hero-text p{
        font-size:14px;
    }

    .card iframe{
        height:180px;
    }

    .porque h2{
        font-size:24px;
    }

    .footer-copy{
        font-size:12px;
    }
}