:root {
    --azul-oscuro: #1d3557;
    --menta: #b8d8d0;
    --texto: #2c3e50;
    --azul: #457b9d;
    --azul-claro: #43abec;
}

html, body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden; /* Evita que la página se mueva de lado */
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px 40px; /* Aumentado para dar más espacio lateral */
    height: auto !important;
}

.container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Aumentado para dar más espacio lateral */
    height: auto;
}

.main-header {
    display: flex;
    height: 90px;
    background: #f8fafc;
    align-items: stretch;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #ddd;
    z-index: 1002;
}

.logo-box {
    background-color: var(--azul-oscuro);
    width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100% !important;
}

.main-logo { height: 60px; }

.nav-container { 
    flex: 1; 
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.nav-menu li { 
    flex: 1; 
    height: 100%;
}

.nav-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    text-decoration: none;
    color: var(--azul-oscuro);
    background: var(--menta);
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    font-weight: bold;
    font-size: 0.95rem;
    border-left: 1.5px solid white;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background: var(--azul-oscuro);
    color: white;
}

/* ============================================================
   SECCIÓN HERO (INICIO)
============================================================ */
.hero-full {
    position: relative;
    width: 100%;
    height: 100vh; /* Abarca toda la altura de la pantalla */
    background-color: #f1f7f5; /* Fondo base */
    display: flex;
    align-items: flex-start; /* Subimos el bloque de texto */
    padding-top: 12vh; /* Espacio desde la parte superior */
    overflow: hidden;
}

.hero-text-box {
    max-width: 900px; /* Aumentado significativamente para evitar saltos de línea */
    position: relative;
    z-index: 10; /* Por encima de la foto */
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9); /* Refuerzo de legibilidad */
}

.hero-image-full {
    position: absolute;
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0; 
    height: 100%; 
    width: 100%; 
    z-index: 1; /* Fondo real, detrás de la caja de texto */
    pointer-events: none;
}

.hero-image-full img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center right; /* Mantiene el rostro de la doctora visible a la derecha */
}

/* .brand-name span {
    display: inline !important;
    color: #457b9d;
    font-weight: 400;
}

.brand-name {
    font-size: 2.8rem;
    color: #457b9d;
    margin-bottom: 5px;
    font-weight: 700;
    white-space: nowrap;
} */

.brand-name {
    font-size: 2.8rem;
    color: #457b9d;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 700;
    white-space: nowrap; /* Evita que el nombre se divida en dos líneas */
}

.brand-name span {
    display: inline !important; /* Forzamos que se mantenga en la misma línea */
    color: #457b9d;
    font-weight: 400;
    text-align: center;
}

.subtitle {
    display: inline-flex; /* Ajustado para que las líneas nazcan junto al texto */
    align-items: center;
    gap: 15px;
    font-size: 1.6rem; /* Tamaño reducido para mejor jerarquía visual */
    color: #457b9d;
    margin-top: 0;
    margin-bottom: 20px;
    margin-left: 30px;
    font-weight: 300; /* Tipografía más suave y elegante */
    font-style: italic; /* Toque de elegancia extra */
    white-space: nowrap; /* Evita que la especialidad se divida en dos líneas */
}

.title-divider{
    border: none;
    border-top: 3px solid var(--azul-claro);
    width: 100%;
    margin: 5px 0;
}

.subtitle::before,
.subtitle::after {
    content: "";
    width: 40px; /* Líneas laterales claras y definidas */
    height: 2.4px;
    background-color: var(--azul-claro);
}

.main-headline {
    font-size: 2.4rem;
    color: #1d3557;
    margin-bottom: 25px; /* Reducido para que el botón no se corte abajo */
    line-height: 1.3;
    font-weight: 600;
}

.cta-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px; /* Espacio ajustado para que suba el conjunto botón/QR */
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--azul-oscuro);
    width: 100%;
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1000;
}

.footer-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 0.8rem;
}

