* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'open sans';
}

/*-----------REDES SOCIALES-----------*/
.container-bar{
	width: 100%;
	max-width: 50px;
	position: fixed;
	left: 0;
	top: 25%;
}
.container-bar a{
	display: block;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	text-decoration: none;
	font-size: 18px;
	position: relative;
	transition: all 500ms ease;
	color: #fff;
}
.container-bar a:hover{
	background: #1c1c1c;
}
.container-bar .fa-facebook{
	background: #3b5998;
	border-radius: 0px 5px 0px 0px;
}
.container-bar .fa-whatsapp{
	background:#0df053;
    
}
.container-bar .fa-instagram{
	background:#ED4963;
}

.container-bar #title{
	position: absolute;
	background: #1c1c1c;
	padding: 0px 8px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 3px;
	font-size: 10px;
	top:12px; left: 0px;
	transition: all 500ms ease;
	opacity: 0;
	visibility: hidden;
	z-index: -1;
}
.container-bar a:hover #title{
	opacity: 1;
	visibility: visible;
	left: 64px;
}
.container-bar #title:after{
	position: absolute;
	content: '';
	border-left: 7px solid transparent;
	border-right: 6px solid #1c1c1c;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	right: 100%;
	top: 8px;
}
#btn-social{
	display: none;
}
.fa-play{
	cursor: pointer;
	transition: all 0.4s;
	font-size: 12px;
	margin-bottom: 5px;
	display: inline-block;
	transform: rotate(180deg);
	color: #49b0e6;
}
#btn-social:checked ~ .fa-play{
	transform: rotate(0deg);
}
.icon-social{
	transition: all 0.4s;
	transform: translateX(0%);
	box-shadow: 0px 1px 10px rgba(0,0,0,0.3);
}
#btn-social:checked ~ .icon-social{
	transform: translateX(-100%);
	box-shadow: 0px 1px 10px rgba(0,0,0,0.0);
}


/*-------------------------*/

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #5F9BCE;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}


