@font-face {
    font-family: 'Comfortaa';
    src: url('fuentes/Comfortaa-Bold.eot');
    src: url('fuentes/Comfortaa-Bold.eot?#iefix') format('embedded-opentype'),
        url('fuentes/Comfortaa-Bold.woff2') format('woff2'),
        url('fuentes/Comfortaa-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('fuentes/Comfortaa-Regular.eot');
    src: url('fuentes/Comfortaa-Regular.eot?#iefix') format('embedded-opentype'),
        url('fuentes/Comfortaa-Regular.woff2') format('woff2'),
        url('fuentes/Comfortaa-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('fuentes/Comfortaa-Light.eot');
    src: url('fuentes/Comfortaa-Light.eot?#iefix') format('embedded-opentype'),
        url('fuentes/Comfortaa-Light.woff2') format('woff2'),
        url('fuentes/Comfortaa-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

html{
    scroll-behavior: smooth;
}

/* Estilos generales */
body {
    font-family: 'Comfortaa', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #08355c;
    position: relative;
}

/* Menú fijo sobre el banner con fondo transparente al inicio */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    position: absolute; 
    left: 0;
    right: 0;
    z-index: 15; 
    background-color: #ffffff; 
    backdrop-filter: blur(0px); 
    font-weight: bold;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    border-top: solid 5px #00264b;
}

header.minimized {
    position: fixed; 
    top: -100px; 
    background-color: #fff; 
    padding: 5px 10px; 
    width: 100%;
    border-top: none;
    transition: top 0.5s ease;
}

header.minimized.active {
    top: 0; 
}

header.minimized nav ul {
    opacity: 0; 
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease; 
}

header.minimized.active nav ul {
    opacity: 1; 
    transform: translateY(0); 
}

header.minimized .logo{
    display: none;

}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
}
.logo{
    padding: 5px;
}
.logo img {
    width: 200px;
    height: auto; 
    max-width: 250px; 
}

header .logo-minimizado{
    display: none;
    width: 50px;
    padding: 5px;
}

header.minimized .logo-minimizado{
    display: inherit;
}

header.minimized .logo-minimizado img{
    mix-blend-mode: multiply;
}

header.minimized .menu-toggle{
    top: 10px;
    margin-right: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #071d34;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover {
    color: #20949a;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 25px;
    width: 30px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 40px;
    z-index: 999;
}

.menu-toggle div {
    height: 4px;
    background-color: #071d34;
    border-radius: 5px;
}


#inicio .swiper {
    width: 100%;
    height: calc(100vh - 115px);
    position: relative;
    padding-top: 93.8px;
}

#inicio .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#inicio .swiper-button-prev,
#inicio .swiper-button-next {
    color: #fff; 
    font-size: 2em; 
    width: 50px; 
    height: 50px; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centra los botones verticalmente */
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#inicio .swiper-button-prev {
    left: 20px; /* Distancia del borde izquierdo */
}

#inicio .swiper-button-next {
    right: 20px; /* Distancia del borde derecho */
}

/* Estilo para los botones cuando se pasa el mouse */
#inicio .swiper-button-prev:hover,
#inicio .swiper-button-next:hover {
    transform: translateY(-50%) scale(1.1); /* Aumenta el tamaño ligeramente */
}

/* Estilo para las flechas dentro de los botones */
#inicio .swiper-button-prev::after,
#inicio .swiper-button-next::after {
    font-size: 2em; /* Tamaño de las flechas */
    color: #fff; /* Color blanco para las flechas */
}

/* Asegura que los botones no se superpongan en pantallas pequeñas */
@media (max-width: 768px) {
    #inicio .swiper-button-prev,
    #inicio .swiper-button-next {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
}

/* Paginación y scrollbar */
#inicio .swiper-pagination {
    position: absolute;
    bottom: 10px;
    text-align: center;
    z-index: 10;
}

#inicio .swiper-scrollbar {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Estilo para los títulos y el contenido */
h1, h2 {
    text-align: center;
    font-size: 2.5em;
    color: #071d34;
}

h1 {
    margin-top: 0;
    font-size: 3em;
}

p {
    font-size: 1.2em;
    text-align: center;
    margin: 0 10%;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #071d34;
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        justify-content: flex-start;
        display: none; 
        width: 100%;
        text-align: center;
    }

    nav.active ul {
        display: flex; 
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    header{
        padding: 10px 10px;
    }
}

/* Estilo para la sección de contacto */
#contacto {
    background-color: #f4f4f9; /* Fondo suave para la sección */
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

