@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root{
    /*  COLOR VARIABLES */
    --color-primary: #3D568F;
    --color-secondary: #9FBAF1;
    --color-accent: #EAF3B2;
    --color-neutral-heavy: #454545;
    --color-neutral-light: #919191;

    /*  FONT VARIABLES  */
    /* HERO */
    --hero-desktop: 700 56px "Red Hat Display", sans-serif;
    --hero-mobile: 700 40px "Red Hat Display", sans-serif;

    /* HEADLINES */
    --headline1-desktop: 700 48px "Red Hat Display", sans-serif;
    --headline1-mobile: 700 36px "Red Hat Display", sans-serif;

    --headline2-desktop: 700 42px "Red Hat Display", sans-serif;
    --headline2-mobile: 700 30px "Red Hat Display", sans-serif;

    /* TITLES */
    --title1-desktop: 700 36px "Red Hat Display", sans-serif;
    --title1-mobile: 700 24px "Red Hat Display", sans-serif;

    --title2-desktop: 700 28px "Red Hat Display", sans-serif;
    --title2-mobile: 700 16px "Red Hat Display", sans-serif;

    /* SUBTITLE */
    --subtitle-desktop: 700 22px "Red Hat Display", sans-serif;
    --subtitle-mobile: 700 20px "Red Hat Display", sans-serif;

    /* CAPTIONS */
    --caption1-desktop: 400 28px "Red Hat Display", sans-serif;
    --caption1-mobile: 400 20px "Red Hat Display", sans-serif;

    --caption2-desktop: 700 20px "Red Hat Display", sans-serif;
    --caption2-mobile: 700 18px "Red Hat Display", sans-serif;

    /* QUOTE */
    --quote-desktop: 500 24px "Red Hat Display", sans-serif;

    /* BODY */
    --body1-desktop: 400 18px "Red Hat Display", sans-serif;
    --body1-mobile: 400 16px "Red Hat Display", sans-serif;

    --body1bold-desktop: 700 18px "Red Hat Display", sans-serif;
    --body1bold-mobile: 700 16px "Red Hat Display", sans-serif;

    --body2-desktop: 400 16px "Red Hat Display", sans-serif;
    --body2-mobile: 400 14px "Red Hat Display", sans-serif;

    /* TABS */
    --tabs-desktop: 600 16px "Red Hat Display", sans-serif;
    --tabs-mobile: 600 16px "Red Hat Display", sans-serif;

    /* BUTTON */
    --button-desktop: 600 16px "Red Hat Display", sans-serif;
    --button-mobile: 600 14px "Red Hat Display", sans-serif;
}

*{
    font-family: "Red Hat Display", sans-serif;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

/* SCROLL SOFT */
html {
    scroll-behavior: smooth;
}

button, a {
    cursor: pointer;
}

/*SECCION NAV*/
#desktopNav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 0;
}

#navLinks{
    display: flex;
    gap: 1.7rem;
    color: #3D568F;
    font: var(--tabs-desktop);
}

#navLinks > li{
    padding: 1rem 0;
}

#navNosotros:hover {
    -webkit-text-stroke: 0.4px #3D568F;
}

#navLinks li > a{
    color: #3D568F;
    text-decoration: none;
    display: block;
    width: 100%;
}

#navLinks > li > img{
    padding: 0 0.3rem;
}

#titleNav{
    text-align: center;
}

#titleNav h1{
    font-size: 27px;
    font-weight: bold;
    letter-spacing: -3%;
    color: #314572;
}

#titleNav h3{
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 9%;
    color: #314572;
}

#navButtons {
    padding: 0 1.85rem;
}

#navButtons button{
    align-items: center;
    font: var(--button-desktop);
    border: none;
    border-radius: 30px;
    padding: 0.85rem 1.5rem;
}

#navButtons button:nth-child(1){
    background-color: #E2E6EE;
    color: var(--color-primary);
    border: none;
}

#navButtons button:nth-child(2){
    margin-left: 0.5rem;
    background-color: var(--color-primary);
    color: #E2E6EE;
}

#navButtons button:nth-child(2):hover {
    background-color: #314572;
}

#mobileNav {
    display: none;
}

/* DROPDOWN */
.hasDropdown {
    position: relative;
    cursor: pointer;
}

.hasDropdown > img {
    transition: transform 0.2s ease;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    min-width: 220px;
    z-index: 100;
}

.dropdown li {
    padding: 0.6rem 1.5rem;
    color: #3D568F;
    font: var(--tabs-desktop);
    list-style: none;
    white-space: nowrap;
}

.dropdown li a {
    color: #3D568F;
    text-decoration: none;
    display: block;
    width: 100%;
}

