/* 1- Diseño Responsive y 2- Ancho del dispositivo */

/* Reset básico y configuración para ocupar todo el ancho */
html {
    box-sizing: border-box;
    font-size: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.hero-image {
    margin: 0;
}

body {
    margin: 0;
    min-width: 0;
    /* Fuente por defecto con alternativas si 'Times Diez Font' no está disponible */
    font-family: 'Times Diez Font', 'Times New Roman', serif; 
}

/* Añadimos el padding al contenido principal en lugar del body */
main {
    min-width: 0;
    padding: 0 1.25rem 1.25rem; /* Eliminamos el padding superior para que no afecte al hero */
}


/* Regla para que las imágenes sean responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Evita espacios extra debajo de la imagen */
    margin-top: 20px; /* Añade un espacio superior a las imágenes */
}

/* 3- Estilos para H1 y H2 */
h1, h2 {
    color: #436280;
    font-family: 'Times Diez Font', 'Times New Roman', serif;
    font-size: 38px;
}

/* 4- Estilos para P (párrafos) */
p {
    color: grey;
    font-family: 'Times Diez Font', 'Times New Roman', serif;
    line-height: 1.6; /* Mejora la legibilidad del texto */
}

            /* --- ESTILOS DE LA BARRA DE NAVEGACIÓN --- */

/* Barra Superior */
.top-bar {
    background-color: #436280;
    color: #FFFFFF;
    min-height: 3.125rem;
    padding: 0 1.5625rem; /* Espacio a los lados */
    display: flex;
    justify-content: space-between; /* Alinea los elementos a los extremos */
    align-items: center; /* Centra verticalmente */
    font-size: 1rem; /* Tamaño de fuente para la barra superior */
    font-weight: bolder;
}

.top-bar-left a {
    color: #FFFFFF;
    text-decoration: none;
    margin-right: 15px; /* Espacio entre iconos */
}

.top-bar-left .fa-brands {
    font-size: 20px; /* Hacemos los iconos un poco más grandes */
    vertical-align: middle; /* Ayuda a alinear mejor con el texto si lo hubiera */
}

.top-bar-right > * { /* Aplica a todos los hijos directos (span, a) */
    margin-left: 20px; /* Espacio entre teléfono y dirección */
}

.top-bar-right a {
    color: #FFFFFF;
    text-decoration: none;
}

.top-bar-right .fa-solid {
    margin-right: 8px; /* Espacio entre el icono y el texto */
    font-size: 20px; /* Ajusta el tamaño de los iconos de contacto */
    vertical-align: middle;
}

/* Barra Principal (Inferior) */
.main-nav {
    background-color: #FFFFFF;
    min-height: 5.625rem;
    padding: 0 1.5625rem; /* Espacio a los lados */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra sutil para separar */
}

.logo img {
    max-height: 70px; /* Tamaño del logo ajustado */
    width: auto;
    margin-top: 0; /* Sobrescribe el margen general de las imágenes */
}

.menu {
    list-style: none; /* Quita los puntos de la lista */
    margin: 0;
    padding: 0;
    display: flex; /* Pone los elementos en línea */
    gap: 30px; /* Espacio entre los elementos del menú */
}


.menu a {
    color: #436280;
    text-decoration: none;
    font-weight: bolder;
    font-size: 20px; /* Tamaño de fuente para el menú */
    transition: color 0.3s ease, background-color 0.3s ease; /* Efecto suave para color y fondo */
    padding: 10px 15px; /* Relleno para que el fondo sea visible */
    border-radius: 5px; /* Bordes redondeados para el fondo */
}

.menu a:hover {
    color: #a3bad2; /* Un color ligeramente más oscuro para el hover */
    background-color: #f4f4f4; /* Color de fondo al pasar el ratón */
}

            /* --- ESTILOS DEL FOOTER --- */

footer.site-footer {
    background-color: #436280;
    color: #FFFFFF;
    padding: 3.125rem 1.5625rem 1.25rem;/*top-right-botton-left*/
    margin-top: 40px; /* Espacio entre el main y el footer */
    font-size: 16px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* Espacio entre columnas */
    flex-wrap: wrap; /* Para que se adapte en móviles */
    margin-bottom: 40px;
}

.footer-column {
    flex: 1; /* Cada columna toma el mismo espacio */
    min-width: min(100%, 17.5rem); /* Evita que las columnas se aplasten o excedan el contenedor */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos horizontalmente */
    text-align: center; /* Centra el texto dentro de los elementos */
}

