

:root {
    --main-font: 'Poppins', sans-serif;
    --azul: #4BAFE8;
    --verde: #2CC636;
    --gris: #333333;
    --second-modal-color: rgba(34,34,34,0.85);
}

html {
    box-sizing: border-box;
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 300;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

* {
    margin: 0 auto;
    padding: 0px;
	margin: 0px;
    text-decoration: none;
	list-style: none;
}

a, a:hover {
    text-decoration: none;
}

input, textarea, select, button  { margin:0; padding:0; outline:0; border:0;                                
                                    box-sizing: border-box;}


body {
    font-family: var(--main-font);
    background-color: #ffffff;
    margin: 0 auto;
    font-weight: 300;
    color: var(--gris);
    overflow-x: hidden;
}

.viewport {
    width: 86%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hidden-xs {
        display: none;
    }
}
.show { display:block; }
.hidden {
    visibility: hidden;
    opacity: 0;
}

.hide {
    display: none!important;
    visibility: hidden;
    opacity: 0;
}


/*** COLUMNAS ***/

.col-2, .col-3, .col-4 {
    
}

.col-2, .col-3, .col-4 {
    width: 100%;
}

@media(min-width: 786px) {
    .col-2 {
        width: 45%;
    }
    .col-3 {
        width: 45%;
    }
    .col-4 {
        width: 45%;
    }
}

@media(min-width: 991px) {
    .col-3 {
        width: 30%;
    }
    .col-4 {
        width: 25%;
    }
}

/*** FIN COLUMNAS ***/


/*** PRE HEADER ***/

.pre-header {
    height: 40px;
    background-color: var(--gris);
    display: flex;
}

.pre-header .viewport {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

@media (max-width: 600px) {
    .pre-header .viewport {
        gap: 10px;
    }
    .pre-header a {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .pre-header  {
        display: none;
    }
}

.pre-header a {
    color: #ffffff;
}

.pre-header a i {
    color: var(--azul);
}


/*** HEADER ***/

header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--azul);
}

header .brand {
    width: 30%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #ffffff;
    padding-left: 7%;
}

@media (max-width: 786px) {
    header .brand {
        width: 80%;
    }
    header .nav {
        width: 20%!important;
    }
}

header .brand h1 {
    font-size: 19px;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--gris);
}

header .nav {
    width: 70%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 7%;
}

header .nav .menu {
    display: flex;
    gap: 20px;
} 

header .nav .menu li a {
    color: #ffffff;
} 



/*** MENU ***/

.panel-btn { display:none;}

.panel-btn.is-active #Barritas { display:none;}
.panel-btn.is-active #Equis { display:block;}

.panel.is-active {
    transform: translate(0,0);
    visibility: visible;
    opacity: 1;
}



@media (max-width: 786px) {

    .panel-btn { display:block;} 
    .panel-btn #Equis { display:none;}

    .panel {
        position: absolute;
        z-index: 998;
        top: 120px;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        transform: translate(-100%,0);
        opacity: 0;
        visibility: hidden;
        border-bottom: solid 1px var(--celeste);
        transition: all 0.5s ease;
    }

    .panel-btn {
        display: block;
        z-index: 999;
        font-size: 2rem;
        font-weight: bold;
        background-color: transparent;
        cursor: pointer;
        outline: 0;
        border: 0;
        transition: all 0.5s ease-out;
        position: relative;
    }
    
    .menu {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        text-align: center;
    }
    
    .menu li {
        width: 100%;
        flex-direction: column;
    }
    
    .menu li a button {
        font-size: 1rem;
        text-decoration: none;
        color: var(--main-color);
        transition: all 0.3s ease;
    }
    
    .menu li a button:hover {
        color: #ffffff;
    }
    
    .menu a {
        padding:1.5rem 1rem;
        width: 100%!important;
        display: block;
        font-size: 1.3rem;
        text-decoration: none;
        color: var(--main-color);
        transition: all 0.5s ease;
    }
    
    .menu a:hover {
        width: 100%!important;
        color: var(--celeste)
    }
}

@media (max-width: 400px) {
    .panel  {
        top: 80px;
    }
}



/*** FIN MENU ***/