.dropdown li:hover {
    background-color: #F5F8FE;
}

.hasDropdown:hover .dropdown {
    display: block;
} 

.hasDropdown.open .dropdown {
    display: block;
}

.hasDropdown:hover > img,
.hasDropdown:focus-within > img,
.hasDropdown.open > img {
    transform: rotate(180deg);
}

.hasDropdown:hover {
    -webkit-text-stroke: 0.3px #3D568F;
}

.hasDropdown.open {
    -webkit-text-stroke: 0.3px #3D568F;
}

/*SECCION HERO*/
#desktopHero{
    background-image: url("img/hero-desktop-x1.jpg");
    background-size: cover;
    background-position: center;
    height: 75vh;
    position: relative;
}

#desktopCard{
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 36rem;
    background-color: #9FBAF1;
    padding: 2rem 3rem;
    border-radius: 16px 16px 128px 16px ;
}

#desktopCard span{
    font: var(--body1bold-desktop);
    color: white;
}

.heroIntroMobile {
    display: none;
}

#desktopCard h2{
    font: var(--hero-desktop);
    line-height: 1;
    color: #2E416B;
    padding-top: 0.7rem;
}

#heroText{
    font: var(--body1-desktop);
    color: #2E416B;
    padding-top: 1.3rem;
    padding-bottom: 1.8rem;
}

#desktopCardButtons{
    display: flex;
    align-items: center;
}

#buttonReserve{
    display: flex;
    cursor: pointer;
    background-color: var(--color-primary);
    border-radius: 30px;
    padding: 0.85rem 1.5rem;
    margin-right: 0.5rem;
}

#buttonReserve img{
    object-fit: contain;
}

#buttonReserve p{
    color: white;
    padding-right: 0.5rem;
}

#buttonReserve:hover {
    background-color: #314572;
}

#buttonContact{
    border-radius: 30px;
    border: 1px solid var(--color-primary);
    padding: 0.85rem 1.5rem;
    background-color: #9FBAF1;
    font: var(--button-desktop);
    color: var(--color-primary);
}

#desktopCardButtons a {
    text-decoration: none;
    display: flex;
}

/*SECCION ANALYTICS*/
#desktopAnalytics{
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 3.25rem 6.25rem;
}

.analyticsCards{
    padding: 0 2vw;
}

#desktopAnalytics div:nth-child(1),
#desktopAnalytics div:nth-child(2),
#desktopAnalytics div:nth-child(3){
    border-right: 1px solid #E2E6EE;
}

#desktopAnalytics h3{
    font: var(--headline1-desktop);
    color: #2E416B;
}

#desktopAnalytics span{
    color: #BBC28E;
}

#desktopAnalytics p{
    font: var(--caption2-desktop);
    color: var(--color-primary);
}

/*SECCION BANNER*/
#desktopBanner{
    text-align: center;
    background-color: #314572;
    padding: 1.5rem 0;
}

#desktopBanner p{
    font: var(--body1-desktop);
    color: white;
}

#desktopBanner p span{
    font: var(--body1bold-desktop);
    color: #EAF3B2;
}

/*SECCION ABOUT US*/
#AboutUs{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0;
    gap: 3.75rem;
}

#containerAboutUs{
    display: flex;
    margin: 0 6.25rem;
    gap: 5rem;
}

#contentHistory{
    width: 100%;
}

#contentHistory span{
    font: var(--caption2-desktop);
    color: #8C926B;
}

#contentHistory h3{
    font: var(--title1-desktop);
    color: var(--color-primary);
}

#comeHereDiv{
    border-left: 0.5rem solid #E1EAFB;
    padding: 0.5rem 0;
    padding-left: 0.7rem;
}

#paragraphAboutUs{
    font: var(--body1-desktop);
    color: var(--color-primary);
}

#paragraphComeHere{
    font: var(--quote-desktop);
    color: var(--color-primary);
}

#contentHistory{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#whoWeAreDiv {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 8.5rem;
}

.cardsAboutUs{
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: #F5F8FE;
    border-radius: 1.5rem;
    padding: 1rem;
}

.cardsAboutUs p:nth-child(1){
    font: var(--subtitle-desktop);
    color: #374D81;
    padding-bottom: 0.8rem;
}

.cardsAboutUs p:nth-child(2){
    font: var(--body1-desktop);
    color: #48546C;
}

#contentIcons{
    width: 100%;
}

#contentIcons .cardsAboutUs:nth-child(2){
    margin: 1rem 0;
}

#buttonAboutUs{
    font: var(--button-desktop);
    color: #52553E;
    background-color: #EAF3B2;
    border: none;
    border-radius: 1.875rem;
    padding: 0.85rem 1.5rem;
    text-align: center;
}

