@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #3c66a4;
    --primary-color-dark: #2c4b7a;
    --primary-color-light: #C7D6ED;
    --secondary-color-light: #d9fbf2; 
    --secondary-color: #7ecdb5;
    --text-dark: #333333;
    --text-light: #3b3a3a;
    --white: #ffffff;
    --box-shadow: .3rem .3rem 0 rgba(22, 160, 133, 0.5);
    --text-shadow: .4rem .4rem 0 rgba(0, 0, 0, 0.2);
    --border: .2rem solid var(--primary-color);
    --max-width: 100%;
    --cardio-logo-color: #8D222F;
    --pediatria-logo-color: #426C9C;
    --alergo-logo-color: #6FC0CB;
    --imageno-logo-color: #BCA0C6;
    --whatsapp-color: #25D366;
}
/* GLOBALES */
html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}
body {
    font-family: "Poppins", sans-serif;
    font-size: 16px; /* 1rem = 10px */
}
img {
    width: 100%;
}
a {
    text-decoration: none;
}
section[id]{
    scroll-margin-top: 6rem;
}
/* UTILIDAD */
.line-height {
    line-height: 1.5;
}
.center {
    display: flex;
    text-align: center;
    justify-content: center;
}
/* CONTENEDOR */
.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 12rem;
}
@media (max-width: 480px){
    .section__container {
        padding: 3rem 4rem;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .section__container {
        padding: 5rem 5rem;
    }
    .section__container h2{
        text-align: center;
        justify-content: center;
    }
}
/* NAVBAR */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .5s ease;
    background-color: var(--white);
}
.logo img {
    display: flex;
    align-items: center;
    max-height: 6rem;
    width: auto;
    display: block;
}
.nav__list {
    display: flex;
}
.nav__list li {
    list-style: none;
}
.nav__list a {
    display: inline-block;
    margin: 0 2rem;
    font-size: 1.6rem;
    color: var(--primary-color-dark);
    font-weight: 500;
}
.nav__list a:hover {
    color: var(--primary-color-light);
}
.nav-right{
    display: flex;
    align-items: center;
}
.navbar__boton {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 2px solid transparent;
    background: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    border-radius: 1rem;
    margin-right: 1.2rem;
}
.navbar__boton:hover {
    border: 2px solid var(--primary-color-dark);
    background: var(--white);
    color: var(--primary-color-dark);
}
#menu-icon {
    font-size: 3rem;
    color: var(--primary-color-dark);
    cursor: pointer;
    display: none;
}
@media(max-width: 1300px){
    header {
        padding: 2rem 4%;
    }
}
@media(max-width: 1050px){
    .logo img{
        max-height: 5rem;
        width: auto;
    }
    .nav__list a {
        margin: 0;
    }
    .navbar__boton{
        padding: 1.1rem 2.3rem;
    }
}
@media(max-width: 940px){
    #menu-icon {
        display: block;
    }
    .nav__list{
        position: absolute;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        backdrop-filter: blur(3rem);
        display: flex;
        align-items: center;
        flex-direction: column;
        padding-top: 18rem;
        transition: all 0.7s ease;
    }
    .nav__list a {
        display: flex; /* Asegura que el contenido se centre */
        justify-content: center; /* Centra horizontalmente el texto */
        align-items: center; /* Centra verticalmente el texto */
        margin: 0rem 0rem 5rem 0rem;
        font-size: 1.6rem;
        padding: 1rem 1.5rem; /* Espaciado interno */
        border-radius: 1rem; /* Bordes redondeados */
        background-color: var(--primary-color-dark); /* Color de fondo (puedes cambiarlo) */
        color: var(--white);
        transition: background-color 0.3s ease, transform 0.2s ease; /* Suaviza cambios */
        width: 20rem; /* Ancho fijo para todos los botones */
        height: 4rem; /* Alto fijo */
    }
    .nav__list.open{
        right: 0;
    }
    .nav__list a:hover{
        text-decoration: none;
    }
}
/* HEADER */
header {
    background-image: linear-gradient(
        to right,
        rgba(69, 102, 152, 0.5),
        rgba(69, 102, 152, 0.6)
    ), 
    url("../img/hero.jpeg");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}
