:root {
    --white: #fff;
    --title-color: #1f2937;
    --gray: #9c9fa5;
    --color-text-gray: #666666;
    --secondary-color: #cb8342;
    --primary-color: #b9684a;
    --color-red-medium: #c73730;
    --color-red-light: #f5b9b5;
    --color-red: #b21f16;
    --color-yellow: #dfbe46;
    --color-yellow-medium: #ecc73f;
    --color-yellow-light: #f3e1a6;
    --color-orange: #d87025;
    --color-orange-medium: #F97316;
    --color-orange-light: #FED7AA;
    --bgcolor-gray: #efe8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--color-text-gray);
}

.nav {
    background-color: var(--white);
}

.nav-container {
    width: 90%;
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
}

.logos-mpi {
    display: block;
    height: 70px;
}

.logos-mpi 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: 2rem;
    fill: var(--gray);
}

.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;
}

.dropdown {
    position: relative;
}

.dropdown-toggle.nav-link::after {
    display: inline-block;
    content: "";
    margin-left: .255em;
    vertical-align: .255em;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

a.nav-link:is(:link, :active, :visited).active,
a.nav-link:is(:link, :active, :visited).active-parent {
    color: var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom: 4px solid var(--primary-color)
}

/*Estilos sub-menu*/
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 999;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, .15);
    min-width: 10rem;
}

.dropdown-menu-level-1 {
    top: 100%;
    left: 0;
    margin-top: .25rem;
}

.dropdown-menu-level-2 {
    top: -.063rem;
    right: 100%;
    margin-right: .15rem;
}

/* Aparace el dropdown en hover*/
.dropdown a:hover+.dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-toggle.dropdown-item::before {
    display: inline-block;
    content: "";
    margin-right: .255em;
    border-top: .3em solid transparent;
    border-right: .3em solid;
    border-bottom: .3em solid transparent;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .375rem 1rem;
    clear: both;
    text-align: inherit;
    /* evita que el texto se ajuste a la siguiente línea dentro de un elemento */
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: rgba(231, 126, 85, 0.082);
}

.dropdown-item:is(:link, :active, :visited).active,
.dropdown-item:is(:link, :active, :visited).active-parent {
    background-color: rgba(231, 126, 85, 0.082);
    margin: 1px 0;
}

.contac-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 14px;
}

/*CSS WhatsApp Flotante*/
.boton-whatsapp-flotante {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: fixed;
    right: 60px;
    z-index: 2;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
    transition: transform .5s;
}

.boton-whatsapp-flotante svg {
    width: 64px;
    height: auto;
}

.boton-whatsapp-flotante:hover {
    transform: scale(1.05);
}

.first-boton-whatsapp {
    bottom: 90px;
}

.second-boton-whatsapp {
    bottom: 180px;
}

/*CSS general*/
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.2;
}

ul,
p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

li {
    list-style-type: none;
}

.padding-y-4 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.padding-x-1 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.margin-bottom-05 {
    margin-bottom: .5rem;
}

.margin-bottom-1 {
    margin-bottom: 1rem;
}

.margin-bottom-1-5 {
    margin-bottom: 1.5rem;
}

.margin-bottom-2 {
    margin-bottom: 2rem;
}

.margin-bottom-3 {
    margin-bottom: 3rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.container-768 {
    max-width: 48rem;
    margin: 0 auto;
}

.display-grid {
    display: grid;
}

h1 {
    font-size: 3rem;
}

h1,
h2,
h3 {
    color: var(--title-color);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

.background-color-section {
    --tw-bg-opacity: 0.5;
    background-color: rgb(245 236 229 / var(--tw-bg-opacity));
}

.text-align-center {
    text-align: center;
}

.overflow-hidden {
    overflow: hidden;
}

.font-size-18 {
    font-size: 1.125rem;
}

.home-page-banner-text-link {
    display: flex;
    gap: 1rem;
}

.home-page-banner-text-link.link-center {
    justify-content: center;
    align-items: center;
}

.buttom-link {
    display: inline-flex;
    justify-content: center;
    gap: .5rem;
    align-items: center;
    font-weight: 600;
    color: var(--white);
    border-radius: 5px;
    border: 2px solid transparent;
    padding: .75rem 1.5rem;
    transition: background-color .3s ease;
}

.buttom-link.red {
    background-color: var(--color-red);
}

.buttom-link.red:hover {
    background-color: var(--color-red-medium);
}

.buttom-link i {
    transition: transform .3s ease;
}

.buttom-link:hover i {
    transform: translateX(5px);
}

.mobile-call {
    border-color: var(--color-red);
    transition: background-color .3s ease;
}

.mobile-call:hover {
    background-color: var(--color-red);
}

/*CSS footer*/
.footer {
    background-color: #212329;
}

.footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #D1D5DB;
}

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section ul li a {
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-contact-item i {
    padding-top: 5px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #383c47;
    padding: 2rem 0;
    color: #9CA3AF;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links p a {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .3s ease;
}

.footer-links p a:hover {
    color: var(--secondary-color);
}

/*@media responsive*/
@media (min-width: 768px) {

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
    }

    .nav-menu li {
        display: block;
    }
}

@media (max-width: 1200px) {
    .contac-info-header {
        display: none;
    }
}

@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content .footer-section:nth-child(4) {
        justify-self: normal;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 861px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: .5rem;
    }

    .footer-bottom-content {
        text-align: center;
    }
}

@media (max-width: 767px) {

    div.nav-container div.logos-mpi {
        height: 50px;
    }

    .footer-logo {
        height: 60px;
    }

    .nav-menu {
        width: 100%;
        background-color: var(--white);
        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;
    }

    .dropdown-menu {
        display: block;
        position: static;
        background-color: transparent;
        z-index: 0;
        border: none;
        padding: 0;
    }

    #nav-checkbox:checked~.nav-menu {
        border-top: 3px solid var(--primary-color);
        padding: 1.125rem;
    }

    .dropdown-menu-level-1 {
        margin: 0
    }

    .dropdown-menu-level-2 {
        padding-left: 1rem;
        margin: 0
    }

    .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;
    }

    .dropdown-item {
        white-space: normal;
    }

    .dropdown-item:is(:link, :active, :visited).active,
    .dropdown-item:is(:link, :active, :visited).active-parent {
        margin: 2px 0;
    }

    .dropdown-toggle.nav-link::after,
    .dropdown-toggle.dropdown-item::before {
        display: none;
    }

    .boton-whatsapp-flotante {
        right: 35px;
        transition: none;
    }

    .boton-whatsapp-flotante:hover {
        transform: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 576px) {

    .first-boton-whatsapp {
        bottom: 125px;
    }

    .second-boton-whatsapp {
        bottom: 45px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .home-page-banner-text-link {
        flex-direction: column;
    }

    .home-page-banner-text-link a {
        width: 100%;
    }

    .footer-contact .email {
        word-break: break-all;
    }
}

.enter-from-top {
    transform: translateY(-30px);
    opacity: 0;
    animation: enterFromTop 1s ease-out forwards;
}

@keyframes enterFromTop {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.enter-from-down {
    transform: translateY(30px);
    opacity: 0;
    animation: enterFromDown 1s ease-out forwards;
}

@keyframes enterFromDown {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}