/* ===== VARIABLES GLOBALES ===== */
:root {
    /* Colores */
    --primary-blue: #0078d7;
    --dark-blue: #005bb5;
    --accent-orange: #ff6b00;
    --dark-orange: #e05e00;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #777;
    --bg-light: #f8f9fa;
    --bg-blue-light: #e6f0fa;

    /* Sombras */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);

    /* Transiciones */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
}

/* ===== ESTILOS BASE ===== */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2, h3, .cta-button {
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER Y NAVEGACIÓN RESPONSIVE ===== */
.top-banner {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

/* Estilos del menú hamburguesa */
.hamburger {
    display: none; /* Oculto por defecto en desktop */
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Estado activo del menú hamburguesa */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    transform: translateY(8px) rotate(90deg);
}

.hamburger.is-active .hamburger-inner::after {
    opacity: 0;
}

/* Navegación principal */
.top-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1.5rem;
}

.top-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.top-nav a:hover {
    color: var(--primary-blue);
}

.top-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease-in-out;
}

.top-nav a:hover::after {
    width: 100%;
}

/* Estilos para móviles */
@media (max-width: 1024px) {
    .logo {
        height: 50px;
    }

    .hamburger {
        display: block; /* Mostrar hamburguesa en móvil */
    }

    .top-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding: 1rem 0;
    }

    .top-nav.is-active {
        transform: translateY(0);
    }

    .top-nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .top-nav li {
        width: 100%;
        text-align: center;
    }

    .top-nav a {
        display: block;
        padding: 0.75rem;
        font-size: 2rem;
    }

    .top-nav a::after {
        display: none;
    }

    .top-nav .cta-button {
        display: block;
        margin: 1rem auto 0;
        width: 80%;
        text-align: center;
    }
}


/* ===== HERO BANNER ===== */
.hero-banner {
    background: url('../images/banner1.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden; /* Keep overflow hidden for the main banner to prevent page scroll issues */
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
}

.doctor-photo-container {
    flex: 0 0 350px; /* Base width for larger screens */
    margin-left: -50px; /* Original offset */
    position: relative;
    overflow: visible; /* Changed to hidden to clip the part outside the container if needed */
    border-radius: 8px; /* Added for a cleaner look if the image is within its bounds */
}

.doctor-photo {
    width: 100%; /* Keep width 100% of its container */
    height: auto;
    max-width: none;
    transform: scale(1.4); /* Original scale for the "out of container" effect */
    transform-origin: center center;
    display: block; /* Ensures no extra space below the image */
}

.banner-text {
    flex: 1;
    text-align: right;
    padding: 2rem;
    background: rgba(0, 56, 168, 0.7);
    border-radius: 8px;
}

.banner-text h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-text p {
    font-size: 1.5rem; /*  */
}

/* Responsive Hero Banner Adjustments */

/* For screens between 769px and 1024px (tablet landscape, split screen desktop) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-banner .banner-content {
        flex-direction: column; /* Stack image above text */
        align-items: center;
        text-align: center;
        padding: 2rem 1rem; /* Adjust padding for mobile */
    }
    .doctor-photo-container {
        flex: 1 1 auto;
        width: 100%;
        max-width: 280px; /* Set a max-width for the container on mobile */
        margin-left: 0;
        margin-bottom: 10px; /* Space between image and text */
        /* Allow for slight overflow if the image needs to be larger than its container */
        overflow: visible;
    }

    .doctor-photo {
        transform: scale(2); /* Increase scale for the image to make it larger */
        /* Potentially adjust transform-origin if the image looks off-center after scaling */
    }

    .banner-content {
        gap: 2rem; /* Reduce gap between image and text */
        padding: 0 1rem; /* Add some padding to the container */
        max-width: 700px; /* Set a max-width for the container on mobile */
    }

    .banner-text {
        padding: 1.5rem; /* Adjust padding for text on mobile */
        text-align: center;
        width: 100%; /* Ensure text block takes full width */
        box-sizing: border-box; /* Include padding in the width calculation */
    }
    .banner-text h1 {
        font-size: 3rem; /* Adjust heading size for mobile */
    }
    .banner-text p {
        font-size: 1.5rem; /* Adjust heading size for mobile */
    }
}