#contacto h2 {
    font-size: 2.5em;
    color: #071d34;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-form {
    flex: 1;
    max-width: 100%;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px); /* Sutil elevación al pasar el mouse */
}

.contact-form h3 {
    font-size: 1.6em;
    color: #071d34;
    margin-bottom: 20px;
}

.contact-form label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #071d34; /* Cambia el borde al enfocarse */
}

.contact-form button {
    background-color: #071d34;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    padding: 14px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #071d34;
}

.contact-form button:active {
    transform: scale(0.98);
}

.contact-details {
    margin-top: 30px;
    font-size: 1.1em;
}

.contact-details h4 {
    font-size: 1.4em;
    color: #071d34;
    margin-bottom: 15px;
    text-align: left;
}

.contact-details ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.contact-details li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-details li i {
    margin-right: 10px;
    color: #071d34;
}

.contact-details li a {
    color: #071d34;
    text-decoration: none;
}

.contact-details li a:hover {
    color: #071d34;
}

/* Estilo para el mapa */
.google-map {
    flex: 1;
    max-width: 45%;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.google-map iframe:hover {
    transform: scale(1.02); /* Efecto sutil de escala al pasar el mouse */
}

/* Estilo para los botones de llamada a la acción */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.cta-buttons .btn {
    display: flex;
    align-items: left;
    justify-content: center;
    padding: 12px;
    font-size: 1.2em;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.cta-buttons .doctoralia-btn {
    background-color: #0093a4; /* Color característico de Doctoralia */
}

.cta-buttons .doctoralia-btn:hover {
    background-color: #004c8c; /* Fondo más oscuro cuando se pasa el ratón */
}

.cta-buttons .doctoralia-btn i {
    margin-right: 10px;
}

a.instagram-button:hover {
    opacity: 0.8;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Apila los elementos en pantallas pequeñas */
        align-items: center;
    }

    .contact-form,
    .google-map {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .google-map iframe {
        height: 250px; /* Ajusta el tamaño del mapa */
    }
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px; /* Distancia desde la parte inferior */
    right: 20px; /* Distancia desde la derecha */
    background-color: #25D366; /* Color de WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 50%; /* Hace el botón completamente redondo */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Aumenta el tamaño al pasar el mouse */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* SECCIÓN ABOUT - FONDO CLARO Y MEJOR TIPOGRAFÍA PARA PÁRRAFOS */
#acerca {
    background: #ffffff;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    width: 100%;
}

/* IMAGEN REDONDEADA DEL DOCTOR */
.about-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px; /* Borde redondeado para suavizar la imagen */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidad */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-left img:hover {
    transform: scale(1.05); /* Efecto de escala al pasar el mouse */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2); /* Sombra más intensa al hacer hover */
}

/* COLUMNA DE TEXTO */
.about-right {
    flex: 2;
    color: #222;
    max-width: 600px;
}

/* TÍTULOS - CONSERVAN TIPOGRAFÍA DEL SITIO */
.about-right h1,
.about-right h2,
.about-right h3 {
    font-family: inherit; /* Se mantiene la tipografía original */
}

.about-right h1 {
    font-size: 2.4em;
    color: #071d34;
    margin-bottom: 10px;
    font-weight: bold;
}

.about-right h2 {
    font-size: 1.5em;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-right p,
.about-right ul {
    font-family: 'Poppins', sans-serif; 
    text-align: left;
    margin-bottom: 18px;
    color: #333;
    font-size: 1.2em;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

/* FRASE DESTACADA */
.about-right blockquote {
    font-style: italic;
    color: #222;
    border-left: 5px solid #0056b3;
    background: #f3f9ff;
    padding: 15px;
    margin: 25px 0;
    font-size: 1.3em;
    line-height: 1.5;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

blockquote i {
    font-size: 1.4em;
    color: #0056b3;
}

/* LISTA DE EXPERIENCIA */
.about-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef5ff;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.info-box i {
    font-size: 1.5em;
    color: #0056b3;
}

/* BOTÓN WHATSAPP */
.btn-about {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: white;
    padding: 14px 22px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-family: inherit; /* Conserva la tipografía del sitio */
}

.btn-about i {
    margin-right: 10px;
    font-size: 1.4em;
}

.btn-about:hover {
    background: #1EBE5D;
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    #acerca {
        text-align: center;
        padding: 50px 20px;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-right {
        max-width: 100%;
    }
    
}


.video-wrapper {
    display: flex;
    justify-content: center; /* Centra el video horizontalmente */
    align-items: center;
    width: 100%;
    max-width: 800px; /* Ajusta el ancho máximo del video */
    margin: 0 auto; /* Centra el contenedor */
    position: relative;
    cursor: pointer;
}

.youtube-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Mantiene la proporción */
    border-radius: 8px; /* Igual que el iframe */
    display: block;
}

/* Cuando el video se carga, mantén el mismo estilo */
.video-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Mantiene la proporción del video */
    border-radius: 8px; /* Igual que la miniatura */
}

/* Estilos generales para la sección de testimonios */
.testimonios-section {
    background-color: #f4f7fc;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* Título principal */
.testimonios-title {
    font-size: 2.2rem;
    color: #071d34;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Introducción */
.testimonios-intro {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
    margin:0px;
    margin-bottom: 20px;
}

/* Descripción extendida */
.testimonios-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin:0px;
    margin-bottom: 30px;
}

/* Contenedor de video */
.video-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.youtube-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.youtube-thumbnail:hover {
    transform: scale(1.05);
}

/* Estilos generales para la sección de testimonios */
.testimonios-section {
    background-color: #f4f7fc;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* Título principal */
.testimonios-title {
    font-size: 2.2rem;
    color: #071d34;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Introducción */
.testimonios-intro {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Descripción extendida */
.testimonios-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Contenedor de video */
.video-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.youtube-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.youtube-thumbnail:hover {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #071d34;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: #071d34;
    color: white;
}

#inicio .slider-img{
    object-fit: cover;
    object-position: left center;
}

#servicios {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
}

#servicios h2 {
    font-size: 2.2em;
    color: #071d34;
    margin-bottom: 30px;
}

/* Contenedor grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

/* Tarjetas de servicio */
.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 52, 0.6);
}

.service-card p {
    position: relative;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    z-index: 1;
}

/* Efecto hover */
.service-card:hover {
    transform: scale(1.05);
}

.swiper-slide {
    position: relative;
    text-align: center;
}

#inicio .slider-img {
    width: 100%;
    height: 100vh; /* Ajusta según el diseño */
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #062e51;
    padding: 20px;
    border-radius: 10px;
}

