
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
}

/* Estilos generales */
body {
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
    font-style: normal;
}


#about h1 {
    text-align: center;
    font-size: 20px; 
    margin-bottom: 20px;
    color: #094175;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Para que quede por encima de otros elementos */
    background-color: #0b4981;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2em;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    
    
}


@media screen and (max-width: 768px) {
    nav ul {
        display: flex;
        flex-wrap: wrap; /* Permite que los elementos se ajusten en varias líneas */
        align-items: center;
        justify-content: center;
        
        
    }
    nav ul li a {
        font-size: 16px !important; /* Usa !important si es necesario para priorizar esta regla */
    }

    nav ul li {
        flex: 1 1 35%; /* Ocupa el 45% del ancho para formar dos columnas */
        margin: 5px; /* Añade espaciado entre los elementos del menú */
        text-align: center; /* Centra el texto de los enlaces del menú */
    }

    nav ul li.social-icon-wrapper {
        flex: 1 1 100%; /* Ocupa el 100% del ancho */
        display: flex;
        justify-content: center;
        margin-top: 0px; /* Añade margen superior para separar los iconos del resto del menú */
    }

    nav ul li.social-icon-wrapper a {
        margin: 0 1px; /* Añade espacio entre los iconos */
        font-size: 16px !important; /* Ajusta el tamaño de los iconos */
        margin-bottom: 0px !important;
    }

    nav ul li.social-icon {
        flex: none; /* No ocupa todo el ancho */
    }
}


nav ul li.social-icon-wrapper a{
    margin: 15px;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    font-size: 20px; /* Cambia este valor según lo desees */
    font-family: "Varela Round", sans-serif;
    font-weight: 400;
}

section {
    padding: 50px 0;
}

section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;

    
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item {
    flex-basis: calc(33.333% - 20px);
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure the div takes full height for proper alignment */
    min-height: 450px; /* Set a minimum height to ensure all items are the same size */
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.service-item p {
    color: #666;
    text-align: justify;
    font-size: 14px;
    flex-grow: 1; /* Allow the paragraph to take available space */
}

.service-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.btn-1 {
    display: inline-block;
    background-color: #0b4981;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 21px;
    text-align: center;
     /* Add margin-top to ensure spacing from above elements */
}



/* Estilos del formulario de contacto */
label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #555;
}

/* Estilos del pie de página */
footer {
    background-color: #0b4981;
    color: #fff;
    padding: 10px 20px;
    margin-top: 20px; /* Agrega margen superior en pantallas más grandes */
}
.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center; /* Centra el texto por defecto */
}

.footer-info {
    flex: 1;
    margin-bottom: 20px;
}

.logo-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 0px;
}


.logo {
    width: 170px; /* Ajusta el tamaño del logo según sea necesario */
}

.slider-container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
}

.slide {
    width: 100%;
    transition: transform 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    font-size: 30px;
}
footer p {
    font-size: 13px;
    font-family: "Varela Round", sans-serif;
    font-weight: 40;
    font-style: normal;
}
.logo-container.footer-logo {
    margin-bottom: 10px; /* Espacio inferior para separar el logo del resto del contenido */
    display: flex;
    justify-content: center;
    width:100%; /* Asegura que ocupe todo el ancho */
}

.logo-container.footer-logo .logo {
    width: 100px; /* Ajusta el ancho del logo */
    height: auto;
   
    
     /* Mantiene la proporción del logo */
}


.content {
    overflow: hidden; /* Evita que el contenido se solape con el logo */
}

.service-image {
    max-height: 190px;
    max-width: 260px; /* Ajusta el ancho máximo de las imágenes */
}

.service-item {
    font-size: 15px;
    
}

.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-member {
    flex-basis: calc(33.333% - 20px);
    margin-bottom: 40px;
    text-align: center;
    
}

.team-member img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.team-member h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    
}

.team-member h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #0b4981;
}

.team-member p {
    color: #000000;
    text-align: justify;
}

/* Media Queries para Responsividad */
@media screen and (max-width: 768px) {
    .team-member {
        flex-basis: 100%; /* Cambia el ancho de los miembros del equipo en pantallas más pequeñas */
    }
}

footer div p a {
    font-size: inherit; /* Hace que el tamaño del enlace sea igual al tamaño del texto del párrafo */
    color: #fff; /* Asegura que los enlaces tengan el mismo color que el texto */
}
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .logo-container.footer-logo {
        margin-bottom: 10px; /* Reduce el espacio inferior en pantallas pequeñas */
    }

    .footer-info {
        text-align: center; /* Centra el texto en pantallas pequeñas */
    }
}

#about {
    padding: 60px 20px;
    background-color: #fdfdfd;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centra verticalmente los elementos */
    flex-wrap: wrap; /* Permite que los elementos se ajusten en varias líneas si es necesario */
    max-width: 1200px; /* Ajusta el ancho máximo del contenido */
    margin: 0 auto; /* Centra horizontalmente el contenido */
}