/*** FIN HEADER



/*** HERO-IMAGE ***/

.hero-image {
    background-image: url('/images/prueba3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .hero-image {
        background-image: url('/images/main-mobile.jpg');
        height: 600px;
    }
    
}

.header-caption {
    color: #fff;
}

@media (max-width: 600px) {
    .header-caption {
        margin-top: 200px;
    }
}

.header-caption h1 {
    font-size: 36px;
    line-height: 1.2;
}

.header-caption p {
    font-size: 24px;
}

.header-caption p:nth-child(3) {
    margin: 1rem 0 3rem 0;
}

.header-caption a {
    color: #ffffff;
    background-color: var(--verde);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .header-caption a {
        font-size: 18px;
        margin-top: 20px;
        display: block;
        width: 40%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-caption a {
        width: 50%;
    }
}

.btn-primary {
    color: #ffffff;
    background-color: var(--verde);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
}



/*** ESPECIALIDADES NAV ***/

@media (min-width: 786px) {
    .especialidad-nav .viewport {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.especialidad-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    position: relative;
    height: 220px;
    color: var(--gris);
    line-height: 1.2;
}

@media (max-width: 786px) {
    .especialidad-nav-item {
        height: 180px;
        padding: 1rem 1rem;
    }
}

.especialidad-nav-item:hover:after {
    width: 100%!important;
}

a.especialidad-nav-item.col-3:after {
    content: '';
    display: block;
    width: 0%;
    height: 8px;
    background-color: var(--azul);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.5s ease-in-out;
}

.especialidad-nav-item h1 {
    text-transform: uppercase;
    font-size: 21px;
    font-weight: 300;
    text-align: center;
    margin-top: 0.5rem;
}

.especialidad-nav-item img {
    width: 80px;
}

/*** ACERCA HOME ***/

.acerca-home {
    padding: 4rem 0;
}

.acerca-home .viewport {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

@media (min-width: 785px) and (max-width: 911px) {
    .acerca-home .viewport {
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
    }
}

@media (max-width: 991px) {
    .acerca-home .viewport .btn-primary {
        bottom: -20px;
    }
}

@media (max-width: 784px) {
    .acerca-home .viewport {
        flex-direction: column;
    }
}

.acerca-home .viewport img {
    max-width: 90%;
    border-radius: 50%;
}

@media (max-width: 786px) {
    .acerca-home .viewport .col-3:first-child {
        text-align: center;
    }
    .acerca-home .viewport img {
        width: 60%;
    }
    .acerca-home .btn-primary {
        position: relative!important;
        bottom: 0!important;
    }
}

.acerca-home .btn-primary {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px 50px;
}

/*** ESPECIALIDADES ***/

.hero-image-especialidad {
    background-image: url('/images/especialidades.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .hero-image-especialidad {
        background-image: url('/images/especialidades-mobile.png');
        height: 600px;
    }
}

.grey {
    background-color: #f1f1f1;
}

.especialidad {
    padding: 3rem 0;
    
}

.especialidad .viewport {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.especialidad-title, .especialidad-content {
    width: 100%;
}

@media (min-width: 911px) {
    .especialidad-title {
        width: 30%;
    }
    .especialidad-content  {
        width: 70%;
    } 
}

.especialidad-title h1 {
    font-weight: 700;
    padding-bottom: 1rem;
}

.especialidad-title h1:after {
    content: '';
    background-color: var(--verde);
    display: block;
    height: 7px;
    margin-top: 1rem;
    width: 30%;
}

.especialidad-content ul li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 1rem;
}

.especialidad-content ul li i {
    color: var(--verde);
}

.especialidad-content ul li p {
    font-weight: 700;
}


/*** LOGOS ***/

.sanatorios {
    padding: 3rem 0;
}

.sanatorios h4 {
    color: var(--azul);
    text-align: center;
    margin-bottom: 1rem;
}

.sanatorios .viewport {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .sanatorios .viewport {
        justify-content: center;
    }
}

.sanatorios .viewport .col-3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 786px) {
    .sanatorios .viewport .col-3 {
        margin: 15px;
    }
}

.sanatorios img {
    max-width: 300px;
}



/*** FOOTER ***/

footer {
    padding: 50px 0;
    background-color: var(--gris);
    color: #ffffff;
    text-align: center;
    line-height: 2;
    font-weight: 500;
}

.mapa-btn { font-family: var(--main-font); font-size: 16px; text-align: center; color: #ffffff;font-weight: 600; background-color: var(--azul); padding: 10px 20px; border-radius: 5px; display: block; margin: 20px auto; cursor:pointer;}
.mapa-btn:hover {transition: all 0.4s ease-in-out; background-color: var(--azul);}

footer h4 {
    color: var(--azul);
}

footer p, footer a {
    font-weight: 300;
}

footer a {
    display: block;
    color: #ffffff;
}

footer i {
    color: var(--azul);
}


/*** MODAL ***/

.modal { display: flex; align-items:center;background-color: rgba(0,0,0,0.9); width:100%; height:100%; position:fixed; top:0; left:0; right:0; bottom:0;z-index:9999; opacity: 1; transition: all 0.5s ease;}
.cerrar {border: none; display: block; position: absolute; top: 5%; right: 5%; border:2px solid #f3f3f3;  border-radius: 50%;font-size: 24px; width: 50px; height: 50px;  text-align:center; cursor: pointer; }
.cerrar span {display: block;  font-size: 24px;  color:var(--text-color); text-align:center; }
.modal-iframe { display:block; width: 70%; display: flex; justify-content: center; align-items: center; margin: 0 auto; border: solid 2px #ffffff;}
.modal-iframe iframe { width: 100%;}

.hidde { display: none; opacity: 0;}
.show { display: block; }



/***Scroll Top Btn ****/

.scroll-top-btn {
    position: fixed;
    z-index: 999;
    bottom: 1vh;
    right: calc(3.25rem + 1vw);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--azul);
    color: #ffffff;
    cursor: pointer;
    outline: 0;
    border: 0;
    transition: all 0.3s ease-out;
}

.scroll-top-btn:hover {
    background-color: var(--azul);
}

/*** FLOTANTE ***/

.wp-flotante {
    position: fixed;
    z-index: 999;
    bottom: 1vh;
    right: 1vw;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 2rem;
    background-color: var(--verde);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*** ACERCA ***/

body.acerca .hero-image {
    background-image: url('/images/acerca.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    body.acerca .hero-image {
        background-image: url('/images/acerca-mobile.png');
        height: 600px;
    }
}

.acerca-content {
    padding: 3rem 0;
}

.acerca-content .viewport, .light-blue .viewport {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.light-blue {
    background-color: var(--azul);
    padding: 2.5rem 0;
}

.light-blue li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    font-weight: 400;
}

.light-blue li i {
    color: #ffffff;
}


/*** PUBLICACIONES ***/

.public {
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin: auto;
}

.publicaciones {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.publicaciones-title h1 {
    font-weight: 700;
    padding-bottom: 1rem;
}

.publicaciones-title h1:after {
    content: '';
    background-color: var(--verde);
    display: block;
    height: 7px;
    margin-top: 1rem;
    width: 30%;
}

.publicaciones-title, .wrapper-publicaciones {
    width: 100%;
}

a.ver-cv {
    display: block;
    margin-top: 30px;
    font-weight: 700;
    color: var(--verde);
}

@media (min-width: 911px) {
    .publicaciones-title {
        width: 30%;
        padding-left: 7%;
        padding-top: 5rem;
    }
    .wrapper-publicaciones  {
        width: 70%;
        padding-right: 7%;
        padding-bottom: 3rem;
    } 
    .publicaciones-content {
        padding: 5rem 0 2rem 5rem;
    }
    .more-content {
        padding: 0rem 0 2rem 5rem;
    }
}

.publicaciones-content li {
    padding: 0.5rem 0;
    list-style: initial;
}

@media (max-width: 911px) {
    .wrapper-publicaciones {
        background-color: #ffffff!important;
    }
    .publicaciones-title, .wrapper-publicaciones {
        width: 86%;
        margin: auto;
    }
    .publicaciones-title {
        margin-top: 50px;
    }
    .public {
        margin: 20px 0;
    }
}