#buttonAboutUs > img {
    padding-left: 0.5rem;;
}

#buttonAboutUs:hover {
    background-color: #D3DBA0;
}

/* SECCION CATEGORIES-CARDS */
#containerCategories{
    background-color: #F5F8FE;
    padding: 6rem 6.25rem;
}

#contentCategories{
    text-align: center;
    border-bottom: 0.3rem solid #EAF3B2;
}

#contentCategories h3{
    font: var(--headline2-desktop);
    color: #2E416B;
    margin-bottom: 2rem;
}

#contentCategories p{
    font: var(--body1-desktop);
    color: #374D81;
    margin-bottom: 3rem;
}

#buttonsCategories {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

#buttonsCategories .categoriesHighlight {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #EAF3B2;
    border-radius: 1rem 1rem 0rem 0rem;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

#buttonsCategories button{
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background-color: transparent;
    border-radius: 1rem 1rem 0rem 0rem;
    color: #2E416B;
    font: var(--tabs-desktop);
    transition: background-color 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    z-index: 1;
}

#buttonsCategories button.btnCategories-active {
    background-color: transparent;  /*SOLO SI ES EL ACTIVO - HACER EN JS*/
    color: #2A3A5E;
}

@media (prefers-reduced-motion: reduce) {
    #buttonsCategories .categoriesHighlight,
    #buttonsCategories button {
        transition: none;
    }
}

#mobileCategoriesDropdown {
    display: none;
    position: relative;
    width: 100%;
}

#mobileDropdownToggle {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    border: none;
    background-color: #EAF3B2;
    font: var(--tabs-mobile);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 2;
}

#mobileDropdownToggle:active {
    background-color: #D3DBA0;
}

#mobileDropdownIcon {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.2s ease;
}

#mobileDropdownMenu {
    position: absolute;
    top: calc(100% - 0.8rem);
    left: 0;
    right: 0;
    background-color: #FCFDF3;
    border: 1px solid #E2E6EE;
    border-top: none;
    border-radius: 0 0 0.85rem 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    z-index: 1;
    text-align: start;
    padding: 1.25rem 0 0.35rem 1rem;
}

#mobileDropdownMenu.open {
    max-height: 250px;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

#mobileDropdownMenu li {
    padding: 0.75rem 1rem;
    color: var(--color-primary);
    font: var(--tabs-desktop);
    cursor: pointer;
    transform: translateY(-0.5rem);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease, background-color 0.1s ease;
}

#mobileDropdownMenu.open li {
    transform: translateY(0);
    opacity: 1;
}

#mobileDropdownMenu li:last-child {
    border-bottom: none;
}

#mobileDropdownMenu li:hover {
    background-color: #F5F8FE;
}

#contentCardsSpecialties{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

#mobileDropdownLabel {
    color: #2E416B;
}

#mobileDropdownIcon{
    width: 1.3rem;
    color: #2E416B;
}

#mobileDropdownToggle{
    padding: 1.5rem 2rem;
}

.cardCategories{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1rem;
    background-color: white;
    border: 1px solid #E2E6EE;
    border-radius: 1.5rem;
    gap: 1rem;
}

.cardCategories img {
    width: 100%;
    height: 8.25rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.cardCategories h3{
    font: var(--title2-desktop);
    color: var(--color-primary);
}

.cardCategories p {
    font: var(--body2-desktop);
    color: #778CB5;
}

.cardCategories button{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font: var(--button-desktop);
    color: var(--color-primary);
    background-color: white;
    border: none;
    margin-top: auto;
}

.cardCategories button::after {
    content: '';
    width: 0;
    height: 0.95rem;
    background-image: url("img/icon-arrow-right-blue.svg");
    background-size: 0.8rem;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: translateX(-0.2rem);
    transition: width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.cardCategories button:hover::after,
.cardCategories button:focus-visible::after {
    width: 0.95rem;
    opacity: 1;
    transform: translateX(0);
}

/* SECCION REAL CASES */
#containerRealCases{
    margin: 3.75rem 6.25rem;
    margin-bottom: 7.5rem;
}

#contentTexts{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

#buttonsCases{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: flex-end;
}

#buttonsCases > a {
    text-decoration: none;
}

#textCases span{
    font: var(--caption2-desktop);
    color: #8C926B;
}

#textCases h3{
    font: var(--title1-desktop);
    color: var(--color-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#textCases p{
    font: var(--body1-desktop);
    color: var(--color-primary);
}

#buttonsCases button{
    font: var(--button-desktop);
    padding: 0.85rem 1.5rem;
    border-radius: 1.875rem;

}

#buttonsCases > a:nth-child(1) button{
    color: var(--color-primary);
    background-color: white;
    border: 1px solid var(--color-primary);
}

