* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* HEADER */

.menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    padding: 0;

    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.menu-toggle:focus,
.menu-toggle:active {
    outline: none;
    background: transparent;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 120px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    display: flex;
    background-color: white;
    color: black;
    align-items: center;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

header a {
    text-decoration: none;
    color: black;
}

header a:hover {
    color: rgb(37, 57, 133);
}

header nav ul {
    display: flex;
    align-items: flex-end;
}

header nav {
    margin-left: auto;
}

header img {
    height: 70px;
    margin-left: 50px;
}

header nav ul li {
    list-style: none;
    margin-right: 45px;
}

/* PRINCIPAL */

body {
    text-align: center;
    padding-top: 70px;
}

#inicio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;

    background-image:
        linear-gradient(
            to right,
            rgba(8, 23, 73, 0.92) 0%,
            rgba(13, 42, 110, 0.82) 30%,
            rgba(25, 70, 170, 0.55) 60%,
            rgba(25, 70, 170, 0.15) 100%
        ),
        url("../img/familia3.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 650px;
    justify-content: center;
    padding: 0 8%;
}

#inicio p,
.elegirnos p,
.contactoDatos p,
.descripcion {
    line-height: 1.6;
    color: white;
}

#inicio h1,
#inicio p,
.botones {
    max-width: 700px;
}

#inicio h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: white;
    padding-bottom: 2rem;
}

#inicio p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    padding-bottom: 1rem;
}

.subtitulo {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.botones {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.boton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12rem;
    padding: 1.3rem;
    background-color: rgb(37, 57, 133);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: .3s;
}

/* BOTÓN ROJO */
.boton-rojo {
    background-color: red;
    color: white;
    border: 1px solid red;
}

.boton-rojo:hover {
    background-color: rgb(220, 0, 0); /* apenas más oscuro que rojo normal */
    border-color: rgb(220, 0, 0);
    color: white;
}

/* BOTÓN TRANSPARENTE CON BORDE BLANCO */
.boton-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.boton-outline:hover {
    background: rgba(255, 255, 255, 0.15); /* blanco suave */
    border-color: rgba(255, 255, 255, 0.9);
    color: white;
    transform: translateY(-3px);
}



/* SECCION SERVICIOS */

.contenedor-tarjetas {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#servicios li::before {
    content: "✔";
    color: green;
    margin-right: 0.8rem;
}

#servicios li {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

#servicios h2 {
    padding-top: 3rem;
    font-size: 40px;
}

#servicios p {
    padding-top: 0.5rem;
    font-size: 18px;
    line-height: 1.6;
}

#servicios h3 {
    font-size: 30px;
    margin-bottom: 1rem;
}

/* TARJETAS */

.tarjeta {
    margin: 1.5rem;
    padding: 3rem;
    text-align: left;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    background-color: rgb(240, 246, 254);
    border-radius: 2rem;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    transition: .3s;
}

.tarjeta>div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.tarjeta h3 {
    margin: 0px;
}

.tarjeta>div>img {
    height: 50px;
    display: block;
}

.tarjeta li {
    font-size: 18px;
}

/* NUESTROS CLIENTES */

#nuestrosnumeros>div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background-color: rgb(249, 250, 251);
    padding: 2rem;
}

.elegirnos {
    display: flex;
    flex-direction: column;
    width: 50%;
    text-align: left;
    margin: 1rem;
}

.elegirnos>h5 {
    margin-top: 10px;
    margin-bottom: 16px;
    font-size: 40px;
}

.elegirnos>p {
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 20px;
    color: rgb(72, 85, 105);
}

.nuestros {
    width: 50%;
    background-color: rgb(38, 48, 144);
    color: white;
    padding: 3rem;
    text-align: left;
    border-radius: 15px;
}

.estadisticas {
    margin-top: 1rem;
    font-size: 50px;
    color: rgb(154, 196, 254);
    font-weight: bold;
}

.descripcion {
    margin-top: 0.8rem;
    font-size: 20px;
}

.nuestros>h2 {
    font-size: 30px;
}