.footer-column p, .footer-column a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Times Diez Font', 'Times New Roman', serif;
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-column a:hover {
    text-decoration: underline;
}

/* Columna Izquierda */
.footer-social {
    margin-top: 10px;
}

.footer-social a {
    margin-right: 20px;
    font-size: 24px;
}

/* Columna Centro */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%; /* Asegura que la lista ocupe el espacio para centrar el texto */
    font-size: 20px;
}

.footer-menu li {
    margin-bottom: 15px; /* Espacio entre los elementos del menú del footer */
    padding-top: 30px;
}

/* Columna Derecha */
.footer-logo {
    max-width: 150px; /* Tamaño del logo en el footer */
    margin-bottom: 15px;
}

.footer-logo-text {
    line-height: 1.5;
}

/* Línea divisoria y Copyright */
.footer-divider {
    height: 1px;
    width: 90%; /* No ocupa todo el ancho */
    background-color: #FFFFFF;
    margin: 0 auto 20px auto; /* Centra la línea */
}

.footer-copyright {
    text-align: center;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bolder;
}

.footer-jizen-link {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
}

.footer-jizen-link img {
    display: block;
    width: 60px;
    height: auto;
}

            /* --- ESTILOS PARA ENLACES Y BOTONES CTA --- */


.cta-button {
    display: inline-block; /* Permite aplicar padding y otros estilos de bloque */
    background-color: #a3bad2;
    color: white;
    font-family: 'Times Diez Font', 'Times New Roman', serif;
    
    /* Estilos adicionales para que parezca un botón */
    padding: 12px 24px;
    text-decoration: none; /* Quita el subrayado de los enlaces */
    border: none;
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer; /* Cambia el cursor al pasar por encima */
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

           /* --- ESTILOS GENERALES DE TURNOS Y DATOS DE CONTACTO (estilos de contact-section y sus tarjetas .contact-info.)--- */

.contact-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-section .contact-info,
.contact-form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    border: 4px solid #a3bad2;
    font-size: 20px;
}

.contact-info h2,
.contact-form-container h2,
.map-container h2 {
    margin-bottom: 25px;
    font-size: 30px;
}

.contact-info p {
    font-size: 25px;
    margin-bottom: 15px;
    color: #333;
}

.contact-info h2.error-title {
    color: #d00000;
}

.specialist-section .contact-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.specialist-instruction {
    text-align: center;
    font-size: 1.75em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}