.btn-cita {
    background-color: var(--menta);
    color: var(--azul-oscuro);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.qr-code {
    width: 80px;
    background: white;
    padding: 5px;
    border-radius: 10px;
}

.with-watermark {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding-top: 0;
}

.with-watermark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/icons-watermark.png');
    background-repeat: repeat;
    background-size: 800px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: moveWatermark 60s linear infinite;
}

/* Aseguramos que el contenido principal flote sobre el fondo */
.hero-flex, .with-watermark > * {
    position: relative;
    z-index: 10; /* Elevamos el contenido sobre la foto de fondo */
    height: 100dvh;
    align-content: center;
}

@keyframes moveWatermark {
    from { background-position: 0 0; }
    to { background-position: 800px 800px; }
}

/* --- SECCIÓN SERVICIOS --- */
.services-container {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.services-main-title {
    color: var(--azul-oscuro);
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    height: auto !important;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    background-color: var(--menta);
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.icon-box img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    display: block !important;
    filter: brightness(0) saturate(100%) invert(18%) sepia(21%) saturate(3635%) hue-rotate(191deg) brightness(93%) contrast(96%) !important;
}

.service-card p {
    color: var(--azul-oscuro);
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 150px;
    line-height: 1.2;
 }

/* --- REDISEÑO DE PERFIL PROFESIONAL --- */
.perfil-section {
    background-color: #f1f7f5;
}

.perfil-grid {
    display: grid !important;
    background: transparent !important; /* Mantenemos transparente para que el watermark se vea a través de los huecos */
    grid-template-columns: 1fr 1fr; /* Equilibrio 50/50 para que la foto sea grande */
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px; /* Reducimos el padding superior */
    gap: 50px;
    align-items: start; /* Alinea los elementos al inicio (arriba) */
    height: auto !important;
}

.perfil-info {
    padding-right: 20px;
}

.perfil-title {
    color: #1d3557;
    font-size: 3rem;
    font-weight: 800;
    margin-top: 0; /* Sube el título para alinearlo con la foto */
    margin-bottom: 5px;
}

.perfil-subtitle {
    color: #457b9d;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--menta);
    display: inline-block;
    padding-bottom: 10px;
}

.professional-id-card {
    margin-top: 20px;
    text-align: left;
}

.professional-id-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--texto);
    margin: 0 0 10px 0;
}

.professional-id-card p:last-child {
    margin-bottom: 0;
}

.perfil-footer-icon {
    text-align: center;
    margin-top: 75px;
}

.final-medical-icon {
    width: 250px; /* Icono más grande */
    height: auto;
    opacity: 0.8;
}



.perfil-side-column {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espacio entre la foto y la galería */
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--menta);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.card-title {
    color: var(--azul-oscuro);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.perfil-description p:not(.card-title) {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--texto);
}

.perfil-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.perfil-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #1d3557;
    font-size: 1rem;
    line-height: 1.6;
}

.perfil-list.small li {
    font-size: 1rem;
    margin-bottom: 12px;
}

/* ============================================================
   RESPONSIVIDAD (AJUSTES PARA CELULARES)
   ============================================================ */