.icons {
    display: flex;
    align-items: center;
    margin-top: 0.9rem;
}

.icons img {
    height: 25px;
}

.icons h5 {
    margin-left: 8px;
    font-size: 25px;
}

/* CONTACTO */

.contactoCaja {
    display: flex;
    margin: 2rem;
    align-items: flex-start;
}

#contacto {
    margin-top: 3rem;
}

#contacto h2 {
    font-size: 40px;
    margin-bottom: 0.8rem
}

#contacto h3 {
    font-size: 30px;
    margin-bottom: 0.8rem
}

#contacto h4 {
    font-size: 22px;
    margin-left: 0.9rem;
}

.contactoDatos>p {
    font-size: 20px;
    color: rgb(72, 85, 105);
}

.fondo {
    margin-bottom: 1.5rem;
}

.formulario {
    width: 50%;
}

.contactoDatos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgb(240, 246, 254);
    height: 80%;
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
    margin-left: 1.5rem;
}

.derecha {
    flex: 1;
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 4px;
}

/* HORARIO */

.horario {
    display: flex;
    flex-direction: column;
    background-color: rgb(38, 48, 144);
    padding: 2rem;
    margin-left: 1.5rem;
    margin-top: 2rem;
    color: white;
    border-radius: 15px;
    height: auto;
}

.horario h3 {
    text-align: left;
}

.dias {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.dias>div>p {
    color: white;
    margin-top: 0.5rem;
}

.horario p {
    font-size: 20px;
    color: rgb(72, 85, 105);
}

.izq {
    text-align: left;
}

.der {
    text-align: right;
}

.ContactoLogo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ContactoLogo img {
    height: 25px;
}

.contacto p {
    font-size: 18px;
}

/* FORMULARIO */

form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 600px;
    margin: auto;
}

label {
    text-align: left;
    font-weight: bold;
}

input,
textarea {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgb(200, 200, 200);
    font-size: 16px;
}

textarea {
    height: 150px;
    resize: none;
}

button {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background-color: rgb(37, 57, 133);
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: rgb(25, 40, 100);
}

/* FOOTER */

footer {
    display: flex;
    flex-direction: column;
    min-height: 20rem;

    padding-top: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0;
    background-color: rgb(38, 48, 144);
    color: rgb(201, 222, 248);
}

.footer {
    display: flex;
    justify-content: center;
    flex: 1;
}


.footerDiv {
    width: 33%;
    color: rgb(230, 236, 245);
}

.footerDiv iframe {
    height: 250px;
    width: 100%;
    padding-top: 1rem;
    border-radius: 10px 10px 10px 10px;
}

.redesFooter {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer a:hover {
    color: white;
}

.redesFooter img {
    width: 32px;
    height: auto;
    transition: transform 0.3s ease;
}

.redesFooter img:hover {
    transform: scale(1.1);
}

footer ul {
    list-style: none;
}

footer li {
    padding: 0.4rem;
}

footer p {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.titulos {
    font-size: 1.3rem;
}

.footerDiv ul a {
    font-size: 1.3rem;
    list-style: none;
    text-decoration: none;
    color: rgb(203, 225, 253);
    padding: 0.5rem;
}

.footerDiv ul {
    padding-top: 1rem;
}

.aviso {
    text-decoration: none;
    color: rgb(203, 225, 253);
}

.privacidad {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;

}

.privacidad input {
    margin-top: 3px;
}

.privacidad a {
    text-decoration: none;
    font-weight: 600;
}

.border {
    margin-top: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.privacidad a:hover {
    text-decoration: underline;
}

/* BOTON WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* BOTON FLECHA */

#btnArriba {
    position: fixed;
    bottom: 90px;
    right: 20px;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background-color: rgb(37, 57, 133);

    border: none;
    cursor: pointer;

    z-index: 999;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transition: transform 0.2s ease;
}

#btnArriba img {
    width: 80%;
    height: 80%;
    display: block;
    margin: auto;
    object-fit: contain;
}

#btnArriba:hover {
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
}