/* Header  hoja parte de CONTACTOS*/
.header3 {
    width: 100%;
    height: 600px;
    background: #bc4e9c;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(207, 95%, 50%, 0.459), hsla(207, 45%, 52%, 0.664)), url(../img/portada3Contactos.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(212, 95%, 50%, 0.459), hsla(199, 45%, 52%, 0.664)), url(/img/portada3Contactos.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}
/* Header  hoja parte de INFROMACION AL PACIENTE*/
.header2 {
    width: 100%;
    height: 600px;
    background: #bc4e9c;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(207, 95%, 50%, 0.459), hsla(207, 45%, 52%, 0.664)), url(../img/especialistas.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(212, 95%, 50%, 0.459), hsla(199, 45%, 52%, 0.664)), url(../img/especialistas.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

/* Header pantalla principal*/

header {
    width: 100%;
    height: 600px;
    background: #bc4e9c;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(207, 95%, 50%, 0.459), hsla(207, 45%, 52%, 0.664)), url(../img/principalF1.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(212, 95%, 50%, 0.459), hsla(199, 45%, 52%, 0.664)), url(../img/principalF1.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}




nav {
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a{
    color:#fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline;
}

header .textos-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 50px;
    color:#fff;
}

.boton{
    font-size: 20px;
    padding: 17px 35px;
    background: #0064F2;
    color: white;
    border-radius: 30px;
    border: 0px;
    cursor: pointer;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color:#fff;
}

.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Texto Entrada */

main .sobre-nosotros{
    padding: 30px 0 60px 0;

}
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us{
    width: 48%;
}

.sobre-nosotros .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    margin-bottom: 15px;
    color: #002bed;

}


.contenido-textos h1{
    margin-bottom: 15px;
    color: #002bed;
    font-size: 35px;;

}


.contenido-textos h3 span{
    background: #4d0686;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}


.imagen-about-us2{
    width: 20%;
}
/* -----Galeria------- */

/*.portafolio{
    background: #f2f2f2;
}*/

.galeria-port{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.imagen-port{
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    /*background: hsla(273,91%,27%, 0.7);*/
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galeria img{
    width: 50px;
}

.hover-galeria p{
    color: #fff;
}

.imagen-port:hover .hover-galeria{
    transform: scale(1);
}

/*------ Nosotros ---------*/


.cards{
    display: flex;
    justify-content: space-evenly;

}
.card:hover{

    transform: scale(1.03);
}

.cards .card{
    background: #f2f2f2;
    display: flex;
    width: 46%;
    height: 200px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    /*box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);*/
    box-shadow: 0 0 6px 0 white; 

}

.cards .card img{
    width: 50px;
    height: 50px;
    object-fit: cover;
    /*border: 3px solid #fff;*/
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: black;
}

.cards .card > .contenido-texto-card p{
    font-weight: 300;
    padding-top: 5px;
}

/*----------  Servicios ------------*/

.about-services{
  /* fallback for old browsers */
  /* background: -webkit-linear-gradient(to right, hsla(167, 47%, 49%, 0.459), hsla(199, 73%, 58%, 0.664)), url(../img/fondoblanco.jpg); */
  /* Chrome 10-25, Safari 5.1-6 */
  /* background: linear-gradient(to right, hsla(199, 48%, 67%, 0.459), hsla(198, 49%, 49%, 0.664)), url(../img/fondoblanco.jpg); */
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
/*background:#C4DCF8;*/
 padding-bottom: 30px;


    /*background-image: url(../img/piesp3.jpg);*/
    width: 80%;
    height: auto;
    align-items: center;

    overflow: hidden; 
    margin: auto;
}


.servicio-cont{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-ind{
    width: 50%;
    text-align: center;
}

.servicio-ind img{
    width: 90%;
}


.ttlo2 {
    color:#5F9BCE;
    font-size: 25px;
    text-align: center;
    margin-bottom: 60px;
}

.txtservicios h2{
    margin: 10px 0;
    color:#3d3d3d;
}


.txtservicios li{
    font-weight: 500;
    text-align: justify;
    color: #413B3B;


}
 
/*.boton2 {
    font-size: 15px;
    padding: 10px 30px;
    background: #5F9BCE;
    color: white;
    border-radius: 7px;
    border: 0px;
}*/

/* PARTE TRATAMIENTOS*/
.about-services2{
    background:#f2f2f2;
    padding-bottom: 30px;
   

}

.servicio-ind2{
    width: 30%;
    text-align: center;

    width: 30%;
    height: 600px;
    border-radius: 5px;
    justify-content: space-evenly;
    /*box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.6);*/
    box-shadow: 0 0 3px 0 #5F9BCE;



}

.servicio-ind2, .img2{
    width: 60%;

}
.servicio-ind2, .img2{
    width: 50%;
    margin: 20px 0;


}
.servicio-ind2 h3{
    margin: 10px 0;
    color: #002bed;

}
.h3color{
   color: #58F270; 
}
.servicio-ind2 p{
    font-weight: 300;
    margin: 10px 30px;
    margin-right: 20px;
    text-align: justify;
    
}

.servicio-ind3 p{
    font-weight: 300;
    margin: 10px 0;
    margin-right: 10px;

    
}

/*--------TESTIMONIOS-----------*/
.testimonios{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}
.testimonios_header{
    margin: 50px 0px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.testimonios_header h1{
    font-size: 1.9rem;
    font-weight: 500;
    background-color: #5F9BCE;
    color: white;
    padding: 10px 10px;
}
/*.testimonios_header span{
    font-size: 2.2rem;
    color: #5F9BCE;
    margin-bottom: 25px;
    text-transform: uppercase;
}*/

.testimonios_contenedor{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.testimonios_caja{
    width: 500px;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 20px;
    margin: 15px;
    cursor: pointer;
}
.perfil-img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
}
.perfil-img img{
    width: 100%;
    height: 100%;
    object-fit: center;
}
.perfil{
    display: flex;
    align-items: center;
}
.name-user{
    display: flex;
    flex-direction: column;
}
.name-user strong{
    color: #3d3d3d;
    font-size: 1.3rem;
}
.name-user span{
    color: #979797;
    font-size: 1.1rem;
}
.reseñas{
    color: #f9d71c;

}
.caja-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.comentarios_clientes p{
 color: #4b4b4b;
}



.escribir, .link_escribir{
    margin: 30px 0px;
    padding: 5px 5px;
    display: flex;
    justify-content: center;
    text-align: center;
    color: #002bed;
    font-size: 20px;
}

.escribir, .link_leer{
    margin: 30px 0px;
    padding: 5px 5px;
    display: flex;
    justify-content: center;
    text-align: center;
    color: #002bed;
}


/*----CONTACTOS-------------*/

/*---- about ----*/

.about {
    text-align: center;
}

.subtitle {
    color: #5F9BCE;
    font-size: 2rem;
    margin-bottom: 25px;
}


.about__paragraph {
    line-height: 1.7;
}

.about__main {
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}


.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about__icon {
    width: 40px;
}


/*---------------*/


/*---BOTON ARRIBA---*/
#botonArriba{
    position: fixed;
    bottom: 20px ;
    right: -100px;
    width: 40px;
    transition: all 1s;
}


/*------------ footer------------ */

footer{
    background: #5F9BCE;
    padding: 60px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer{
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.content-foo h4 a{
    color: #fff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: white;
}

/*----- RESPONSIVE------*/
@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

    
    /* servicios */

    .servicio-cont{
        justify-content: center;
        flex-direction: column;
    }

    .servicio-ind{
        width: 100%;
        text-align: center;
    }

    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 90%;
    }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 20px;
    }

    /* ABOUT US */

    .imagen-about-us{
        margin-bottom: 60px;
        width: 99%;
    }

    .sobre-nosotros .contenido-textos{
        width: 95%;
    }

    /* Galeria */

    .imagen-port{
        width: 95%;
    }

    /* Clients */

    .cards .card{
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    /* Footer */

    .contenedor-footer{
        flex-direction: column;
        border: none;
    }

    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4{
        border: none;
    }


    .titulo-final{
        font-size: 20px;
    }
}



/*-------*/

@media screen and (max-width:800px){
    
    /* Cards */

    .ard{
        width: 70%;
        margin-bottom: 20px;
    }


}


@media screen and (max-width:400px){
    .titulo,
    .textos-hero h1{
        font-size: 30px;
    }

    .textos-hero p{
        font-size: 20px;
        text-align: center;
    }

    .ard{
        height: 380px;
    }

    .website .contenedor-textos-main{
        margin-bottom: 30px;
    }

    .galeria-cont>img{
        width: 97%;
    }
}