.section__header {
    margin-bottom: .5rem;
    font-size: 2.2rem;
    font-weight: 600;
}
.nav__container {
    padding: 1rem 12rem;
    background-color: white;
}
@media (max-width: 480px){
    header {
        background-image: linear-gradient(
            to right,
            rgba(69, 102, 152, 0.8),
            rgba(69, 102, 152, 0.6)
        ), 
        url("../img/hero_mobile.png");
        background-position: center center;
        background-size: contain;
        background-repeat: no-repeat;
    }
}
@media (max-width: 768px) {
    header {
        background-size: cover;
    }
    .nav-right{
        width: 100%; /* Asegura que los elementos ocupen toda la navbar */
        justify-content: space-between; /* Distribuye los elementos a los extremos */
    }
    .servicio .nav-right {
        justify-content: flex-end;
    }
    .nav__container {
        justify-content: flex-end;
        padding: 1rem 2rem;
    }
}
/* HERO */
.header__container h1 {
    margin-bottom: 1rem;
    margin-top: 10rem;
    max-width: 900px;
    font-size: 3.5rem;
    line-height: 4rem;
    color: var(--white);
}
.header__container {
    height: calc(100vh - 5rem); /* Suponiendo que el nav mide 6rem */
}
.header__container p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--white);
}
@media (max-width: 480px) {
    .header__container h1 {
        padding-right: 1rem;
        font-size: 3rem;
    }
    .header__container {
        height: calc(90vh - 5rem);
        flex-direction: column;
    }
}
@media (min-width: 481px) and (max-width: 768px){
    .header__container h1 {
        margin-top: 15rem;
        line-height: 5rem;
    }
    .header__container {
        height: calc(90vh - 5rem);
        flex-direction: column;
    }
}
/* HEADER - SERVICIO */
/*
.servicio {
    background-image: linear-gradient(
        to right,
        rgba(135, 207, 186, 0.9),
        rgba(135, 207, 186, 0.7)
    );
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}*/
.location__content {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos */
    justify-content: center;
    margin-top: 14rem;
    gap: 6rem;
}
.location__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.location__content i {
    color: var(--white);
}
.location__content p {
    margin: 0; /* Elimina el margen del párrafo */
}
@media (max-width: 480px) {
    .location__content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 5rem;
        gap: 2rem;
    }
    .location__content p {
        margin: 0; /* Elimina el margen del párrafo */
        font-size: 1.4rem;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .location__content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 10rem;
        gap: 2rem;
    }
}
.icons__container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    padding: 2rem 12rem 2rem 12rem;
    margin-top: -100px;
}
@media (max-width: 768px){
    .icons__container{
        padding: 2rem 5rem 2rem 5rem;
    }
}
@media (min-width: 481px) and (max-width: 768px){
    .icons:nth-child(4) {
        grid-column: 2; /* Forzar que la última tarjeta esté en la tercera columna */
    }
}
.icons__container .icons {
    border: var(--border);
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
}
.icons__container .icons i {
    font-size: 3rem;
    color: #91cbbb;
    padding-bottom: .5rem;
}
.icons__container .icons h3 {
    font-size: 3rem;
    color: var(--primary-color);
    padding: .5rem 0;
}
.icons__container .icons p {
    font-size: 1.4rem;
    color: var(--text-light);
}
/*SERVICIO INDIVIDUAL*/
.about__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 7rem;
    align-items: center;
}
/*
.about__content h1 {
    font-size: 1.8rem;
}
.about__content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: start;
}
.about__content p {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-light);
}
    */
.about__image img {
    max-width: 500px;
    margin: auto;
    border-radius: 10px;
}
.service__description p {
    font-size: 1.6rem;
}
.service__header__content p {
    /*max-width: 600px;*/
    font-size: 1.4rem;
    color: var(--text-light);
}
.service__grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
@media(max-width: 480px){
    .about__container {
        grid-template-columns: repeat(1, 1fr);
    }
    .about__image{
        display: grid;
        justify-content: center;
        align-content: center;
    }
    .service__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .service__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.service__card {
    padding: 2rem;
    text-align: center;
    border-radius: 1px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}
.service__card span {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem; /* Centrar el círculo en la card */
    /*padding: 1rem 1.5rem;*/
    width: 13rem; /* Ancho de la imagen */
    height: 13rem; /* Alto de la imagen */
    overflow: hidden;
    transition: transform 0.3s ease;
}
.service__card span img {
    width: 100%; /* Escala la imagen al tamaño del contenedor */
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin distorsión */
    transition: transform 0.3s ease; /* Agrega la transición al hover */
}
.service__card span:nth-child(1){
    width: 15rem;
}
.service__card ul {
    list-style-type: disc; /* Usa puntos en la lista */
    list-style-position: inside; /* Puntos alineados con el texto */
    text-align: left; /* Alinea el texto de la lista a la izquierda */
    padding: 0; /* Elimina el padding del contenedor de la lista */
    margin: 0 auto 1rem; /* Centra la lista y añade un margen inferior */
    max-width: 250px; /* Controla el ancho máximo de la lista */
}
.service__card li {
    font-size: 1.4rem; /* Tamaño del texto de la lista */
    color: var(--text-light); /* Color del texto */
    line-height: 1.4; /* Ajusta la separación entre líneas */
    margin-bottom: 0.7rem; /* Espaciado entre elementos de la lista */
}
.service__card h4 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
}
.service__card p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.4rem;
}
.service__card a {
    color: var(--primary-color-dark);
    
}
.service__card-button {
    display: inline-flex; /* Activar flexbox para alineación horizontal */
    justify-content: center;
    align-items: center; /* Centrar verticalmente el ícono y el texto */
    gap: 0.5rem; /* Espaciado entre el ícono y el texto */
    font-weight: 500;
    padding: 0.6rem 1.2rem; /* Espaciado interno */
    border-radius: 0.5rem; /* Bordes redondeados */
    border: solid 2px var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none; /* Eliminar subrayado del enlace */
    font-size: 1.4rem; /* Tamaño del texto */
    cursor: pointer; /* Cambiar el cursor a mano al pasar por encima */
    transition: all 0.3s ease; /* Transición para hover */
    width: 90%;
}
.service__card-button:hover{
    background-color: var(--white);
    color: var(--primary-color);
    border: solid 2px var(--primary-color);
}
.servicio .service__card-button {
    border: solid 2px var(--whatsapp-color);
    background-color: var(--white);
}
.servicio .service__card-button:hover{
    border-style: dashed;
    transition: all 0.4s ease;
}
.servicio .service__card-button a {
    color: var(--text-dark);
}
.servicio .service__card-button i{
    color: #25D366;
    font-size: 1.5rem;
}