#buttonsCases > a:nth-child(2) button{
    color: #52553E;
    background-color: #EAF3B2;
    border: none;
    margin-left: 0.4rem;
}

#buttonsCases > a:nth-child(2) button > img{
    padding-left: 0.4rem;
}

#buttonsCases > a:nth-child(2) button:hover {
    background-color: #D3DBA0;
}

#contentCaseCards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem;
}

#contentCaseCards img{
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1.875rem;
}

#contentCaseCards div{
    padding: 1.875rem;
    border: 1px solid #E2E6EE;
    border-radius: 1.5rem;
}

#contentCaseCards div p{
    font: var(--subtitle-desktop);
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

#contentCaseCards div span{
    font: var(--body1-desktop);
    color: #48546C;
}

/* SECCION LOCATIONS */
#containerLocations{
    margin: 0 6.25rem;
    margin-bottom: 7.5rem;
}

#contentLocationText{
    text-align: center;
    margin-bottom: 3rem;
}

#contentLocationText h2{
    font: var(--headline1-desktop);
    color: #2E416B;
}

#contentLocationText p{
    font: var(--body1-desktop);
    color: #374D81;
}

#contentLocationsCards{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.locationCard{
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #E2E6EE;
    border-radius: 1.5rem;
}

.locationCard > img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.locationCard h3{
    margin-top: 3rem;
    font: var(--title1-desktop);
    color: #2E416B;
}

.locationIcons:first-of-type {
    margin-bottom: 1rem;
}

.locationAddress{
    font: var(--body1bold-desktop);
    color: #314572;
    margin-bottom: 1rem;
}

.locationTexts{
    font: var(--body1bold-desktop);
    color: #314572;
}

.locationTexts span{
    font: var(--body1-desktop);
}

.locationIcons{
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

#locationTurn{
    display: inline-block;
    padding: 0.2rem 2rem;
    background-color: #ECEEF4;
    border-radius: 0.5rem;
    align-self: flex-start;
    margin-bottom:3rem;
}

#locationTurn p{
    font-size: 18px;
    font-weight: 600;
    color: #314572;
}

.locationButtons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.locationButtons a {
    width: 100%;
}

.locationButtons button{
    font: var(--button-desktop);
    padding: 0.85rem 1.5rem;
    border-radius: 1.875rem;
    width: 100%;
}

.locationButtons a:nth-child(1) button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #52553E;
    background-color: #EAF3B2;
    border: none;
}

.locationButtons a:nth-child(1) button:hover{
    background-color: #D3DBA0;
}

.locationButtons a:nth-child(2) button {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    background-color: white;
}

/* SECCION APPOINTMENT */
#containerAppointment{
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    margin: 0 6.25rem 6.25rem 6.25rem;
    padding-bottom: 6rem;
    background-image: url(img/fondo-agendahoy.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 42.5rem;
    border-radius: 1rem 1rem 8rem 1rem;
}

#containerAppointment span{
    font: var(--caption2-desktop);
    color: #EAF3B2;
}

#containerAppointment h2{
    font: var(--hero-desktop);
    color: white;
    margin: 0 1rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.1;
}

#containerAppointment p{
    font: var(--caption2-desktop);
    color: white;
    text-align: center;
}

.break-850 {
    display: none;
}

#divButtonsAppointment{
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

#divButtonsAppointment button:hover {
    background-color: #D3DBA0;
}

.buttonAppointment{
    font: var(--button-desktop);
    color: #52553E;
    background-color: #EAF3B2;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 1.875rem;
}

.appointmentTextMobile {
    display: none;
}

/* SECCION FOOTER */
footer{
    margin: 0 6.25rem;
    margin-bottom: 2.5rem;
}

#contentServiceFooter{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

#contentServiceFooter ul{
    display: flex;
    gap: 1.75rem;
}

#contentServiceFooter li{
    font: var(--tabs-desktop);
    color: var(--color-primary);
}

.hoverLiFooter > a{
    color: var(--color-primary);
    text-decoration: none;
}

.hoverLiFooter:hover > a {
    font-weight: bold;
}

#iconsSocialFooter img:nth-child(1){
    margin-right: 1rem;
}

#contentCopyright{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.375rem;
    border-top: 1px solid #E2E6EE;
}

#contentCopyright p{
    font: var(--body1-desktop);
    color: #C3CBDC;
}

/* SECCION POPUP */
#popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

#popupOverlay.active {
    display: flex;
}

#popup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    width: 46rem;
    height: 14rem;
}

#popupContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#popup h3{
    font: var(--headline2-desktop);
    color: #2E416B;
}

#popupClose {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: #48546C;
}