/* For screens 768px and smaller (mobile and smaller tablets) */
@media (max-width: 768px) {
    .hero-banner .banner-content {
        flex-direction: column; /* Stack image above text */
        align-items: center;
        text-align: center;
        padding: 2rem 1rem; /* Adjust padding for mobile */
    }

    .doctor-photo-container {
        flex: 1 1 auto;
        width: 100%;
        max-width: 280px; /* Set a max-width for the container on mobile */
        margin-left: 0;
        margin-bottom: 10px; /* Space between image and text */
        /* Allow for slight overflow if the image needs to be larger than its container */
        overflow: visible;
    }

    .doctor-photo {
        width: 100%;
        height: auto;
        transform: scale(1.5); /* Significantly increase scale for mobile */
        transform-origin: center center;
        /* Ensure the image doesn't get cut off if it overflows */
        object-fit: contain; /* or 'cover' depending on desired crop */
    }

    .banner-text {
        padding: 1.5rem; /* Adjust padding for text on mobile */
        text-align: center;
        width: 100%; /* Ensure text block takes full width */
        box-sizing: border-box; /* Include padding in the width calculation */
    }

    .banner-text h1 {
        font-size: 2rem; /* Adjust heading size for mobile */
    }

    .banner-text .conditions,
    .banner-text .approach {
        font-size: 0.95rem; /* Adjust paragraph font size */
    }
}

/* For very small mobile screens */
@media (max-width: 480px) {
    .doctor-photo-container {
        max-width: 240px; /* Further reduce max-width for very small screens */
    }

    .doctor-photo {
        transform: scale(1.35); /* Maintain a good scale for smallest screens */
    }

    .banner-text h1 {
        font-size: 1.6rem; /* Smaller heading for very small screens */
    }

    .banner-text {
        padding: 1rem; /* Less padding for text on smallest screens */
    }
}

/* ===== BOTONES ===== */
.cta-button, .about-button, .condition-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}


.about-button {
    margin-top: 1rem;
}

.condition-button {
    padding: 10px 25px;
}