.contact-info p i {
    margin-right: 10px;
    color: #a3bad2;
    font-size: 20px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:not(.cta-button):hover,
.contact-info a:not(.cta-button):focus-visible {
    text-decoration: underline;
}

            /* --- ESTILOS DE ENCABEZADOS DE SECCIÓN --- */

.page-header {
    background-color: #f4f4f4;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid #a3bad288;
    margin-top: 40px; /* Espacio de separación con la barra de navegación */
}

.page-header h1 {
    margin: 0;
    font-size: 2.5em;
}

            /** --- ESTILOS DE HERO --- */

.hero {
    position: relative;
    width: 100%;
    min-height: clamp(24rem, 65vh, 43.75rem);
    overflow: hidden; /* Oculta cualquier parte del video que se salga */
    margin-top: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 20px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #FFFFFF; /* Asegura que el título sea blanco */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra para mejorar legibilidad */
}

.hero-content p {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #FFFFFF; /* Asegura que el subtítulo sea blanco */
    font-weight: bolder;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Sombra para mejorar legibilidad */
}

.hero-content p.hero-subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-content .cta-button {
    background-color: #a3bad2e7;
    padding: 14px 28px;
    font-size: 1.31em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* --- ESTILOS DE LA SECCIÓN "SOBRE NOSOTROS" --- */
.about-us {
    border-radius: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 12px;
    margin-top: 20px;
    background-image: url('../img/fondocrema.jpg');
    background-image: image-set(
        url('../img/fondocrema.webp') type('image/webp'),
        url('../img/fondocrema.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    position: relative;
}

.about-us-content {
    text-align: center;
}

.about-us-content p,
.about-us-content ul {
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.about-us-content p,
.about-us-content li {
    font-size: 24px;
}

.about-us-content h1,
.about-us-content h3,
.about-us-content p,
.about-us-content ul {
    color: #436280;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.about-us-content ul {
    list-style-type: none;
    padding: 0;
}

.about-us-content li::before {
    content: "✓";
    color: #436280;
    margin-right: 10px;
}

/* --- ESTILOS DE LA SECCIÓN "TECNOLOGÍA" --- */
.tecnologia-section {
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tecnologia-section h1 {
    margin-bottom: 30px;
    color: #436280;
}

.tecnologia-cards {
    margin-top: 0;
}

.service-card.tecnologia-card img {
    height: 260px;
    object-fit: contain;
    background-color: #f5f5f5;
}

.tecnologia-section .tecnologia-card p {
    font-size: 24px;
}

/* --- ESTILOS DE LA SECCIÓN "HORARIOS DE ATENCIÓN" --- */
.horarios-atencion {
    text-align: center;
    padding: 20px;
    margin-top: 80px;
    border: 4px solid #a3bad2;
    border-radius: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.horarios-atencion i {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    color: #a3bad2;
    border: 4px solid #a3bad2;
    border-radius: 50%;
    padding: 10px;
    background-color: #fff;
}

.horarios-atencion h2 {
    color: #a3bad2;
    font-size: 38px;
    margin-top: 40px;
}

.horarios-content {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.horarios-content h3 {
    color: #a3bad2;
    font-size: 24px;
}

.horario-columna {
    padding-right: 20px;
    border-right: 1px solid #a3bad2;
    font-size: 24px;
}

.horario-columna:last-child {
    border-right: none;
}

@media (max-width: 992px) {
    .horarios-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .horarios-content {
        grid-template-columns: 1fr;
    }

    .horario-columna {
        border-right: none;
        padding-right: 0;
    }
}

            /* --- ESTILOS DE LA PÁGINA "SERVICIOS" Y ESTILOS DE LA PÁGINA "GINECÓLOGOS" --- */

.services-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 40px auto;
    background-position: center;
    border-radius: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: left;
    display: flex;
    border: 4px solid #a3bad2;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    margin-top: 0;
}

.service-card h3 {
    color: #436280;
    margin-top: 0;
    font-size: 30px;
}

.service-card p {
    font-size: 18px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card .doctor-list {
    color: #436280;
    font-size: 18px;
    line-height: 1.6;
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

.service-card .doctor-list li::before {
    content: "✓";
    color: #436280;
    margin-right: 10px;
}

.ginecologos-section .service-card img {
    align-self: center;
    width: 100%;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.ginecologos-page a,
.ginecologos-page li {
    font-size: 20px;
}

.services-page p {
    font-size: 24px;
}

.services-page .service-card a[href="contacto.html"].cta-button,
.services-page .service-card a[href="Ginecologos.html"].cta-button {
    font-size: 20px;
}

            /* --- ESTILOS DE dni.html --- */

.dni-input {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f2f2f2;
    font-size: 1em;
}

.dni-search-button {
    display: block;
    margin: 15px auto 0;
    padding: 15px 32px;
    font-size: 1.15em;
}

body.dni-page .dni-search-button {
    transition: color 0.3s ease, background-color 0.3s ease;
}

            /* --- ESTILOS DE registro.html --- */

/* Reglas compartidas con las páginas de nuevo paciente, turnos y confirmación. */
body.registro-page a,
body.nuevopaciente-page a,
body.horarioturno-page a,
body.aceptacionturno-page a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

body.registro-page a:hover,
body.registro-page a:focus-visible,
body.nuevopaciente-page a:hover,
body.nuevopaciente-page a:focus-visible,
body.horarioturno-page a:hover,
body.horarioturno-page a:focus-visible,
body.aceptacionturno-page a:hover,
body.aceptacionturno-page a:focus-visible {
    color: #dce6ef;
    text-decoration: none;
}

            /* --- ESTILOS DE nuevopaciente.html --- */

.contact-section.registro-paciente-section,
.contact-section.confirmation-section {
    grid-template-columns: minmax(0, 50rem);
    justify-content: center;
    margin-inline: auto;
}

/* --- ESTILOS DE horarioturno.html --- */
.appointment-card {
    width: 100%;
    box-sizing: border-box;
}

.appointment-calendar {
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #a3bad2;
    border-radius: 8px;
    background: #fff;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #436280;
    color: #fff;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.2em;
    text-transform: capitalize;
}

.calendar-nav {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.calendar-grid,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-days {
    grid-column: 1 / -1;
}

.calendar-weekday {
    padding: 10px 2px;
    background: #dce6ef;
    color: #333;
    font-size: 0.85em;
    font-weight: bold;
}

.calendar-day {
    min-height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 0.9em;
    text-align: left;
}

button.calendar-day {
    cursor: pointer;
}

button.calendar-day:hover,
button.calendar-day:focus-visible {
    background: #eaf1f7;
    outline: 2px solid #436280;
    outline-offset: -2px;
}

button.calendar-day.is-selected {
    background: #436280;
    color: #fff;
    font-weight: bold;
}

.calendar-day-empty {
    background: #f7f7f7;
}

/* Días no disponibles: domingos, días en que el profesional no atiende, vacaciones o fechas pasadas */
button.calendar-day.is-disabled,
button.calendar-day:disabled {
    background: #f2f4f7;
    color: #b3b9c2;
    cursor: not-allowed;
    text-decoration: line-through;
}

button.calendar-day.is-disabled:hover,
button.calendar-day:disabled:hover {
    background: #f2f4f7;
    outline: none;
}

.calendar-selection {
    margin: 18px 0 0;
    font-size: 1em;
}

.appointment-actions {
    grid-column: 1 / -1;
    text-align: center;
}

.appointment-actions .cta-button {
    font-size: 20px;
}

@media (max-width: 480px) {
    .appointment-card {
        padding: 18px 12px;
    }
}

            /* --- ESTILOS DE aceptacionturno.html --- */

@media (max-width: 64rem) {
    .confirmation-section .contact-info h2 {
        font-size: clamp(1.35rem, 4vw, 1.875rem);
    }

    .confirmation-section .contact-info p {
        font-size: clamp(1rem, 2.5vw, 1.5625rem);
    }
}

            /* --- ESTILOS DE contacto.html --- */

@media (min-width: 768px) {
    .contact-page-section .map-container {
        grid-column: auto;
        margin-top: 0;
    }
}

.social-links-contact {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links-contact .social-icon {
    font-size: 30px;
    transition: transform 0.3s ease;
    color: initial;
}

.social-links-contact .social-icon:hover {
    transform: translateY(-5px);
}

.social-links-contact .instagram {
    color: #E4405F;
}

.social-links-contact .facebook {
    color: #3b5998;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #a3bad2;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .cta-button {
    width: auto;
    margin-top: 10px;
    font-size: medium;
}

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    border-radius: 8px;
}

.location-map {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
}

body.index-page .hero-content .cta-button {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

body.index-page .hero-content a {
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

body.index-page .hero-content a:hover,
body.index-page .hero-content a:focus-visible {
    color: #a3bad2;
}

body.services-page a:not(.main-nav a),
body.ginecologos-page a:not(.main-nav a),
body.dni-page a:not(.main-nav a),
body.registro-page a:not(.main-nav a),
body.nuevopaciente-page a:not(.main-nav a),
body.horarioturno-page a:not(.main-nav a),
body.aceptacionturno-page a:not(.main-nav a) {
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

body.services-page a:not(.main-nav a):hover,
body.services-page a:not(.main-nav a):focus-visible,
body.ginecologos-page a:not(.main-nav a):hover,
body.ginecologos-page a:not(.main-nav a):focus-visible,
body.dni-page a:not(.main-nav a):hover,
body.dni-page a:not(.main-nav a):focus-visible,
body.registro-page a:not(.main-nav a):hover,
body.registro-page a:not(.main-nav a):focus-visible,
body.nuevopaciente-page a:not(.main-nav a):hover,
body.nuevopaciente-page a:not(.main-nav a):focus-visible,
body.horarioturno-page a:not(.main-nav a):hover,
body.horarioturno-page a:not(.main-nav a):focus-visible,
body.aceptacionturno-page a:not(.main-nav a):hover,
body.aceptacionturno-page a:not(.main-nav a):focus-visible {
    color: #a3bad2;
}

body.registro-page a:not(.main-nav a):hover,
body.registro-page a:not(.main-nav a):focus-visible,
body.nuevopaciente-page a:not(.main-nav a):hover,
body.nuevopaciente-page a:not(.main-nav a):focus-visible,
body.horarioturno-page a:not(.main-nav a):hover,
body.horarioturno-page a:not(.main-nav a):focus-visible,
body.aceptacionturno-page a:not(.main-nav a):hover,
body.aceptacionturno-page a:not(.main-nav a):focus-visible {
    color: #fff;
}

body.services-page .service-card .cta-button:hover,
body.services-page .service-card .cta-button:focus-visible,
body.ginecologos-page .service-card .cta-button:hover,
body.ginecologos-page .service-card .cta-button:focus-visible,
body.registro-page .cta-button:hover,
body.registro-page .cta-button:focus-visible,
body.nuevopaciente-page .cta-button:hover,
body.nuevopaciente-page .cta-button:focus-visible,
body.horarioturno-page .cta-button:hover,
body.horarioturno-page .cta-button:focus-visible,
body.aceptacionturno-page .cta-button:hover,
body.aceptacionturno-page .cta-button:focus-visible,
body.index-page .hero-content .cta-button:hover,
body.index-page .hero-content .cta-button:focus-visible,
body.dni-page .dni-search-button:hover,
body.dni-page .dni-search-button:focus-visible {
    background-color: #436280;
    color: #fff;
}

.whatsapp-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    font-size: 34px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
    background-color: #1DA851;
    color: #FFFFFF;
}

            /*--EXTRAS--*/

/* --- ESTILOS DE LA SECCIÓN "EQUIPO TÉCNICO"(INDEX.HTML --- */
.equipo-tecnico {
    text-align: center;
    padding: 20px;
    margin-top: 80px;
    font-size: 23px;/*tamaño P*/
}
.equipo-tecnico h1 {
    color: #436280;
    margin-bottom: 20px;
    padding-bottom: 72px;
}

.equipo-tecnico h2 {
    color: #a3bad2;
    margin-bottom: 20px;
}

.equipo-columnas {
    display: flex;
    justify-content: space-around; /* Distribuye las columnas uniformemente */
    gap: 20px; /* Espacio entre las columnas */
    margin-top: 30px; /* Espacio entre el título y las columnas */
}

.equipo-columna {
    flex: 1; /* Las columnas ocupan el mismo espacio */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Sombra leve */
    border: 4px solid #a3bad2; 
}

/* Estilos para la columna de la imagen */
.equipo-columna.con-imagen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.equipo-columna.con-imagen img {
    width: 150px; /* Ajusta el tamaño de la imagen */
    height: 150px;
    border-radius: 50%; /* Hace la imagen circular */
    object-fit: cover; /* Asegura que la imagen cubra el círculo */
    margin-top: -75px; /* Sube la imagen para que sobresalga */
    margin-bottom: 15px; /* Espacio debajo de la imagen */
    margin-left: auto; /* Centra la imagen horizontalmente */
    margin-right: auto; /* Centra la imagen horizontalmente */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra más notoria */ 
}


/* Media query para pantallas más pequeñas (ejemplo: móviles) */
@media (max-width: 768px) {
    .equipo-columnas {
        flex-direction: column; /* Apila las columnas en pantallas pequeñas */
        align-items: center; /* Centra las columnas apiladas */
    }

    .equipo-columna {
        width: 80%; /* Ajusta el ancho de las columnas en pantallas pequeñas */
        margin-bottom: 20px; /* Espacio entre las columnas apiladas */
    }
}

/* --- ESTILOS DE LA PÁGINA "BLOG" --- */
.blog-section {
    padding: 0 20px;
    max-width: 1200px;
    margin: 40px auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 4px solid #a3bad2; /* Borde solicitado */
    font-size: 25px;/*tamaño p*/
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    margin-top: 0;
}

.blog-card h3 {
    color: #436280;
    margin-top: 0;
    min-height: 50px; /* Asegura una altura mínima para alinear títulos */
    font-size: 30px;
}


/* Responsive refinements: preserve the desktop layout while preventing mobile overflow. */
.top-bar,
.main-nav,
.footer-content,
.contact-section,
.contact-info,
.contact-form-container,
.service-card,
.blog-card {
    min-width: 0;
}

.top-bar-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.top-bar-right > * {
    margin-left: 0;
}

.hero {
    height: clamp(24rem, 65vh, 43.75rem);
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
}

.hero-content p {
    font-size: clamp(1.125rem, 3vw, 1.8rem);
}

.services-grid,
.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.service-card img,
.blog-card img {
    height: auto;
    aspect-ratio: 3 / 2;
}

@media (min-width: 48rem) and (max-width: 64rem) {
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 47.99rem) {
    main {
        padding-inline: 0.75rem;
    }

    .top-bar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        height: auto;
        padding: 0.75rem;
    }

    .top-bar-right {
        justify-content: flex-start;
        gap: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .top-bar-right .fa-solid {
        font-size: 1rem;
        margin-right: 0.25rem;
    }

    .main-nav {
        min-height: 4.5rem;
        height: auto;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .logo img {
        max-height: 70px;
        width: auto;
    }

    .menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    h1,
    h2,
    .page-header h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-header {
        margin-top: 1.5rem;
        padding: 1.5rem 0.75rem;
    }

    .contact-section {
        gap: 1.5rem;
        margin-block: 1.5rem;
        padding: 1.5rem 0.25rem;
    }

    .contact-info,
    .contact-form-container {
        padding: clamp(1rem, 4vw, 1.875rem);
        font-size: 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    footer.site-footer {
        padding: 2rem 1rem 1rem;
        overflow-wrap: anywhere;
    }

    .footer-column p,
    .footer-column a {
        font-size: 1rem;
    }

    .footer-copyright {
        font-size: 0.875rem;
    }

    .hero {
        min-height: 28rem;
        height: 65vh;
    }

    .appointment-actions .cta-button {
        max-width: 100%;
        font-size: 1rem;
    }
}

/* Mobile-first layout refinements for small screens, tablets, and desktop. */
html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    max-width: 100%;
    overflow-wrap: anywhere;
}

main,
.site-header,
.site-footer {
    min-width: 0;
}

.top-bar,
.top-bar-right,
.main-nav,
.menu,
.footer-content,
.contact-section,
.services-grid,
.horarios-content {
    min-width: 0;
}

.top-bar {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.5rem clamp(0.75rem, 3vw, 1.5625rem);
}

.top-bar-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.top-bar-right > * {
    margin-left: 0;
}

.main-nav {
    height: auto;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0.5rem clamp(0.75rem, 3vw, 1.5625rem);
}

.menu {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.menu a {
    padding: 0.5rem 0.75rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

h1,
h2,
.page-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.375rem);
    overflow-wrap: anywhere;
}

.hero {
    height: clamp(24rem, 65vh, 43.75rem);
    min-height: 24rem;
}

.hero-content {
    width: min(100%, 60rem);
}

.hero-content h1 {
    font-size: clamp(2rem, 7vw, 3rem);
}

.hero-content p {
    font-size: clamp(1.125rem, 3.5vw, 1.8rem);
}

.services-grid,
.blog-grid {
    grid-template-columns: minmax(0, 1fr);
}

.service-card,
.blog-card,
.contact-info,
.contact-form-container,
.footer-column {
    min-width: 0;
}

.service-card img,
.blog-card img {
    height: auto;
    aspect-ratio: 3 / 2;
}

.contact-section {
    grid-template-columns: minmax(0, 1fr);
}

.horarios-content {
    grid-template-columns: minmax(0, 1fr);
}

.horario-columna {
    border-right: 0;
    border-bottom: 1px solid #a3bad2;
    padding: 0 0 1rem;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.horario-columna:last-child {
    border-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.footer-menu li {
    padding-top: 0.75rem;
}

.location-map {
    min-width: 0;
}

@media (min-width: 48rem) and (max-width: 64rem) {
    .services-grid,
    .blog-grid,
    .horarios-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav {
        flex-wrap: nowrap;
    }
}

@media (min-width: 64.0625rem) {
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .horarios-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .contact-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .main-nav {
        flex-wrap: nowrap;
    }
}

@media (max-width: 47.99rem) {
    main {
        padding-inline: 0.75rem;
    }

    .top-bar {
        justify-content: center;
    }

    .top-bar-right {
        justify-content: center;
        font-size: 0.875rem;
    }

    .main-nav {
        justify-content: center;
    }

    .menu {
        justify-content: center;
    }

    .hero-content {
        padding: 1rem;
    }

    .contact-section,
    .services-section,
    .tecnologia-section {
        padding-inline: 0.5rem;
    }

    .footer-column p,
    .footer-column a {
        overflow-wrap: anywhere;
    }

    .calendar-day {
        min-height: 2.75rem;
        padding: 0.375rem 0.25rem;
    }
}

body[class] .site-footer .footer-menu a:hover,
body[class] .site-footer .footer-menu a:focus-visible,
.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus-visible {
    color: #FFFFFF;
    background-color: #a3bad2;
    border-radius: 4px;
    padding: 2px;
    text-decoration: none;
}