@media (max-width: 1200px) {
    body{
        min-height: 100vh;
        position: relative;
    }

    footer{
        position: absolute; 
        bottom: 0;
    }

    .hero-flex, .services-main-title, .services-grid, .perfil-grid, .with-watermark > * {
        position: relative;
        z-index: 10;
        height: auto;
        align-content: center;
    }

    .hero-full{
        height: 100%;
    }

    .hero-image-full img {
        height: 100%;    /* Fuerza a la imagen a medir lo mismo que el contenedor */
        width: 100%;     /* Opcional: para que también ocupe todo el ancho */
        object-fit: cover; /* Evita que la imagen se deforme al estirarse */
    }

    .with-watermark > * {
        width: auto;
        height: auto;
    }

    .perfil-grid{
        width: auto;
        height: auto;
    }

    .container{
        width: auto;
        height: auto;
    }

    .container1 {
        max-width: 40%;
        margin: 0 auto;
        padding: 0 40px; /* Aumentado para dar más espacio lateral */
        height: auto;
    }

    .ai-style-change-1 {
    .hero-full& {
        align-items: stretch;
    }
}

    .brand-name {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
        padding: 0;
        margin: 0 auto;
    }

    .main-headline {
        font-size: 1.
    }

    /* Header y Navegación */
    .main-header {
        justify-content: space-between;
        align-items: center;
        padding: 0 20px !important;
        position: relative;
        height: 80px; /* Un poco más compacto en móvil */   
        z-index: 1002; /* Asegura que el header esté por encima del menú */
        background: var(--azul-oscuro);
    }
    
    .logo-box {
        width: 160px; 
        background-color: var(--azul-oscuro); /* Mantenemos el fondo oscuro para contraste */
    }

    .menu-toggle {
        display: flex;
        flex-direction: column; /* Arrange spans vertically */
        justify-content: space-around; /* Distribute space between lines */
        width: 30px; /* Width of the hamburger icon */
        height: 25px; /* Height of the hamburger icon */
        cursor: pointer;
        padding: 5px; /* Optional padding around the icon */
        box-sizing: content-box; /* Ensure padding doesn't affect width/height */
        position: relative; /* Necesario para posicionar los spans absolutos */
        z-index: 1004; /* Asegura que el botón esté siempre por encima del menú */
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px; /* Thickness of each line */
        background-color: #ffffff; /* Color of the lines */
        border-radius: 2px; /* Slightly rounded corners for the lines */
        transition: all 0.3s ease; /* Smooth transition for animations (e.g., when opening/closing) */
        position: absolute; /* Permite superponer y rotar las líneas */
        left: 0;
    }

    /* Posiciones iniciales de las líneas de la hamburguesa */
    .menu-toggle span:nth-child(1) {
        top: 0;
    }
    .menu-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    .menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    /* Transformación a 'X' cuando el menú está activo */
    .menu-toggle.is-active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0; /* Oculta la línea del medio */
    }
    .menu-toggle.is-active span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .nav-container {
        position: absolute;
        top: 80px; /* El menú comienza en la parte superior, detrás del header */
        right: -100%; /* Inicialmente oculto a la derecha del viewport */
        width: 100%;
        background: var(--menta);
        flex-direction: column;
        z-index: 999; /* Coloca el menú detrás del header */
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Propiedades para la animación de despliegue */
        opacity: 0; /* Inicialmente transparente */
        visibility: hidden; /* Oculta el elemento para accesibilidad y evitar interacción */
        transition: right 0.5s ease-out, opacity 0.5s ease-out, visibility 0.5s; /* Transición suave para todas las propiedades */
        pointer-events: none; /* Deshabilita la interacción cuando está oculto */
    }

    .nav-container.active {
        right: 0; /* Se despliega desde la derecha hacia la izquierda */
        opacity: 1; /* Completamente visible */
        visibility: visible; /* Hace el elemento visible */
        pointer-events: auto; /* Habilita la interacción cuando está activo */
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }

    .nav-menu a {
        padding: 15px !important;
        font-size: 1rem;
        height: auto !important; /* Quitamos la altura fija de 90px */
        border-left: none;
        border-bottom: 1px solid white;
    }
}