/* =========================
   TABLETS
========================= */

@media (max-width: 1024px) {

    .contenedor-tarjetas,
    #nuestrosnumeros>div,
    .contactoCaja,
    .footer {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta,
    .elegirnos,
    .nuestros,
    .formulario,
    .derecha,
    .footerDiv {
        width: 100%;
    }

    .contactoDatos,
    .horario {
        margin-left: 0;
    }

    .footerDiv {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footerDiv iframe {
        width: 100%;
        height: 250px;
    }

    footer {
        height: auto;
    }

    .elegirnos {
        text-align: center;
    }

    .icons {
        justify-content: center;
    }

    .nuestros {
        text-align: center;
    }
}

/* =========================
CELULARES
========================= */

@media (max-width: 768px) {

    /* HEADER */

    .menu-toggle {
        display: block;
    }

    header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1rem;
    }

    header img {
        margin-left: 0;
        height: 60px;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        color: black;
        cursor: pointer;
        padding: 0;
    }

    nav {
        display: none;
        width: 100%;
        margin-left: 0;
    }

    nav.active {
        display: block;
        width: 100%;
        margin-top: 15px;
        background: white;
        border-radius: 12px;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    nav ul li {
        margin: 12px 0;
    }

    nav ul li a {
        display: block;
        padding: 5px 20px;
    }

    /* TIPOGRAFÍA GENERAL */

    body {
        font-size: 15px;
    }

    /* INICIO */

    #inicio {
        padding: 3rem 1rem;
    }

    #inicio h1 {
        font-size: 1.8rem;
    }

    #inicio p {
        font-size: 0.95rem;
    }

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

    .boton {
        width: 100%;
        max-width: 300px;
        font-size: 0.95rem;
    }

    /* SERVICIOS */

    #servicios h2,
    #contacto h2 {
        font-size: 1.8rem;
    }

    #servicios p {
        font-size: 0.95rem;
    }

    .tarjeta {
        padding: 1.5rem;
    }

    .tarjeta h3 {
        font-size: 1.4rem;
    }

    .tarjeta li {
        font-size: 0.95rem;
    }

    /* NUESTROS NÚMEROS */

    .elegirnos {
        width: 100%;
        text-align: center;
    }

    .elegirnos h5 {
        font-size: 1.8rem;
    }

    .elegirnos p {
        font-size: 0.95rem;
    }

    .icons {
        justify-content: center;
    }

    .icons h5 {
        font-size: 1.1rem;
    }

    .nuestros {
        width: 100%;
        text-align: center;
        padding: 2rem;
    }

    .nuestros>h2 {
        font-size: 1.5rem;
    }

    .estadisticas {
        font-size: 2rem;
    }

    .descripcion {
        font-size: 1rem;
    }

    /* CONTACTO */

    .contactoCaja {
        margin: 1rem;
    }

    .contactoDatos,
    .horario {
        margin-left: 0;
    }

    .contactoDatos {
        padding: 1.5rem;
    }

    #contacto h3 {
        font-size: 1.4rem;
    }

    #contacto h4 {
        font-size: 1.1rem;
    }

    .contactoDatos>p,
    .horario p {
        font-size: 1rem;
    }

    form {
        width: 100%;
    }

    input,
    textarea,
    button {
        font-size: 1rem;
    }

    /* FOOTER */

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

    .footerDiv {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footerDiv iframe {
        width: 100%;
        height: 250px;
    }

    .titulos,
    .footerDiv ul a,
    .redesFooter a {
        font-size: 1rem;
    }

    .redesFooter {
        flex-direction: column;
        gap: 0.5rem;
    }

    .border {
        text-align: center;
        padding: 1rem 0;
    }

    /* BOTONES FLOTANTES */

    .whatsapp-float,
    #btnArriba {
        width: 60px;
        height: 60px;
    }

    .whatsapp-float {
        right: 15px;
        bottom: 15px;
    }

    #btnArriba {
        right: 15px;
        bottom: 85px;
    }
}