.about-image {
    flex: 1 1 30%; /* Ocupa el 30% del ancho disponible */
    text-align: center; /* Centra la imagen horizontalmente */

}

.about-text p {
    margin-bottom: 20px;
    justify-content: center;
    text-align: justify;
}

.about-text strong {
    color: #007B8A;
    font-weight: 600;
}

.about-text .contact-call {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 40px;
    font-weight: bold;
    color: #005f66;
}

.about-image img {
    max-width: 100%; /* Asegura que la imagen no se salga del contenedor */
    height: auto; /* Permite que la altura se ajuste automáticamente */
    margin-left: 20px; /* Espacio a la izquierda de la imagen */
}

@media screen and (max-width: 768px) {
    .container .about-content .about-text {
        font-size: 14px !important; /* Ajusta el tamaño de fuente según lo desees */
        max-width: calc(100% - 40px) !important; /* Reducir el ancho máximo para permitir más espacio en los lados */
        margin: 0 20px; /* Agregar margen a los lados para separar el texto del borde */
        text-align: justify;
    }

    .about-image {
        margin-top: 20px;
        width: 60%;
        margin-right: 40px;
        text-align: center;
    }
}



/* Estilos para el botón */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8c302;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Varela Round", sans-serif;
    text-decoration: none;
    font-size: inherit;
    margin-top: 20px;
}

/* Estilos para el texto */
.about-text {
    width: 60%;
    margin-right: 20px;
    line-height: 1.6; /* Ajusta este valor para aumentar el espacio entre líneas */
    text-align: justify;
    justify-content: center;
    
}

/* Estilos para la sección de servicios */
#services {
    background-color: #f9f9f9;
    padding: 20px 0;
}

/* Estilos para la sección de contacto */
#contact {
    background-color: #f9f9f9;
    padding: 50px 0;
}
#location .container {
    padding: 20px;
}

.contact-content {
    display: flex;
    flex-direction: column; /* Cambia a columnas por defecto para pantallas pequeñas */
    align-items: center;
    gap: 20px; /* Espacio entre los elementos */
}

.map-container {
    width: 100%;
    max-width: 800px; /* Asegura que el mapa no sea más grande que este tamaño */
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%; /* Ancho total del contenedor */
    height: 300px; /* Altura ajustada para pantallas pequeñas */
    border: none; /* Sin borde */
}

.contact-info {
    text-align: center;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.btn-reserva {
    display: inline-block;
    background-color: #0b4981;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 21px;
    text-align: center;
}

.btn-jorge {
    
    display: inline-block;
    background-color: #0b4981;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 21px;
    text-align: center;
    margin-bottom: 20px;

}



.btn-elegirnos{
   
        display: inline-block;
        background-color: #0b4981;
        color: #fff;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        font-size: 17px;
        text-align: center;
          
}


.btn-reserva:hover {
    background-color: #094175;
}

@media screen and (min-width: 768px) {
    .contact-content {
        flex-direction: row; /* Diseño de fila para pantallas más grandes */
        justify-content: space-between;
        align-items: flex-start;
    }

    .map-container {
        flex: 1; /* Ocupa igual espacio en el contenedor flex */
    }

    .contact-info {
        flex: 1; /* Ocupa igual espacio en el contenedor flex */
        text-align: left; /* Alinea el texto a la izquierda */
    }

    .map-container iframe {
        height: 400px; /* Ajusta la altura para pantallas más grandes */
    }
}

/* Media Queries para pantallas aún más grandes (por ejemplo, portátiles) */
@media screen and (min-width: 1024px) {
    .map-container iframe {
        height: 300px; /* Ajusta la altura para pantallas aún más grandes */
    }
}

/* Slider container */
.slider-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Slider wrapper */
.slider {
    display: flex;
    transition: transform 2.5s ease;
}

/* Individual slide */
.slide {
    min-width: 100%;
    transition: opacity 0.5s ease;
}

/* Ensure images take up the full width of the slide */
.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.imagen-derecha {
    width: 700px;
    margin-bottom: 130px;
    margin-left: 50px;
}


#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: antiquewhite;
    padding: 10px 20px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    color: black;
    font-size: 15px;
}

#cookieConsent a {
    color: #0b4981;
    text-decoration: underline;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 20px;
}

#closeCookieConsent {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

#acceptCookies {
    background-color: #0b4981;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 5px;
}

#acceptCookies:hover {
    background-color: #217cca;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 370px; /* Mantiene el ancho máximo original para pantallas grandes */
    margin: 0 auto;
    margin-bottom: 60px;
}

@media screen and (max-width: 768px) {
    .carousel-container {
        width: 70%;/* Cambia el ancho de los miembros del equipo en pantallas más pequeñas */
    }
}

