:root {
    --color-primary: #25306F;
    --color-secondary: #59A0CB;
    --color-complementary: #F2F4F7;
    --color-text: #1e293b;
    --color-text-light-blue: #cfd6ff;
    --color-bg: #F4F6FA;
    --color-light: #ffffff;
    --font-main: "Inter", system-ui, sans-serif;

    /* Tamaños de título */
    --fs-h1: 2.8rem;
    --fs-h2: 2rem;
    --fs-h3: 1.35rem;
    --fs-h4: 1.1rem;

    /* Texto general */
    --fs-body: 1rem;
    --fs-small: 0.9rem;
    --fs-xsmall: 0.8rem;

    /* Pesos */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Alturas de línea */
    --lh-tight: 1.1;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;
}

@media (max-width: 840px) {
    :root {
        --fs-h1: 2.3rem;
        --fs-h2: 1.75rem;
        --fs-h3: 1.25rem;
    }
}

@media (max-width: 600px) {
    :root {
        --fs-h1: 2rem;
        --fs-h2: 1.6rem;
        --fs-h3: 1.15rem;
        --fs-body: 0.96rem;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background: var(--color-bg);
}

/*=== CSS Generales ===*/
h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-medium);
    color: #2d3a78;
}

h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-medium);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.padding-y-4 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.padding-x-1-125 {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
}

ul,
p {
    margin: 0;
}

li {
    list-style-type: none;
}

strong {
    font-weight: var(--fw-semibold);
}

.display-grid {
    display: grid;
    gap: 2rem;
}

.btn-cta {
    font-size: 0.95rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.015em;
}

.container-768 {
    max-width: 768px;
    margin: 0 auto;
}

.container-992 {
    max-width: 992px;
    margin: 0 auto;
}

.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
}

.container-1280 {
    max-width: 1280px;
    margin: 0 auto;
}

.overflow-hidden {
    overflow: hidden;
}

/*=== End CSS Generales ===*/

.nav-container {
    width: 90%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

nav.nav {
    background-color: var(--color-light);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.logo-header {
    display: block;
    height: 50px;
}

.logo-header img {
    height: 100%;
    width: auto;
}

.nav-checkbox {
    display: none;
}

.nav-toggle {
    position: absolute;
    cursor: pointer;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle svg {
    width: 1.5rem;
    fill: var(--color-primary);
}

.nav-toggle .close {
    display: none;
}

/*Acciones en el checkbox para hacer visibli y ocultar el menú en móviles */
#nav-checkbox:checked~ul.nav-menu li {
    display: block;
}

#nav-checkbox:checked~label.nav-toggle .close {
    display: block;
}

#nav-checkbox:checked~label.nav-toggle .menu {
    display: none;
}

.nav-menu {
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    top: 100%;
    left: 0;
}

.nav-menu li {
    display: none;
}

.nav-menu a {
    font-weight: 500;
}

a.nav-link {
    padding-bottom: 0.25rem;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-bottom 0.15s ease;
}

a.nav-link:is(:link, :active, :visited).active,
a.nav-link:is(:link, :active, :visited).active-parent {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
}

a.nav-link:hover {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
}

.dropdown-item:hover {
    background-color: rgba(56, 77, 196, 0.103);
}

.btn-cta-menu {
    display: none;
    gap: .5rem;
    align-items: center;
    justify-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 48, 111, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta-menu:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 48, 111, 0.45);
}

/* CSS BOTON WHATSAPP FLOTANTE*/
.boton-whatsapp-flotante {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: fixed;
    z-index: 3;
    bottom: 85px;
    right: 40px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition-property: transform;
    transition-duration: 300ms;
    transition-timing-function: linear;
}

.boton-whatsapp-flotante svg {
    width: 64px;
    height: auto;
}

.boton-whatsapp-flotante:hover {
    transform: scale(1.1);
}

.header-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
}

footer {
    background-color: var(--color-primary);
    color: #e5e7eb;
}

/*@media responsive*/
@media (min-width: 768px) {

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
    }

    .nav-menu li {
        display: block;
    }

    .btn-cta-menu {
        display: flex;
    }
}

.row-display-grid-footer {
    grid-template-columns: repeat(3, 1fr);
    padding: 2.5rem 0rem 1.125rem;
    justify-items: center;
}

.footer-logo {
    margin-bottom: .5rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-description {
    font-size: var(--fs-small);
    color: var(--color-text-light-blue);
    max-width: 25rem;
}

.footer-title {
    font-weight: var(--fw-semibold);
    margin-bottom: .75rem;
    color: var(--color-light);
    font-size: var(--fs-h4);
}

.footer-links a {
    display: block;
    font-size: var(--fs-small);
    margin-bottom: .35rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    font-size: var(--fs-small);
    margin-bottom: .35rem;
}

.last-child-no-margin *:last-child {
    margin-bottom: 0;
}

.footer-social {
    margin-top: .7rem;
    display: flex;
    gap: .6rem;
}

.footer-social a {
    display: flex;
    justify-items: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.55rem;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    transition: background 0.2s ease;
}

.footer-social a:hover {
    background: var(--color-secondary)
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 1.5rem;
    padding: 1rem 0;
    font-size: var(--fs-xsmall);
    color: var(--color-text-light-blue);
}

@media (max-width: 767px) {

    .nav-menu {
        max-width: 350px;
        width: 100%;
        background-color: var(--color-light);
        box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
        gap: 0;
        z-index: 999;
    }

    #nav-checkbox:checked~.nav-menu {
        border-top: 3px solid var(--color-secondary);
        padding: 1.125rem;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    nav li a {
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, .09);
        padding: .625rem 1rem !important;
    }

    .row-display-grid-footer {
        grid-template-columns: 1fr;
        justify-items: normal;
    }
}