.cta-button:hover, .about-button:hover, .condition-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== SECCIÓN SOBRE MÍ ===== */
.about-banner {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.about-text h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-photo-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.about-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-photo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Sobre Mí */
@media (max-width: 1024px) {
    .about-photo {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text,
    .about-photo-container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .about-photo {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .about-photo {
        max-width: 250px;
    }
}

/* ===== SECCIÓN DE SERVICIOS ===== */
.conditions-section {
    padding: 5rem 0;
    background-color: var(--bg-blue-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.carousel-container {
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0;
    cursor: grab;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    width: max-content;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-prev, .carousel-next {
    background: var(--dark-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
}

.condition-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.carousel-container .condition-card {
    flex: 0 0 280px;
    margin-right: 1rem;
    scroll-snap-align: start;
}

.condition-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.condition-icon img {
    width: 100px;
    height: 100px;
}

.condition-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.highlight-text {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--dark-blue);
    text-transform: uppercase;
}

/* Responsive Servicios */
@media (max-width: 768px) {
    .carousel-container .condition-card {
        flex: 0 0 85vw;
        margin-right: 1rem;
    }

    .carousel-controls {
        display: none;
    }
}

/* ===== BOTÓN DE CONSULTA GENERAL ===== */
.carousel-consultation-button {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition-fast);
    text-align: center;
}

.carousel-consultation-button:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Ajuste para secciones de servicios */
.services-section .carousel-wrapper {
    margin-bottom: 1rem;
}

/* Mantener el botón original en las tarjetas */
.condition-button {
    /* Estilos existentes */
    margin-top: 1rem;
}
/* Contenedor del botón de consulta */
.consultation-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2rem auto 0;
    padding: 0 1rem;
    text-align: center; /* Añade esto para mayor seguridad */
}
.consultation-button-container .cta-button {
    min-width: 200px; /* Ancho mínimo para que no se vea muy estrecho */
    text-align: center;
}
/* ===== SECCIÓN DE TESTIMONIOS ===== */
.testimonials-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
    text-align: center;
}

.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonials-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2rem 0;
    cursor: grab;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    padding: 0 1rem;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 380px;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    height: auto;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    flex-grow: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.patient-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.stars span {
    color: #FFD700;
    font-size: 1.2rem;
}

.patient-details {
    text-align: left;
}

.patient-details h4 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1.1rem;
}

.patient-details p {
    margin: 0.3rem 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonials-controls button {
    background: var(--dark-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-controls button:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
}

/* Responsive Testimonios */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }

    .testimonials-track {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85%;
        min-width: 250px;
        max-width: 350px;
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .patient-photo {
        width: 50px;
        height: 50px;
    }

    .testimonials-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 90%;
        min-width: 220px;
        padding: 1.2rem;
    }

    .testimonials-track {
        gap: 0.8rem;
    }

    .patient-info {
        gap: 0.8rem;
    }

    .patient-details h4 {
        font-size: 1rem;
    }

    .patient-details p {
        font-size: 0.8rem;
    }
}

/* ===== SECCIÓN CITAS ONLINE ===== */
.online-appointments-section {
    background-color: var(--bg-blue-light);
    padding: 4rem 0;
    text-align: center;
}

.online-appointments-content {
    max-width: 800px;
    margin: 0 auto;
}

.online-appointments-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.online-appointments-cta {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.online-appointments-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.whatsapp-button:hover {
    background-color: #1DA851;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.phone-number {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
}

.phone-number a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.phone-number a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Responsive Citas Online */
@media (min-width: 769px) {
    .online-appointments-contact {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .online-appointments-text {
        font-size: 1.1rem;
    }

    .online-appointments-cta {
        font-size: 1rem;
    }

    .whatsapp-button {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }

    .phone-number {
        font-size: 1rem;
    }
}

/* ===== SECCIÓN ACADÉMICA ===== */
.academic-section {
    background-color: white;
    padding: 5rem 0;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    justify-items: center;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    transition: var(--transition-fast);
    border-radius: 8px;
}

.logo-item img {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(50%);
    transition: var(--transition-fast);
}

.logo-item:hover {
    background-color: rgba(0, 91, 181, 0.05);
}

.logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.15);
}

/* Responsive Académica */
@media (max-width: 768px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .logo-item img {
        max-width: 120px;
    }
}

/* ===== FOOTER ===== */
.modern-footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 2rem 0 2rem;
    text-align: center;
}

.footer-header {
    /* Removed margin-top if any, or adjusted spacing implicitly by reducing footer padding */
    margin-bottom: 1rem; /* Adjust as needed, originally it was probably default */
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: -2rem;
}

.footer-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.social-icons a {
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 22px;
    height: 22px;
}
.consultorios-title {
    font-size: 2rem; /* Increased font size for consultorio names */
    margin-top: 0.2rem;
    margin-bottom: 1rem; /* Espacio entre consultorios y tarjetas de consultorios */
}

.consultorios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem; /*Espacio entre columnas*/
    max-width: 1200px;
    margin: 0 auto;
}

.consultorio {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.consultorio:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.consultorio h4 { /* Targeting consultorio names */
    font-size: 1.5rem; /* Increased font size for consultorio names */
    margin-top: 0.2rem; /* Margen superior del texto respecto a tarjeta */
    margin-bottom: 0.5rem; /* Espacio despues del texto */
}

.consultorio p { /* Targeting address lines */
    line-height: 1.2; /* Decreased line height for tighter spacing */
    margin-bottom: 0.2rem; /* Reduce space between address lines */
}

.consultorio p:last-of-type { /* To avoid excessive bottom margin on the last line of address */
    margin-bottom: 1rem;
}

.consultorio p a { /* Targeting phone number links */
    color: white; /* Changed color to white */
    font-size: 1.15rem; /* Slightly larger font size for phone number */
    font-weight: 700; /* Made it bold for visibility */
    text-decoration: none; /* Remove underline */
}

.consultorio p a:hover {
    text-decoration: underline; /* Add underline on hover for phone numbers */
}

.map-image-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-height: 220px;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-title {
        font-size: 1.8rem;
    }

    .consultorios-grid {
        grid-template-columns: 1fr;
    }

    .map-image-container {
        max-height: 180px;
    }
}