/* Card 1 - Alergia e inmunología */
.service__card:nth-child(1):hover{
    box-shadow: 5px 5px 20px rgba(111, 192, 203, 0.5);
}
/* Card 2 - Cardiología */
.service__card:nth-child(2):hover {
    box-shadow: 5px 5px 20px rgba(141, 34, 47, 0.4);
}
/* Card 3 - Imagenología */
.service__card:nth-child(3):hover {
    box-shadow: 5px 5px 20px rgba(188, 160, 198, 0.5);
}
/* Card 4 - Pediatría */
.service__card:nth-child(4):hover {
    box-shadow: 5px 5px 20px rgba(66, 108, 156, 0.5);
}
/* CONOCE A NUESTROS DOCTORES*/
.doctors__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.doctors__header__content p{
    color: var(--text-dark);
    font-size: 1.4rem;
}
.doctors__grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
@media(max-width: 480px){
    .doctors__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (min-width: 481px) and (max-width: 768px){
    .doctors__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.doctors__card {
    text-align: center;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 1rem;
}
.doctors__card h4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.doctors__card p{
    margin-bottom: 1rem;
    font-size: 1.4rem;
    padding: 0rem 1rem;
}
/* CONTACTO */
.form {
    grid-area: form;
}
.info {
    grid-area: info;
}
.map {
    grid-area: map;
}
.contact {
    padding: 40px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}
.contact__container {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 5fr 4fr;
    grid-template-areas: "form info" "form map";
    gap: 2rem;
}
.contact h3 {
    color: var(--primary-color-dark);
    font-weight: 500;
    font-size: 1.6rem;
}
/* FORMULARIO DE CONTACTO */
.formBox {
    position: relative;
    width: 100%;
}
.formBox .row50 {
    display: flex;
    gap: 20px;
}
.inputBox {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    width: 50%;
}
.formBox .row100 .inputBox {
    width: 100%;
}
.inputBox span{
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.4rem;
}
.inputBox input {
    padding: 10px;
    font-size: 1.3rem;
    outline: none;
    border: none;
    border-radius: 1rem;
    background-color: var(--primary-color-light);
}
.inputBox textarea {
    padding: 10px;
    font-size: 1.3rem;
    outline: none;
    border: none;
    resize: none;
    min-height: 220px;
    margin-bottom: 10px;
    border-radius: 1rem;
    background-color: var(--primary-color-light);
}
.inputBox input[type="submit"]{
    background: var(--primary-color-dark);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    max-width: 150px;
    font-weight: 500;
    cursor: pointer;
    padding: 14px 15px;
}
.inputBox ::placeholder{
    color: var(--text-light);
}
/* INFORMACION DE CONTACTO*/
.info {
    background: var(--primary-color-dark);
}
.info h3 {
    color: var(--white);
    margin-bottom: 3rem;
}
.info .infoBox div {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.info .infoBox div span{
    min-width: 4rem;
    height: 4rem;
    color: var(--white);
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    border-radius: 50%;
    margin-right: 1.5rem;
}
.infoBox div span .fa-whatsapp{
    font-size: 1.8rem;
}
.info .infoBox div p{
    color: var(--white);
    font-size: 1.4rem;
}
.info .infoBox div a{
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
}
/* MAPA */
.map {
    padding: 0;
}
.map iframe {
    width: 100%;
    height: 100%;
}
/* RESPONSIVE SECTION - CONTACTO */
@media (max-width: 991px){
    .contact__container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "form" "info" "map";
    }
    .formBox .row50{
        display: flex;
        gap: 0;
        flex-direction: column;
    }
    .inputBox {
        width: 100%;
    }
    .contact {
        padding: 30px;
    }
    .map {
        min-height: 300px;
        padding: 0;
    }
}
/* BLOG */

@media (min-width: 1025px) {
    .blog{
        margin-top: 4rem;
    }
}
.blog h1{
    font-size: 3rem;
}
.blog .doctors__card{
    text-align: start;
}
.blog__card:hover{
    transform: translateY(-1rem);
}
.blog .doctors__card p,
.blog .doctors__card h4,
.blog .doctors__card a{
    padding: 0.5rem 2rem 0rem 2rem;
}
.blog-fecha{
    color: var(--primary-color);
}
.blog__card a{
    color: var(--pediatria-logo-color);
    font-size: 1.4rem;
    font-weight: 600;
}
/* ENTRADA BLOG */
.entrada-blog{
    width: 90%;
    max-width: 117rem;
    margin: 0 auto;
}
.entrada__hero{
    max-width: 116rem;
    height: 40rem;
    background: url(../img/blog/hero.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 5rem auto;
}
.entrada__info{
    width: 100%;
    max-width: 80rem;
    background-color: var(--white);
    margin: 0 auto;
    padding: 3rem;
    border-radius: 1.5rem;
    margin-top: -15rem;

}
.entrada__info h2{
    font-size: 2.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
}
.entrada__info h4{
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0;
}
.entrada__info .contenedor__perfil{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
}
.entrada__info .contenedor__perfil .perfil{
    display: flex;
    justify-content: center;
    align-items: center;
}
.perfil .contenedor__img-perfil{
    width: 6rem;
    height: 6rem;
    background: url(../img/blog/autor.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0.5rem;
}
.perfil .texto-perfil{
    margin: 0 1rem;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
}
.perfil .texto-perfil h3{
    text-transform: uppercase;
}
.entrada__contenido p{
    font-size: 1.6rem;
}
.entrada__button{
    display: inline-block;
    text-transform: capitalize;
    font-size: 1.4rem;
    padding: 0.3rem 1.5rem;
    background-color: var(--primary-color);
    border: 0.2rem;
    
}
.entrada__button a {
    color: var(--white);
}
.contenido__img-contenedor{
    width: 100%;
    height: 35rem;
    background: url(../img/blog/imagen-entradablog.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.imagen__texto{
    margin: 1rem 0;
}
blockquote{
    font-size: 1.5rem;
    padding: 1rem 2.8rem;
    line-height: 1.6;
    font-weight: 300;
    box-shadow: inset 0.5rem 0 0 var(--primary-color);
    background-color: #F5F5F5;
}
.etiquetas{
    display: flex;
    align-items: center;
}
.etiquetas p{
    font-size: 1.4rem;
    text-transform: capitalize;
    
}
.etiquetas a{
    display: inline-block;
    padding: 0.3rem 1.5rem;
    background-color: #F5F5F5;
    font-size: 1.4rem;
    text-transform: capitalize;
    margin: 0 0.5rem;
    color: var(--primary-color);
}
/* FOOTER */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer{
    display: flex;
    justify-content: space-between; /* Distribuye en tres columnas */
    align-items: center;
    width: 100%;
    background-color: var(--white);
    border-top: 10px solid transparent;
    border-image: linear-gradient(to right, #AEDCE4, #F2B7BF, #DEC4E8, #B8CEE6) 1;
    min-height: 10rem;
    padding: 1rem 10rem;
    flex-wrap: wrap;
}
.footer__logo-container {
    display: flex;
    align-items: center;
}
/* Secciones individuales del footer */
.footer__section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer__logo {
    height: 9rem;
    width: auto;
}
/* Texto centrado */
.footer__text-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start; /* Lo mantiene alineado a la izquierda */
    align-items: flex-end; /* Lo coloca pegado al fondo */
    padding-bottom: 0;
    margin-top: auto; /* Hace que se "empuje" hacia abajo */
}
.footer__social-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer__social-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.social-icon{
    display: flex;
    gap: 1rem;
}
.icon__element{
    list-style: none;
}
.icon{
    color: var(--primary-color);
    font-size: 3rem;
    display: inline-block;
    margin: 0 1rem;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out; /* Animación suave */
}
.icon:hover{
    transform: translateY(-0.5rem);
}
.menu{
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.footer__text{
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer__section {
        margin-bottom: 2rem;
    }

    .footer__logo-container {
        order: 1; /* Primero el logo */
    }

    .footer__social-container {
        order: 2; /* Redes sociales en segundo lugar */
    }

    .footer__text-container {
        order: 3; /* Ahora la leyenda de derechos es lo último */
        align-items: center; /* Asegura que se alinee correctamente */
        padding-bottom: 0; /* Evita espacios innecesarios */
    }
}