#popupButtons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

#popupButtons > a {
    text-decoration: none;
}

#popupButtons button {
    font: var(--button-desktop);
    color: white;
    padding: 0.85rem 1.5rem;
    background-color: var(--color-primary);
    border-radius: 1.875rem;
    border: none;
}

#popupButtons a {
    color: white;
    text-decoration: none;
}

#popupButtons button:hover {
    background-color: #314572;
}

/* BOTÓN FLOTANTE WSP */
#wspFloatingBtn {
    position: fixed;
    bottom: 15%;
    right:5%;
    border-radius: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 998;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, filter 0.2s ease;
}

#wspFloatingBtn img {
    width: 68%;
    object-fit: contain;
}

#wspFloatingBtn:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}


/* SECCION MEDIA-QUERYS */

/*TABLET*/
@media (max-width: 1024px) {
    /* SECCION HEADER */
    #desktopNav {
        flex-direction: row;
    }

    #titleNav {
        order: -1;
    }

    #navLinks {
        order: 0;
        gap: 1.7rem;
    }

    #navButtons {
        padding: 0rem;
    }

    #navButtons button:nth-child(1) {
        display: none;
    }

    /* SECCION ANALYTICS */
    #desktopAnalytics h3{
        font: var(--headline1-mobile);
    }

    #desktopAnalytics p{
        font: var(--caption2-mobile);
    }

    /* SECCION ABOUT-US */
    #containerAboutUs {
        flex-direction: column;
        gap: 2rem;
    }
    
    #paragraphAboutUs{
        margin: 2rem 0;
    }

    .cardsAboutUs {
        gap: 4rem;
    }

    /* SECCION CATEGORIES */
    #contentCardsSpecialties{
    grid-template-columns: repeat(2, 1fr);
    }

    /* SECCION REAL-CASES */
    #containerRealCases{
        margin-right: 0;
    }

    #contentTexts{
        margin-right: 6.25rem;
    }

    #buttonsCases {
        margin-top: 3rem;
    }

    #contentCaseCards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.125rem;
        scrollbar-width: none; /* oculta el scrollbar en Firefox */
        -ms-overflow-style: none; /* oculta el scrollbar en IE */
    }

    #contentCaseCards::-webkit-scrollbar {
        display: none; /* oculta el scrollbar en Chrome/Safari */
    }

    #contentCaseCards div {
        min-width: 30%;
        scroll-snap-align: start;
    }

    #flechaCarrusel {
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: none;
        box-shadow: none;
        width: 3rem;
        cursor: pointer;
    }

    #flechaCarrusel img {
        display: block;
    }

    /* SECCION LOCATIONS */
    #contentLocationsCards {
        grid-template-columns: repeat(1, 1fr);
        max-width: 1024px;
    }

    .locationCard {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "img img"
            "title title"
            "address address"
            "icons buttons";
        align-items: center;
    }

    .locationCard > img {
        grid-area: img;
    }

    .locationCard h3 {
        grid-area: title;
        margin-top: 1rem;
    }

    .locationAddress {
        grid-area: address;
        /* margin-bottom: 0; */
    }

    .locationIconsGroup {
        grid-area: icons;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-self: center;
    }

    .locationIcons:first-of-type {
        margin-bottom: 0rem;
    }
    
    #locationTurn{
        margin-bottom:0rem;
    }

    .locationButtons {
        grid-area: buttons;
        flex-direction: column;
        align-items: end;
        margin-top: 0;
    }

    .locationButtons a {
        width: auto;
    }

    .locationButtons button {
        width: auto;
        padding: 0.85rem 5rem;
    }

    /* SECCION POP-UP */
    #popup {
        width: 32rem;
        height: 12rem;
    }

    #popup h3{
        font: var(--headline2-mobile);
    }

    #popupButtons button{
        font: var(--button-mobile);
        padding: 0.7rem 1.5rem;
    }

    /* SECCION BUTTON-WSP-FLOATING */
    #wspFloatingBtn img {
        width: 65%;
    }
}

/* INTERMEDIA TABLET-MOBILE */
@media (max-width: 850px) {
    /*SECCION HERO*/
    #desktopCard{
        width: 24rem;
    }

    #desktopCard h2{
        font-size: 40px;
    }

    #buttonReserve img{
        object-fit: contain;
    }
    

    /* SECCION APPOINTMENT */
    #containerAppointment h2{
        font-size: 40px;
        line-height: 1.1;
    }

    #containerAppointment p{
        padding: 0 2rem;
    }

    .break-850 {
        display: inline;
    }

    #divButtonsAppointment{
        flex-direction: column;
        gap: 1rem;
    }

    /* SECCION FOOTER */
    #contentServiceFooter > img{
        width: 8rem;
    }

    #contentServiceFooter ul{
        gap: 1rem;
    }
}