@media (max-width: 768px) {
    /* Header y Navegación */
    .main-header {
        justify-content: space-between;
        align-items: center;
        padding: 0 20px !important;
        position: relative;
        height: 80px; /* Un poco más compacto en móvil */   
        z-index: 1002; /* Asegura que el header esté por encima del menú */
        background: var(--azul-oscuro);
    }
    
    .logo-box {
        width: 160px; 
        background-color: var(--azul-oscuro); /* Mantenemos el fondo oscuro para contraste */
    }

    .menu-toggle {
        display: flex;
        flex-direction: column; /* Arrange spans vertically */
        justify-content: space-around; /* Distribute space between lines */
        width: 30px; /* Width of the hamburger icon */
        height: 25px; /* Height of the hamburger icon */
        cursor: pointer;
        padding: 5px; /* Optional padding around the icon */
        box-sizing: content-box; /* Ensure padding doesn't affect width/height */
        position: relative; /* Necesario para posicionar los spans absolutos */
        z-index: 1004; /* Asegura que el botón esté siempre por encima del menú */
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px; /* Thickness of each line */
        background-color: #ffffff; /* Color of the lines */
        border-radius: 2px; /* Slightly rounded corners for the lines */
        transition: all 0.3s ease; /* Smooth transition for animations (e.g., when opening/closing) */
        position: absolute; /* Permite superponer y rotar las líneas */
        left: 0;
    }

    /* Posiciones iniciales de las líneas de la hamburguesa */
    .menu-toggle span:nth-child(1) {
        top: 0;
    }
    .menu-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }
    .menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    /* Transformación a 'X' cuando el menú está activo */
    .menu-toggle.is-active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0; /* Oculta la línea del medio */
    }
    .menu-toggle.is-active span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }
    
    .container1 {
        max-width: 70%;
    }

    .nav-container {
        position: absolute;
        top: 80px; /* El menú comienza en la parte superior, detrás del header */
        right: -100%; /* Inicialmente oculto a la derecha del viewport */
        width: 100%;
        background: var(--menta);
        flex-direction: column;
        z-index: 999; /* Coloca el menú detrás del header */
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Propiedades para la animación de despliegue */
        opacity: 0; /* Inicialmente transparente */
        visibility: hidden; /* Oculta el elemento para accesibilidad y evitar interacción */
        transition: right 0.5s ease-out, opacity 0.5s ease-out, visibility 0.5s; /* Transición suave para todas las propiedades */
        pointer-events: none; /* Deshabilita la interacción cuando está oculto */
    }

    .nav-container.active {
        right: 0; /* Se despliega desde la derecha hacia la izquierda */
        opacity: 1; /* Completamente visible */
        visibility: visible; /* Hace el elemento visible */
        pointer-events: auto; /* Habilita la interacción cuando está activo */
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }

    .nav-menu a {
        padding: 15px !important;
        font-size: 1rem;
        height: auto !important; /* Quitamos la altura fija de 90px */
        border-left: none;
        border-bottom: 1px solid white;
    }

    /* Hero Inicio */
    .hero-full {
        height: auto;
        display: block;
    }
    
    .hero-text-box {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }


    .hero-flex, .services-main-title, .services-grid, .perfil-grid, .with-watermark > * {
        position: relative;
        z-index: 10; /* Elevamos el contenido sobre la foto de fondo */
        height: auto;
        align-content: center;
    }

    .services-container {
        padding: 0;
        background-color: #ffffff;
        text-align: center;
    }
    
    .brand-name {
        font-size: 1.5rem;
        white-space: normal;
    }

    .subtitle {
        font-size: 1.2rem;
        white-space: normal;
        justify-content: center;
    }

    .subtitle::before, .subtitle::after {
        width: 20px; /* Líneas más cortas en móvil */
    }

    .main-headline {
        font-size: 1.6rem;
    }

    .cta-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .hero-image-full {
        position: relative;
        width: 100%;
        height: 350px;
    }

    .hero-image-full img {
        object-position: center;
    }

    /* Grillas de Servicios y Perfil */
    .services-grid, 
    .perfil-grid, 
    .experience-grid, 
    .contact-layout-grid,
    .procedure-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Ajustes de Imagen de Perfil y Hospital */
    .perfil-side-column {
        order: -1; /* Pone la foto arriba del texto en móviles */
        width: 100%;
    }
    .perfil-photo-box, .map-container, .hospital-details-content {
        transform: none !important; /* Quita el efecto 3D en móvil para evitar recortes */
    }
    
    .map-container {
        height: 300px;
    }
}

/* --- SECCIÓN PROCEDIMIENTOS --- */
.procedimientos-main {
    background-color: #f1f7f5;
    padding: 30px 0; /* Reducido para subir el contenido */
    text-align: center;
}