#inicio .text-overlay.slider1 h3{
    color: #7f7f7f;
}

#inicio .text-overlay.slider1{
    text-align: center;
}

#inicio .text-overlay p{
    text-align: left;
    margin: 0px;
}

/* Estilos para escritorio: alineado a la derecha y sin fondo */
@media (min-width: 768px) { /* Se aplica en tablets y escritorio */
    .text-overlay {
        left: auto;
        right: 5%;
        background: none; /* Elimina el fondo */
        text-align: left;
        width: 60%; /* Ajusta según el diseño */
    }

    .text-overlay h2{
        font-size: 3.5em;
        margin-bottom: 0px;
    }

    .text-overlay h3{
        font-size: 2em;
    }

    .text-overlay li{
        font-size: 18px;
        margin-bottom: 5px;
    }
}


@media (max-width: 767px) { 
    .nav-bar.active{
        background-color: #ffffff;
        width: 100%;
        position: absolute;
        top: 16px;
        left: 0;
    }
    #inicio .text-overlay {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        text-align: left;
        width: 80%;
    }

    #inicio .text-overlay.slider1{
        text-align: center;
        background-color: rgba(255, 255, 255, 0.8);
        top: 70%;
    }

    #inicio .text-overlay.slider1 h2{
        font-size: 1.2em;
    }
}


.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0077b6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #005f8d;
}
/* Estilos para la sección de testimonios */
.testimonios-section {
    padding: 40px 0;
    background-color: #f7f7f7;
    text-align: center;
    overflow: hidden; /* Evita que el contenido se desborde */
}

#testimonios .swiper {
    max-width: 100%;
    height: auto;
}

#testimonios  .swiper-wrapper {
    display: flex;
    align-items: center;
}

#testimonios  .swiper-slide {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 300px; /* Ajusta la altura mínima según el tamaño del contenido */
    box-sizing: border-box;
}

#testimonios  .testimonial-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%; /* Asegura que el testimonio ocupe todo el espacio disponible */
    max-width: 400px; /* Limita el ancho máximo para evitar desbordes */
    box-sizing: border-box;
}

#testimonios  .testimonial-content:hover {
    transform: translateY(-10px);
}

#testimonios  h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

#testimonios  p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

#testimonios  .stars {
    font-size: 1.5em;
    color: #ffbc00; /* Color dorado para las estrellas */
}

/* Estilo para los botones de navegación */
#testimonios  .swiper-button-prev,
#testimonios .swiper-button-next {
    color: #00264b;
}