/* Footer desktop/tablet: logo with social icons underneath */
@media (min-width: 701px) {
    #contentServiceFooter {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo nav"
            "social nav";
        align-items: start;
        column-gap: 2rem;
        margin-bottom: 2rem;
    }

    #contentServiceFooter > img {
        grid-area: logo;
    }

    #contentServiceFooter > ul {
        grid-area: nav;
    }

    #iconsSocialFooter {
        grid-area: social;
        margin-top: 1.3rem;
    }
}

/* MOBILE */
@media (max-width: 700px) {
    /* SECCION NAVBAR */
    #desktopNav {
        display: none;
    }

    #mobileNav {
        display: block;
        position: relative;
        z-index: 120;
        border-bottom: 1px solid #E2E6EE;
        background-color: white;
    }

    body.nav-overlay-active::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 115;
        pointer-events: none;
    }

    #mobileTopBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2.9rem 1.5rem;
        background-color: white;
        transition: background-color 0.28s ease;
    }

    #mobileNav.menu-open #mobileTopBar {
        background-color: #ECEEF4;
    }

    #mobileLogo h1 {
        font-size: 24px;
        color: #314572;
        line-height: 1;
    }

    #mobileLogo h3 {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.1em;
        color: #314572;
        line-height: 1;
        margin-top: 0.2rem;
    }

    #mobileMenuToggle {
        border: none;
        background: none;
        cursor: pointer;
        padding: 0.2rem;
    }

    #mobileMenuToggle img {
        width: 2rem;
        height: 2rem;
        display: block;
    }

    #mobileMenuPanel {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #E2E6EE;
        padding: 0.5rem 0 1rem;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-0.6rem);
        transition: max-height 0.35s ease, opacity 0.24s ease, transform 0.28s ease;
    }

    #mobileNav.menu-open #mobileMenuPanel {
        max-height: 2000px;
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    #mobileMenuLinks a,
    .mobileSubmenuToggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.95rem 1.25rem;
        font: var(--tabs-mobile);
        color: var(--color-primary);
        background: none;
        border: none;
        text-align: left;
    }

    .mobileSubmenuToggle img {
        width: 0.9rem;
        transition: transform 0.2s ease;
    }

    .mobileItemWithChildren.open .mobileSubmenuToggle img {
        transform: rotate(180deg);
    }

    .mobileSubmenu {
        background-color: #F5F8FE;
        padding: 0;
        margin-left: 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.22s ease, padding 0.22s ease;
    }

    .mobileItemWithChildren.open .mobileSubmenu {
        max-height: 29rem;
        opacity: 1;
        padding: 0.25rem 0;
    }

    .mobileSubmenu li a {
        padding: 0.7rem 1.9rem;
        font: var(--body2-mobile);
        color: #3D568F;
    }

    #mobileMenuButtons {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        padding: 1.3rem 1.25rem 0;
    }

    #mobileMenuButtons button {
        width: 100%;
        border-radius: 1.875rem;
        padding: 0.85rem 1.3rem;
        font: var(--button-mobile);
        border: none;
    }

    #mobileMenuButtons button:nth-child(1) {
        background-color: #ffffff;
        color: var(--color-primary);
        border: 1px solid var(--color-primary);
    }

    #mobileMenuButtons button:nth-child(2) {
        background-color: var(--color-primary);
        color: #E2E6EE;
    }

    /* SECCION POP-UP */
    .break-850 {
        display: none;
    }

    #popupButtons {
        flex-direction: column;
        gap: 0.3rem;
        margin-top: 1.5rem;
        width: 100%;
    }

    #popup {
        width: 18.5rem;
        height: 11rem;
        padding: 2rem 0.7rem;
        padding-top: 3rem;
    }

    #popup h3{
        font: var(--title1-mobile);
    }

    #popupClose {
        top: 0.7rem;
        right: 1.4rem;
        font-size: 1.4rem;
    }

    /* SECCION HERO */
    #desktopCard{
        width: 19.5rem;
        left: 5%;
        padding: 1.5rem 1rem;
        border-radius: 16px 16px 32px 16px;
    }

    #desktopCard h2{
        font-size: 32px;
    }

    .heroIntroDesktop {
        display: none;
    }

    .heroIntroMobile {
        display: inline;
    }

    #heroText{
        font: var(--body1-mobile);
        padding: 1rem 0;
    }

    #desktopCardButtons{
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #buttonReserve{
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        font: var(--button-mobile);
        font-weight: 400;
    }

    #buttonContact{
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.78rem 1.5rem;
        font: var(--button-mobile);
        font-weight: 600;
    }

    #desktopCardButtons a {
        text-decoration: none;
        display: flex;
        width: 100%;
    }

    /* SECCION ANALYTICS */
    #desktopAnalytics{
        flex-direction: column;
        align-items: center;
        margin: 1.5rem 0;
    }

    .analyticsCards {
        width: 14rem;
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
        position: relative;
    }

    #desktopAnalytics div:nth-child(1),
    #desktopAnalytics div:nth-child(2),
    #desktopAnalytics div:nth-child(3){
        border-right: none;
    }

    #desktopAnalytics div:nth-child(1)::after,
    #desktopAnalytics div:nth-child(2)::after,
    #desktopAnalytics div:nth-child(3)::after {
        content: '';
        position: absolute;
        bottom: -0.75rem;
        left: 50%;
        transform: translateX(-50%);
        width: 6.25rem;
        height: 1px;
        background-color: #E2E6EE;
    }

    /* SECCION BANNER */
    #desktopBanner p{
        font: var(--body1-mobile);
        padding: 0 5rem;
    }

    #desktopBanner p > span{
        font: var(--body1bold-mobile);
    }

    /* SECCION ABOUT-US */
    #AboutUs {
        padding: 3rem 0;
        gap: 1.5rem;
    }

    #containerAboutUs{
        width: calc(100% - 3rem);
        margin: 0 1.5rem;
        box-sizing: border-box;
    }

    #contentHistory span{
        font: var(--caption2-mobile);
        font-weight: 800;
    }

    #contentHistory h3{
        font: var(--title1-mobile);
        font-weight: 800;
    }

    #paragraphAboutUs{
        font: var(--body1-mobile);
    }

    #paragraphComeHere{
        font-size: 18px;
        font-weight: bold;
    }

    #whoWeAreDiv{
        min-height: 6.5rem;
    }

    .cardsAboutUs{
        gap: 1rem;
    }

    .cardsAboutUs > img{
        width: 2.87rem;
    }

    .cardsAboutUs p:nth-child(1){
        font: var(--subtitle-mobile);
        padding: 0.1rem;
    }

    .cardsAboutUs p:nth-child(2){
        font: var(--body1-mobile);
    }

    #buttonAboutUs{
        width: 90%;
    }

    /* SECCION CATEGORIES */
    #containerCategories{
        padding: 3rem 0rem 3rem 1.5rem;
        
    }

    #contentCategories{
        padding-right: 1.5rem;
        border: none;
    }

    #contentCategories h3{
        font: var(--headline2-mobile);
        font-weight: 800;
        margin-bottom: 1rem;
    }

    #contentCategories p{
        font: var(--body1-mobile);
        margin-bottom: 1.5rem;
    }

    #buttonsCategories {
        display: block;
        width: 100%;
    }

    #buttonsCategories button{
        display: none;
    }

    #mobileCategoriesDropdown {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #contentCardsSpecialties {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.2rem 0.1rem 0.8rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #contentCardsSpecialties::-webkit-scrollbar {
        display: none;
    }

    #contentCardsSpecialties .cardCategories {
        min-width: 65%;
        flex: 0 0 65%;
        scroll-snap-align: start;
    }

    .cardCategories img {
        height: auto;
        object-fit: contain;
    }

    .cardCategories h3{
        font: var(--title2-mobile);
        font-weight: 800;
    }

    .cardCategories p{
        font: var(--body2-mobile);
    }

    .cardCategories button{
        font: var(--button-mobile);
    }

    /* SECCION REAL-CASES */
    #containerRealCases{
        margin: 5rem 0;
        margin-left: 1.5rem;
    }

    #textCases span{
        font: var(--caption2-mobile);
        font-weight: 800;
    }

    #textCases h3{
        font: var(--title1-mobile);
        font-weight: 800;
    }

    #textCases p{
        font: var(--body1-mobile);
    }

    #contentCaseCards div{
        min-width: 65%;
        padding: 1rem;
        border-radius: 1.5rem;
    }

    #contentCaseCards img{
        margin-bottom: 0.5rem;
    }

    #contentCaseCards div p{
        font: var(--subtitle-mobile);
        font-weight: 800;
    }

    #contentCaseCards div span{
        font: var(--body1-mobile);
    }

    #buttonsCases{
        flex-direction: column;
        margin-top: 1rem;
        width: 100%;
    }

    #buttonsCases > a {
        display: block;
        width: 100%;
        margin-right: 1.5rem;
    }

    #buttonsCases > a:last-child button {
        margin-bottom: 0;
    }


    #buttonsCases > a {
        display: block;
        width: 100%;
    }

    #buttonsCases button {
        width: 100%;
        margin: 0.3rem 0;
        padding: 0.85rem 1.5rem;
    }

    #buttonsCases > a:nth-child(2) button{
        margin-left: 0;
    }

    /* SECCION LOCATIONS */
    #containerLocations{
        margin: 0 1.5rem;
    }

    #contentLocationText{
        margin-bottom: 1.5rem;
    }

    #contentLocationText h2{
        font: var(--headline1-mobile);
        font-weight: 800;
    }

    #contentLocationText p{
        font: var(--body1-mobile);
    }

    .locationCard {
        grid-template-areas:
        "img img"
        "title title"
        "address address"
        "icons icons"
        "buttons buttons";
    }

    .locationCard h3{
        margin: 1rem 0;
        margin-top: 1.5rem;
        font: var(--title1-mobile);
        font-weight: 800;
    }

    .locationAddress{
        font: var(--body1bold-mobile);
        font-weight: 800;
    }

    .locationIconsGroup{
        margin-bottom: 1.5rem;
    }

    .locationButtons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .locationButtons a {
        width: 100%;
    }

    .locationButtons button {
        width: 100%;
        font: var(--button-mobile);
    }

    .locationTexts{
        font: var(--body1bold-mobile);
        font-weight: 800;
    }

    .locationTexts span{
        font: var(--body1-mobile);
        font-weight: 400;
    }

    .locationIcons > img{
        width: 1.5rem;
    }

    #locationTurn {
        padding: 0.4rem 2rem;
    }

    #locationTurn p{
        font-size: 15px;
        font-weight: 600;
    }

    /* SECCION APPOINTMENT */
    #containerAppointment{
        margin: 5rem 1.5rem 8rem 1.5rem;
        padding-bottom: 4rem;
        background-image: url(img/fondo-appointment-mobile.jpg);
    }

    #containerAppointment span{
        font: var(--caption2-mobile);
    }

    #containerAppointment h2{
        font: var(--hero-mobile);
        margin: 0 1rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .buttonAppointment{
        font: var(--button-mobile);
        width: 100%;
    }

    #divButtonsAppointment a {
        width: 90%;
    }

    #divButtonsAppointment{
        gap: 0.5rem;
        margin-bottom: 1rem;
        width: 100%;
        align-items: center;
    }

    #containerAppointment p{
        font: var(--caption2-mobile);
        font-weight: 700;
    }

    .appointmentTextDesktop {
        display: none;
    }

    .appointmentTextMobile {
        display: block;
    }

    /* SECCION FOOTER */
    footer{
        margin: 0 1.5rem;
        margin-bottom: 1.5rem;
    }

    #contentServiceFooter {
        flex-direction: column;
        align-items: start;
        margin-bottom: 2rem;
        gap: 1.5rem;
    }

    #contentServiceFooter ul {
        gap: 1.5rem;
    }

    #iconsSocialFooter > a:nth-child(1) {
        margin-right: 0.3rem;
    }

    #contentCopyright{
        padding-top: 0.5rem;
    }

    #contentServiceFooter > img{
        width: 9rem;
    }

    #contentCopyright{
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }

    #contentCopyright p{
        font: var(--body1-mobile);
        font-size: 14px;
    }

    #contentCopyright > img{
        width: 7rem;
    }

    /* SECCION BUTTON-WSP-FLOATING */
    #wspFloatingBtn{
        bottom: 8%;
        right: 2%;
    }
}

/* QUERY MINIMA */
@media (max-width: 389px) {
    /* SECCION HERO */
    #desktopHero {
        height: auto;
        min-height: 100vw;
    }

    #desktopCard {
        width: 88vw;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 4vw 4.5vw;
        border-radius: 4vw 4vw 8vw 4vw;
    }

    #desktopCard h2 {
        font-size: 8.2vw;
        padding-top: 1.5vw;
    }

    #desktopCard span {
        font-size: 3.6vw;
    }

    #heroText {
        font-size: 3.6vw;
        padding: 2.5vw 0;
    }

    #buttonReserve p,
    #buttonContact {
        font-size: 3.5vw;
    }

    #buttonReserve,
    #buttonContact {
        padding: 2.5vw 4vw;
        border-radius: 8vw;
    }

    /* SECCION CATEGORIES */
    #buttonsCategories button{
        padding: 0.3rem 0.4rem;
        margin: 0;
    }

    /* SECCION FOOTER */
    #contentServiceFooter ul{
        flex-direction: column;
        gap: 0.8rem;
    }

    /* SECCION BUTTON-WSP-FLOATING */
    #wspFloatingBtn{
        right: 0%;
        bottom: 13%;
    }

    #wspFloatingBtn img {
        width: 60%;
    }
}