.procedimientos-title {
    color: var(--azul-oscuro);
    font-size: 2.8rem;
    margin-bottom: 25px; /* Sube el título un poco más */
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.phrase-box {
    background-color: var(--menta);
    color: var(--azul-oscuro);
    padding: 20px 30px; /* Reduce el padding vertical */
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto 40px auto; /* Reduce el margen inferior */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-size: 1rem; /* Reduce el tamaño de la fuente */
    line-height: 1.6; /* Ajusta el interlineado */
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.procedure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.procedure-card {
    background-color: #ffffff;
    border-radius: 20px; /* Bordes más redondeados */
    box-shadow: 0 10px 30px rgba(29, 53, 87, 0.05); /* Sombra más sutil */
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transición más dinámica */
    border: 1px solid rgba(184, 216, 208, 0.5); /* Borde más visible */
}

.procedure-card:hover {
    transform: translateY(-10px); /* Solo elevación de la tarjeta */
    box-shadow: 0 20px 40px rgba(29, 53, 87, 0.12); /* Sombra más pronunciada al hacer hover */
    border-color: var(--azul); /* Borde azul al hacer hover */
}

.procedure-photo-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Altura fija para las fotos de procedimiento */
    overflow: hidden;
    margin-bottom: 15px; /* Espacio entre foto y pie de página */
    border-radius: 15px; /* Bordes redondeados para la foto */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra para la foto */
    transition: transform 0.4s ease; /* Transición para la escala de la imagen */
}

.procedure-photo-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Altura fija para las fotos de procedimiento */
    overflow: hidden;
}

.procedure-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px; /* Bordes redondeados para la imagen */
    transition: transform 0.4s ease; /* Transición para la escala de la imagen */
}

.procedure-card:hover .procedure-photo-wrapper img {
    transform: scale(1.1); /* Sincroniza el aumento de la imagen con la tarjeta */
}

/* Estilo para la foto con el cuadro menta */
.procedure-photo-decorated {
    position: relative; /* Necesario para los pseudo-elementos */
    z-index: 2; /* Asegura que la foto decorada esté por encima de otras */
}

.procedure-photo-decorated::before {
    content: "";
    position: absolute;
    top: 15px; left: 15px; width: 100%; height: 100%;
    background-color: var(--menta);
    border-radius: 15px; /* Consistencia con la foto */
    z-index: 1;
}

.procedure-photo-decorated::after {
    content: "";
    position: absolute;
    top: -10px; right: -10px; width: 60px; height: 60px;
    background-image: radial-gradient(var(--azul) 2px, transparent 2px);
    background-size: 12px 12px;
    z-index: 1;
}

.procedure-photo-decorated img {
    position: relative;
    z-index: 2;
    border-radius: 15px; /* Consistencia con la foto */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra para la foto */
    border: 4px solid #fff; /* Borde blanco */
}

.procedure-caption {
    font-size: 1rem;
    line-height: 1.6; /* Mejor interlineado */
    color: var(--texto);
    padding: 0 20px 25px 20px; /* Más padding inferior */
    transition: transform 0.4s ease; /* Transición suave para el movimiento del pie de página */
}

.procedure-card:hover .procedure-caption {
    transform: translateY(-5px); /* Desplazamiento adicional hacia arriba al pasar el mouse */
}

.grid-cta {
    margin-top: 0 !important;
    grid-column: 2 / -1; /* Ocupa el espacio de las últimas dos columnas */
    display: flex;
    justify-content: center; /* Centra el contenido dentro de ese espacio */
    align-self: center;
}

/* --- SECCIÓN CONTACTO --- */
.contacto-main {
    background-color: #f1f7f5; /* Fondo base para la sección de contacto */
    padding: 60px 0;
    text-align: center;
}

.contacto-title {
    color: var(--azul-oscuro);
    font-size: 2.8rem;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative; /* Para que el título esté por encima del watermark */
    z-index: 1;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mismo peso para los dos elementos */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative; /* Para que la cuadrícula esté por encima del watermark */
    z-index: 1;
    align-items: stretch; /* Iguala la altura de las columnas */
}

.map-container {
    position: relative;
    height: 100%; 
    margin-bottom: 30px;
    z-index: 1;
    perspective: 1000px; /* Necesario para el efecto 3D */
}

.map-container::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100%;
    height: 100%;
    background-color: var(--menta);
    border-radius: 20px;
    z-index: 1;
}