.carousel-image {
    width: 100%; /* Asegura que la imagen ocupe todo el ancho del contenedor */
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-buttons button {
    background-color: #0b4981;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    color: white;
    font-family: "Varela Round", sans-serif;
}

.read-more{
    font-size: 20px;
}

.more-text{
    text-align: justify;
}

@media screen and (max-width: 768px) {
    #cookieConsent {
        padding: 5px 10px; /* Ajusta el relleno para dispositivos móviles */
        font-size: 12px; /* Ajusta el tamaño del texto para dispositivos móviles */
    }

    #closeCookieConsent {
        top: 2px; /* Ajusta la posición del botón de cerrar para dispositivos móviles */
        right: 5px; /* Ajusta la posición del botón de cerrar para dispositivos móviles */
    }
}

    
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px 0;
}

#hours, #contact-form, #clinic-images {
    flex: 1 1 30%;
    padding: 30px;
    text-align: center;
}

#clinic-images img {
    max-width: 100%;
    height: auto;
}

#contact-form form {
    max-width: 500px;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    main {
        flex-direction: column;
    }

    #hours, #contact-form, #clinic-images {
        flex: 1 1 100%;
        padding: 15px;
    }
}
/* Estilos para los botones */

.buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.buttons a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border: none;
    padding: 10px 10px;
    margin-right: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 20px;
}

.buttons a:hover {
    background-color: #0056b3;
}

/* Estilos adicionales que puedas necesitar */
#hours h2,
#contact-form h2,
#clinic-images h2 {
    color: #094175;
}


article {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}
article h2 {
    color: #0b4981;
    margin-top: 0;
    font-size: 25px;
}
article p {
    color: #666;
    font-size: 15px;
}
article a {
    color: #0b4981;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #eee;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
article a:hover {
    background-color: #ccc;
}
.more-text {
    display: none;
    
}
article img {
    float: right;
    margin: 0 0 10px 10px;
    max-width: 50%;
    height: auto;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .carousel-container {
        width: 70%;/* Cambia el ancho de los miembros del equipo en pantallas más pequeñas */
    }
}

.carousel-image {
    width: 100%; /* Asegura que la imagen ocupe todo el ancho del contenedor */
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; /* Asegura que los botones estén alineados en una fila */
    gap: 10px; /* Añade espacio entre los botones */
}

.carousel-buttons button {
    background-color: #0b4981;
    border: none;
    padding: 5px 10px;
    margin: 0;
    cursor: pointer;
    color: white;
    font-family: "Varela Round", sans-serif;
}


/* Botones sensibles */
nav ul li a {
    color: white; /* Color inicial del texto */
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff; /* Color al pasar el cursor*/
}

/* Iconos redes sociales */
.social-icon {
    transition: color 0.3s ease;
}

/* Facebook */
.social-icon-wrapper a[href*="facebook"]:hover {
    color: #1877f2;
}

/* Instagram */
.social-icon-wrapper a[href*="instagram"]:hover {
    color: #e1306c;
}

/* WhatsApp */
.social-icon-wrapper a[href*="wa.me"]:hover {
    color: #25d366;
}

/* Iconos redes sociales abajo */
.social-links a i {
    transition: color 0.3s ease;
}

/* Instagram */
.social-links a[href*="instagram"]:hover i {
    color: #e1306c;
}

/* Facebook */
.social-links a[href*="facebook"]:hover i {
    color: #1877f2;
}

/* WhatsApp */
.social-links a[href*="wa.me"]:hover i {
    color: #25d366;
}

/* Articulos blog */
.article-container {
display: flex;
justify-content: center;
padding: 20px;
}

.article-card {
background-color: #fdfdfd;
border-radius: 16px;
box-shadow: 0 8px 16px rgba(0,0,0,0.08);
max-width: 800px;
padding: 30px;
font-family: 'Arial', sans-serif;
line-height: 1.6;
}

.article-title {
font-size: 1.8rem;
color: #333;
margin-bottom: 20px;
text-align: center;
}

.article-image {
width: 100%;
height: auto;
max-height: 400px;
object-fit: cover;
border-radius: 12px;
margin-bottom: 20px;
}

.intro {
font-weight: bold;
color: #555;
}

.article-body h4 {
margin-top: 20px;
color: #007BFF;
}

.article-body ul {
padding-left: 20px;
margin-bottom: 20px;
}

.article-body li {
margin-bottom: 10px;
}

/* Boton de contacto */
.contact-button-container {
    text-align: center;
    margin: 2rem 0;
}

.big-contact-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.big-contact-button:hover {
    background-color: #0056b3;
}



/* Espacio de novedades */
#novedades {
    display: flex;
    flex-direction: column;
}

.latest-article {
    display: flex;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
}

.latest-article:last-child {
    margin-bottom: 0;
}

.latest-article:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.latest-article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    width: 100%;
}


.latest-article-img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.latest-article-content {
    flex: 1;
}

.latest-article-content h3 {
    margin: 0;
    font-size: 1.2rem;
}

.latest-article-content p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #555;
}


.leer-mas {
    display: inline-block;
    margin-top: 0.5rem;
    color: #0056d2;
    font-weight: bold;
    font-size: 1rem;
}