/*HOJA DE ESTILOS MATCH TOTAL CLEAN*/
/*Generales*/
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

p {
    font-family: 'Poppins';
}

h1 {
    text-transform: uppercase;
    font-family: 'Archivo Black';
}

h2 {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 500;
    margin-bottom: 40px;
}

h3 {
    font-family: 'Poppins';
    text-transform: uppercase;
    font-size: large;
    font-weight: bold;
}

h4 {
    font-weight: bold;
    font-size: large;
}

/* ............/navbar/............ */
.navbar {
    background-color: white;
    margin: 0;
}

.navbar-nav {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.navbar li {
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    text-transform: uppercase;
}

.logo img {
    width: 200px
}

/* Cambiar color de los enlaces del menú */
.navbar-nav .nav-link {
    color: #014DD6;
    font-size: 15px;

}

.navbar-nav .nav-link:hover {

    background-color: #014DD6;
    color: white;
}

.nav-item-active .nav-link {

    background-color: #014DD6;
    color: white;

}

/* Estilos del botón de hamburguesa */
.custom-toggler {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    /* Asegura que las líneas se apilen */
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;

    gap: 6px;
    /* Espaciado entre las líneas */
}


/* Líneas de la hamburguesa */
.hamburger-line {
    display: block;
    background-color: #014DD6;
    /* Color negro para asegurarse de que se vea */
    height: 4px;
    /* Grosor de las líneas */
    width: 35px;
    /* Largo de las líneas */
    border-radius: 2px;
    /* Bordes redondeados */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}


/* Cuando el menú se abre, animar la X */
.navbar-toggler[aria-expanded="true"] .line1 {
    transform: translateY(10px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .line2 {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .line3 {
    transform: translateY(-10px) rotate(-45deg);
}

/* Alinear menú en móviles */
@media (max-width: 991px) {
    .navbar-nav {
        background-color: rgb(255, 255, 255);
        padding: 10px;
        border-radius: 10px;
    }

    .navbar-nav .nav-link {
        color: #014DD6 !important;
        text-align: center;
        padding: 10px;
        display: block;
    }
}

/*-----------------HEADER---------------*/
header {
    background-image: url(../imagenes/279EE0.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 100px;
    padding-bottom: 90px;
    color: white;
}

.intro {
    padding: 0 30px;
}

.boton a {
    text-decoration: none;
    color: white;
    border: solid;
    border-radius: 7px;
    border-color: white;
    padding: 15px 25px;

}

.boton a:hover {
    font-weight: bold;
    color: #014DD6;
    background-color: #ffffffa7;
}

.boton {
    margin-bottom: 50px;
}

/*-----------------NOSOTROS-------------------*/
.nosotros {
    background-image: url(../imagenes/bg-nosotros.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    margin-top: -200px;
    position: relative;
    z-index: 1;
    padding-bottom: 100px;

}

.nosotros-text {
    margin-top: 170px;
    padding-top: 120px;
    padding-bottom: 50px;
    color: #014DD6
}

.nosotros-text h1 {
    color: #279EE0;
    text-transform: uppercase;
}

.logoanimado {
    width: 300px;
    margin-top: 70px;
}

/*-----------------------NUESTROS SERVICIOS--------------------*/
.servicios {
    padding-top: 100px;
    background-image: url(../imagenes/bg-servicios.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    padding-bottom: 80px;
}

.servicios h1 {
    padding-bottom: 45px;
    color: #014DD6;
}

.servicios h2 {
    padding-bottom: 80px;

}


/* ===== Layout general del card ===== */
.serv-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    overflow: hidden;
    /* respeta el radio en imagen/cta */
    display: flex;
    flex-direction: column;
    /* img -> icon -> body -> cta */
    height: 100%;
    position: relative;
}

.serv-img {
    display: block;
    width: 100%;
    object-fit: cover;
    /* recorta manteniendo composición */
    margin: 0;
    padding: 0;
}


/* Cuerpo: padding superior grande para “dejar pasar” al icono flotante */
.serv-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 36px 16px 0;
    /* 0 abajo para que el botón quede a ras */
    flex: 1 1 auto;
    /* ocupa el espacio disponible */
}

/* Tipografía del título y texto (centrado como en la referencia) */


/* Botón: bloque inferior al ras, sin padding/margen exterior */
.serv-cta {
    display: block;
    width: 70%;
    margin: 0 auto;
    /* SIN margen exterior */
    padding: 12px 18px;
    /* altura visual como en la referencia */
    background: #0d6efd;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 15px;
}

.serv-cta:hover {
    background: #0b5ed7;
    color: #fff;
}

.servicios .container {
    max-width: 1140px;
    /* prueba 1140px; si quieres aún más angostas, usa 1080px o 992px */
}

/*--------------------------------POR QUÉ ELEGIRNOS-----------*/
.elegirnos {
    background-color: #279EE0;
    color: white;
    padding-top: 90px;
    padding-bottom: 240px;
}

.elegirnos h1 {
    padding-bottom: 45px;
}

.elegirnos img {
    width: 150px;
    padding-bottom: 30px;
}
.elegirnos h3{ display: none;}
/*---------------------------CONTACTO-------------------------*/
.contacto {
    background-image: url(../imagenes/bg-nosotros.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    margin-top: -200px;
    position: relative;
    z-index: 1;
    padding-bottom: 100px;
    margin-bottom: 100px;
}

.contacto-text {
    padding-top: 200px;
}

.icono {
    font-weight: 500;
    font-size: large;
}

.icono img {
    width: 30px;
    vertical-align: middle;
}

/*--------------------FOOTER--------------------*/

    footer{background-color: #279EE0;
    color: white;
}

footer img {
    width: 200px;
}

footer p {
    font-size: small;
    color: white;
}

footer img {
    width: 200px;
}