.map-container::after {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--azul) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1;
}

.map-container iframe {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 4px solid #fff;
    transform: rotateX(10deg); /* Efecto de inclinación 3D */
    transition: transform 0.4s ease;
}

.map-container iframe:hover {
    transform: rotateX(0deg); /* Se endereza al pasar el mouse para interactuar mejor */
}

.hospital-details-card {
    position: relative;
    text-align: left;
    z-index: 1;
    perspective: 1000px;
}

.hospital-details-card::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100%;
    height: 100%;
    background-color: var(--menta);
    border-radius: 20px;
    z-index: 1;
}

.hospital-details-card::after {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--azul) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1;
}

.hospital-details-content {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 4px solid #fff;
    height: 100%;
    box-sizing: border-box;
    transform: rotateX(5deg); /* Ligera inclinación para coherencia con el mapa */
    transition: transform 0.4s ease;
}

.hospital-details-content:hover {
    transform: rotateX(0deg);
}

.hospital-name {
    color: var(--azul-oscuro);
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hospital-address {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--texto);
    margin-bottom: 25px;
}

.hospital-photo-box {
    width: 100%;
    height: 180px; /* Ajuste para balancear el contenido */
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.hospital-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-note {
    font-size: 1.2rem;
    color: var(--azul);
    font-style: italic;
}

.contact-note a {
    text-decoration: none;
    color: var(--azul)
}
/* --- SECCIÓN TESTIMONIOS --- */
.testimonios-main {
    background-color: #f1f7f5; /* Fondo base para la sección de testimonios */
    padding: 60px 0;
    text-align: center;
}

.testimonios-title {
    color: var(--azul-oscuro);
    font-size: 2.8rem;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative; /* Para que el título esté por encima del watermark */
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative; /* Para que la cuadrícula esté por encima del watermark */
    z-index: 1;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 45px 30px 30px 30px; /* Espacio para la comilla decorativa */
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(29, 53, 87, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(184, 216, 208, 0.3);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--menta);
    font-family: serif;
    opacity: 0.3;
    z-index: 0;
}

.testimonial-card::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.05));
}

.testimonial-card:nth-child(even) {
    background-color: #f0f7ff; /* Azul muy claro para contraste alternado */
    border-left: 6px solid var(--azul);
}

.testimonial-card:nth-child(even)::after {
    border-color: #f0f7ff transparent transparent transparent;
}

.testimonial-card:nth-child(odd) {
    border-left: 6px solid var(--menta);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(29, 53, 87, 0.12);
    border-color: var(--azul);
    z-index: 2;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--texto);
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--azul);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.perfil-list li::before {
    content: "✓"; 
    color: #457b9d;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- EFECTO DE CUADROS MENTA DETRÁS DE LA FOTO --- */
.perfil-photo-box {
    position: relative;
    width: 100%;
    max-width: 550px; /* Foto mucho más grande */
    aspect-ratio: 4/3; /* Formato más horizontal (ancho/alto) */
}

/* Cuadro menta principal */
.perfil-photo-box::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background-color: var(--menta);
    border-radius: 30px;
    z-index: 1;
}

/* Cuadro de contorno decorativo */
.perfil-photo-box::after {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(var(--azul) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1; /* Ahora está detrás de la imagen (z-index 2) */
}

.perfil-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.1);
}

/* --- DISEÑO DE GALERÍA DE INSTALACIONES --- */
.tira-fotos-mini {
    background-color: transparent;
    padding: 0;
    text-align: center;
}

.titulo-mini {
    color: var(--azul-oscuro);
    margin-bottom: 30px;
    font-size: 1.4rem; /* Un poco más pequeño para el lateral */
}

.contenedor-mini {
    display: flex !important;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contenedor-mini img {
    width: 180px !important; /* Ajustadas para caber en la columna */
    height: 120px !important;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contenedor-mini img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--menta);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Color verde de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Asegura que esté por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.whatsapp-float img {
    width: 35px; /* Tamaño del icono de WhatsApp */
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Efecto de crecimiento al pasar el mouse */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}