/* ===== WIDGET DE WHATSAPP ===== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 80px;
    height: 80px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.whatsapp-widget img {
    width: 48px;
    height: 48px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive WhatsApp Widget */
@media (max-width: 1024px) {
    .whatsapp-widget {
        width: 100px;
        height: 100px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-widget img {
        width: 50px;
        height: 50px;
    }
}

/* ===== ESTILOS PARA PÁGINA SOBRE MÍ DR CHRISTIAN RAMIREZ ===== */
.about-intro,
.valores-section,
.formacion-section,
.carrera-section,
.sociedades-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.about-intro .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.about-intro .about-text {
    flex: 1 1 50%;
    max-width: 600px;
}

.about-intro .about-photo-container {
    flex: 1 1 40%;
    text-align: center;
}

.about-intro .about-photo {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Valores */
.valores-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.valores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

.valor-item {
    flex: 1 1 200px;
    max-width: 250px;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 91, 181, 0.1);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-8px);
}

.valor-item img {
    height: 100px;
    margin: 0.5rem auto;
}

.valor-item h3 {
    font-size: 1.5rem; /* Más grande que el tamaño original */
    color: var(--primary-blue); /* Color azul usando la variable definida */
    margin-top: 0.5rem; /* Asegurar espacio reducido después del título */
    margin-bottom: 0.5rem;
    transition: var(--transition-fast); /* Transición suave */
}
.valor-item p {
    margin-top: 0.5rem; /* Asegurar espacio reducido después del título */
    line-height: 1.4; /* Opcional: ajustar interlineado si es necesario */
}

/* Efecto hover para el título */
.valor-item:hover h3 {
    color: var(--dark-blue); /* Color azul más oscuro al hacer hover */
}

/* Timeline */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-blue);
}

.timeline-item:last-child::before {
    height: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 4px solid white;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.institucion {
    font-weight: 500;
    color: var(--text-dark);
}

.periodo {
    color: var(--text-light);
    font-style: italic;
}

/* Sociedades */
.sociedades-lista {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.sociedades-lista li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
}

.sociedades-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsive Página Sobre Mí */
@media (max-width: 768px) {
    .about-intro .about-content {
        flex-direction: column;
    }

    .about-intro .about-text,
    .about-intro .about-photo-container {
        flex: 1 1 100%;
    }

    .valor-item {
        flex: 1 1 100%;
        max-width: none;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}

/* ===== ESTILOS PARA PÁGINA DE CITAS - DISEÑO DE 2 COLUMNAS ===== */
.appointment-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}
.appointment-page-content h1 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.4rem; /* Aumentado de 1.2rem a 1.4rem */
    color: var(--text-medium);
    line-height: 1.6;
}
.appointment-left-column,
.appointment-right-column {
    flex: 1;
    min-width: 300px;
}

.online-appointments-box,
.doctoralia-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    font-size: 1.1rem; /* Tamaño de fuente uniforme para ambas cajas */
    line-height: 1.6; /* Interlineado consistente */
}

.online-appointments-box h2,
.doctoralia-box h2 {
    color: var(--dark-blue);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Texto general para ambas columnas */
.online-appointments-box p,
.doctoralia-box p {
    font-size: 1.4rem; /* Mismo tamaño que el definido en el contenedor */
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Estilos específicos para la columna izquierda */
.benefits-list {
    margin-top: 2rem;
}

.benefits-list h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefits-list ul {
    padding-left: 1.5rem;
    color: var(--text-medium);
    font-size: 1.1rem; /* Igual al texto general */
}

.benefits-list li {
    margin-bottom: 0.5rem;
}

/* Responsive para página de citas */
@media (max-width: 1024px) {
    .appointment-columns {
        flex-direction: column;
    }

    .appointment-left-column,
    .appointment-right-column {
        flex: 1 1 100%;
    }

    .online-appointments-box,
    .doctoralia-box {
        padding: 1.5rem;
        font-size: 1rem; /* Ajuste para móviles */
    }

    .online-appointments-box p,
    .doctoralia-box p,
    .benefits-list ul {
        font-size: 1rem; /* Ajuste para móviles */
    }
}
