/* ========================= MEDICAL RENOVA - ESTILOS UNIFICADOS ========================= */

/* ========================= ESTILOS BASE ========================= */
body {
    font-family: 'Lora', serif; /* Nueva fuente para el cuerpo de texto */
    color: #333;
    background-color: #f8f9fa; /* Color de fondo general */
    font-size: 0.95rem; /* Tamaño de fuente ligeramente más pequeño para el cuerpo */
    margin-top: 76px !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.header-footer-bg {
    background-color: #000; /* Negro para header y footer */
    color: #fff;
}

.main-content-bg {
    background-color: #fff; /* Blanco para el contenido principal */
    color: #000;
}

.text-black {
    color: #000 !important;
}

.icon-gold {
    color: #D4AF37; /* Dorado para iconos */
}

.icon-silver {
    color: #C0C0C0; /* Plateado para iconos */
}

/* ========================= ANIMACIONES ========================= */
/* Keyframes para el destello diagonal que se mueve */
@keyframes flash-diagonal-move {
    0% { transform: translate(-100%, -100%) rotate(45deg); opacity: 0; }
    /* Primera pasada */
    1% { opacity: 0.8; }
    16% { transform: translate(100%, 100%) rotate(45deg); opacity: 0.8; }
    17% { opacity: 0; }

    /* Segunda pasada */
    18% { transform: translate(-100%, -100%) rotate(45deg); opacity: 0; }
    19% { opacity: 0.8; }
    33% { transform: translate(100%, 100%) rotate(45deg); opacity: 0.8; }
    34% { opacity: 0; }

    /* Pausa de 2 segundos (ocupando del 34% al 100% del ciclo) */
    100% { opacity: 0; }
}

/* Keyframes para la animación del péndulo */
@keyframes pendulum-swing {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); } /* Swing to the right */
    50% { transform: rotate(-8deg); } /* Swing to the left */
    75% { transform: rotate(4deg); } /* Swing to the right, less intense */
    100% { transform: rotate(0deg); } /* Return to center */
}

/* Definición de la animación de pulso para el círculo */
@keyframes pulse-glow {
    0% {
        transform: translateY(-2px) scale(1.1);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: translateY(-4px) scale(1.15);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    }
    100% {
        transform: translateY(-2px) scale(1.1);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }
}

/* Definición de la animación de pulso para el icono */
@keyframes pulse-icon {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}

/* ========================= BOTONES ========================= */
/* Estilos de botones CTA con efecto "cristal de oro" y animación */
.btn-medical {
    padding: 10px 15px; /* Adjusted padding */
    border-radius: 50px; /* Mucho más redondeado */
    font-weight: 300; /* Cambiado de 700 a 300 para letras más delgadas */
    color: #000; /* Color de texto negro */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4); /* Sombra de texto blanca para contraste */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Asegura que los brillos internos no se desborden */
    border: none; /* Eliminar el borde predeterminado */
    z-index: 1; /* Para que los pseudo-elementos de brillo estén por encima del fondo del botón */

    /* Múltiples fondos para el brillo curvo y el gradiente base */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%), /* Efecto glossy desde arriba (base estática) */
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%), /* Brillo curvo sutil en la esquina superior izquierda (base estática) */
        linear-gradient(145deg, #FFD700, #DAA520, #B8860B); /* Gradiente dorado clásico */
    box-shadow:
        0 6px 0 rgba(255, 255, 255, 0.4), /* Borde superior translúcido (40%) */
        0 -6px 0 rgba(255, 255, 255, 0.4), /* Borde inferior translúcido (40%) */
        6px 0 0 rgba(255, 255, 255, 0.4), /* Borde derecho translúcido (40%) */
        -6px 0 0 rgba(255, 255, 255, 0.4), /* Borde izquierdo translúcido (40%) */
        inset 0 3px 6px rgba(0, 0, 0, 0.3), /* Sombra interna para relieve (oscuro) */
        inset 0 -3px 6px rgba(255, 255, 255, 0.2); /* Luz interna para relieve (claro) */
}

/* Destello animado para el botón médico */
.btn-medical::before {
    content: '';
    position: absolute;
    top: -50%; /* Empezar más arriba para cubrir todo el ancho */
    left: -50%; /* Empezar más a la izquierda para cubrir todo el ancho */
    width: 200%; /* Suficiente ancho para cubrir diagonalmente */
    height: 200%; /* Suficiente alto para cubrir diagonalmente */
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg); /* Rotación diagonal */
    z-index: 2; /* Asegura que esté sobre el fondo del botón */
    animation: flash-diagonal-move 6s infinite ease-in-out; /* Animación de destello */
    pointer-events: none; /* Ignorar eventos de ratón */
    border-radius: 50%; /* Para que el destello se curve un poco */
}

.btn-medical:hover {
    transform: translateY(-8px); /* Adjusted for larger border (6px) */
    box-shadow:
        0 8px 0 rgba(255, 255, 255, 0.5), /* Slightly increases on hover to 50% */
        0 -8px 0 rgba(255, 255, 255, 0.5),
        8px 0 0 rgba(255, 255, 255, 0.5),
        -8px 0 0 rgba(255, 255, 255, 0.5),
        inset 0 4px 8px rgba(0, 0, 0, 0.4), /* More pronounced internal shadow on hover */
        inset 0 -4px 8px rgba(255, 255, 255, 0.3); /* More pronounced internal light on hover */
}

/* Asegura que el icono dentro del botón siempre sea negro para contraste */
.btn-medical .fas, .btn-medical .fab {
    color: #000; /* Negro para iconos dentro de los botones CTA */
}

/* Estilos para el botón de WhatsApp en el header */
.btn-whatsapp {
    background-color: #25D366; /* Verde de WhatsApp */
    border: none;
    padding: 10px 15px; /* Ajustar padding */
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex; /* Para centrar el icono */
    align-items: center; /* Alinea verticalmente el icono */
    justify-content: center; /* Alinea horizontalmente el icono */
    margin-right: 10px; /* Espacio entre el botón de WhatsApp y el de hamburguesa */
}

.btn-whatsapp:hover {
    background-color: #1DA851; /* Verde más oscuro al hover */
    transform: translateY(-2px);
}

.btn-whatsapp .fab {
    color: #fff; /* Icono blanco */
    font-size: 1.5rem; /* Tamaño del icono */
}

/* Estilos específicos para el botón de menú hamburguesa */
.btn-hamburger {
    background: none; /* Elimina el fondo */
    border: none; /* Elimina el borde */
    box-shadow: none; /* Elimina la sombra */
    padding: 10px; /* Mantener un padding para un área de clic cómoda */
    border-radius: 50%; /* Hacerlo redondo para el efecto hover */
    transition: all 0.3s ease; /* Suave transición para efectos hover */
    display: flex; /* Para centrar el icono dentro */
    align-items: center;
    justify-content: center;
}

.btn-hamburger:hover {
    background-color: rgba(212, 175, 55, 0.1); /* Sutil fondo dorado semitransparente al pasar el ratón */
    transform: none; /* Asegura que no se aplique transformación vertical inesperada */
    box-shadow: none; /* Asegura que no haya sombra en hover */
}

.btn-hamburger .fas {
    color: #D4AF37; /* Icono dorado */
    font-size: 1.5rem; /* Tamaño del icono */
}

/* ========================= LOGO Y ELEMENTOS GENERALES ========================= */
.logo-img {
    max-height: 80px; /* Ajusta el tamaño del logo */
    width: auto;
}

.section-padding {
    padding: 80px 0;
}

.rounded-pill-custom {
    border-radius: 50px;
}

/* ========================= TARJETAS ========================= */
/* Estilos mejorados para las tarjetas del proceso de transformación y de la diferencia */
.card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0); /* Sutil gradiente */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Asegura que el contenido esté dentro de los bordes redondeados */
}

.card:hover {
    transform: translateY(-8px); /* Elevación más pronunciada */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Sombra más grande */
}

.card-body {
    padding: 1.5rem 1rem; /* Padding más compacto como Bookimed */
}

.card .icon-circle-wrapper {
    background-color: #D4AF37; /* Círculo dorado para el icono */
    border-radius: 50%;
    width: 70px; /* Tamaño del círculo */
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto; /* Centra el círculo y añade margen inferior */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card:hover .icon-circle-wrapper {
    transform: scale(1.1); /* Efecto de crecimiento en el icono al pasar el ratón */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5); /* Sombra dorada al pasar el ratón */
}

.card .icon-circle-wrapper .fas {
    color: #000; /* Ícono negro dentro del círculo dorado */
    font-size: 2.5rem; /* Tamaño grande del icono */
}

/* Específico para los iconos de las tarjetas de "La Diferencia" */
.diferencia-card .icon-circle-wrapper {
    background-color: #fff; /* Fondo blanco para estas tarjetas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.1); /* Efecto de relieve */
}

.diferencia-card .icon-circle-wrapper .fas {
    color: #D4AF37; /* Iconos dorados para estas tarjetas */
    font-size: 2rem; /* Tamaño ligeramente más pequeño para estos iconos */
}

/* ========================= ACORDEÓN FAQ ========================= */
.accordion-button:not(.collapsed) {
    background-color: #f0f0f0;
    color: #000;
}

/* Ajustes para los botones del acordeón de FAQs */
.accordion-button {
    border-radius: 10px !important;
    font-size: 1.2rem; /* Letra más grande para las preguntas */
    font-weight: bold; /* Hacer las preguntas en negrita */
    color: #000; /* Asegurar que el texto de la pregunta sea negro */
}

/* Quitar borde de los recuadros de las FAQs */
.accordion-item {
    border: none; /* Quitamos el borde */
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Sutil sombra para diferenciarlos */
}

/* Estilo para el nuevo icono de confianza en las FAQs */
.faq-icon-large {
    font-size: 1.5rem; /* Icono más grande */
    color: #D4AF37; /* Color dorado para el icono */
    margin-right: 10px; /* Espaciado a la derecha */
}

/* ========================= OFFCANVAS (MENÚ HAMBURGUESA) ========================= */
/* Estilos para el Offcanvas (menú hamburguesa) */
.offcanvas.offcanvas-end {
    background-color: #000;
    color: #fff;
    width: 300px; /* Ancho del menú */
    border-left: 1px solid #333;
    background-image: url('https://medicalrenova.com/nc_assets/img/icons/medicalrenova-logo-menu-bg.webp');
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: luminosity;
}

.offcanvas-header {
    border-bottom: 1px solid #333;
}

.offcanvas-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
}

/* Custom styles for the logo in offcanvas title */
.offcanvas-title .logo-img-offcanvas {
    max-height: 40px; /* Adjust logo size for offcanvas header */
    width: auto;
    vertical-align: middle; /* Align with text if any */
}

.offcanvas-body {
    padding: 0; /* Remover padding para que la lista ocupe todo el espacio */
}

.offcanvas-menu {
    list-style: none; /* Eliminar viñetas de la lista principal */
    padding: 0;
    margin: 0;
}

.offcanvas-menu .submenu {
    padding: 15px; /* Padding para la cuadrícula */
    background-color: #111;
}

.offcanvas-menu > li {
    border-bottom: 1px solid #333;
}

.offcanvas-menu > li:last-child {
    border-bottom: none;
}

.offcanvas-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

.offcanvas-menu a:hover {
    background-color: #222;
    color: #D4AF37; /* Dorado al pasar el ratón */
}

/* Flexbox para alinear icono, texto y chevron */
.offcanvas-menu .nav-link-main {
    display: flex;
    align-items: center; /* Alinea verticalmente los items */
    justify-content: space-between; /* Espacia el texto y el chevron */
}

/* Estilos para el chevron que rota */
.offcanvas-menu .nav-link-main .arrow-icon {
    transition: transform 0.3s ease;
    margin-left: auto; /* Empuja el chevron a la derecha */
}

.offcanvas-menu .nav-link-main[aria-expanded="true"] .arrow-icon {
    transform: rotate(90deg);
}

/* ========================= SUBMENÚ ========================= */
/* Estilos para la nueva cuadrícula de submenu (por defecto 2 columnas para móviles) */
.submenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas de igual tamaño para móvil */
    gap: 15px; /* Espacio entre elementos */
    width: 100%; /* Asegurar que ocupe todo el ancho disponible */
    padding: 0 15px; /* Añadir padding para los lados en la cuadrícula */
}

.submenu-item {
    position: relative;
    min-height: 140px !important;
    height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 5px !important;
}

.subitem-icon-circle-wrapper {
    margin-bottom: 0 !important;
}

.submenu-text {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding-bottom: 8px !important;
    background: none !important;
    font-weight: 500 !important;
    z-index: 2 !important;
    font-size: 0.75em !important;
    margin-top: 8px !important;
    word-wrap: break-word !important; /* Permitir que las palabras largas se rompan */
    hyphens: auto !important; /* Agregar guiones automáticos si es necesario */
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Aplica la animación al pasar el ratón */
.submenu-item:hover {
    background-color: #333 !important;
    color: #D4AF37 !important;
    animation: pendulum-swing 0.8s ease-in-out 1; /* Aplica la animación al pasar el ratón, una sola vez */
}

/* Nueva clase para activar la animación al hacer clic */
.submenu-item.submenu-item-clicked {
    animation: pendulum-swing 0.8s ease-in-out 1; /* Aplica la animación al hacer clic, una sola vez */
}

/* Contenedor circular blanco para los iconos de sub-elementos */
.subitem-icon-circle-wrapper {
    width: 75px !important;
    height: 75px !important;
    transition: width 0.3s, height 0.3s;
    background-color: white !important; /* Fondo blanco */
    border-radius: 50% !important; /* Hacerlo circular */
    display: flex !important; /* Para centrar el contenido */
    align-items: center !important; /* Centrado vertical */
    justify-content: center !important; /* Centrado horizontal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important; /* Sombra sutil */
    margin: 0 auto 10px auto !important; /* Centrado horizontal y margen inferior */
    position: relative !important; /* Para centrado absoluto si es necesario */
    margin-left: auto !important;
    margin-right: auto !important;
    transition: all 0.3s ease; /* Transición suave para el hover */
    overflow: hidden !important; /* Recorta la parte del icono que sobresale */
}

.submenu-item:hover .subitem-icon-circle-wrapper,
.submenu-item:focus .subitem-icon-circle-wrapper,
.submenu-item.active .subitem-icon-circle-wrapper {
    border: 1px solid #000 !important;
    box-shadow: 0 0 12px 2px rgba(255,255,255,0.7), 0 0 0 2px #fff !important;
}

.submenu-item:hover .menu-subitem-icon {
    animation: pendulum-swing 0.8s ease-in-out 1;
}

/* Ajustar tamaño del icono SVG dentro del círculo blanco (para sub-elementos) */
.subitem-icon-circle-wrapper .menu-subitem-icon {
    width: 67px !important;
    height: 67px !important;
    transition: width 0.3s, height 0.3s;
}

.submenu-item:hover .subitem-icon-circle-wrapper .menu-subitem-icon,
.submenu-item:focus .subitem-icon-circle-wrapper .menu-subitem-icon,
.submenu-item.active .subitem-icon-circle-wrapper .menu-subitem-icon {
    width: 92px !important;
    height: 92px !important;
}

/* Efecto de destello/sombra para los subitems al hacer hover */
.submenu-item:hover .subitem-icon-circle-wrapper {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 25px rgba(255, 255, 255, 0.5); /* Resplandor blanco */
    transform: scale(1.05); /* Ligero aumento de tamaño */
}

/* ========================= ICONOS DE GRUPOS PRINCIPALES ========================= */
/* CLASE PARA LOS ICONOS DE GRUPOS PRINCIPALES: Círculo dorado con icono negro dentro */
.group-icon-circle-wrapper {
    background-color: #D4AF37; /* Fondo dorado */
    border-radius: 50%; /* Forma circular */
    width: 38px; /* Tamaño del círculo */
    height: 38px;
    display: flex; /* Para centrar el icono dentro */
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Evita que se encoja */
    margin-right: 12px; /* Espacio entre el círculo y el texto */
    transition: all 0.3s ease; /* Transición suave para la animación */
}

/* Ajustar tamaño del icono SVG dentro del círculo dorado (para elementos de grupo) */
.group-icon-circle-wrapper .group-icon {
    width: 26px; /* El icono ocupará el 70% del círculo de 38px */
    height: 26px;
    vertical-align: middle;
    transition: all 0.3s ease; /* Transición suave para la animación */
    /* Si tus SVGs son negros y el fondo es dorado, no necesitas `filter: invert()`.
       Si son blancos y el fondo dorado, y quieres que se vean negros, usa `filter: invert(100%);` */
}

/* Animación para el icono del grupo cuando está abierto */
.nav-link-main[aria-expanded="true"] .group-icon-circle-wrapper {
    width: 48px !important; /* Círculo más grande cuando está abierto */
    height: 48px !important;
    transform: translateY(-2px) scale(1.1); /* Mover hacia arriba y escalar */
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); /* Sombra dorada */
    animation: pulse-glow 2s ease-in-out infinite; /* Animación de pulso continua */
}

/* Animación para el icono dentro del círculo cuando está abierto */
.nav-link-main[aria-expanded="true"] .group-icon-circle-wrapper .group-icon {
    width: 32px !important; /* Icono más grande cuando está abierto */
    height: 32px !important;
    transform: scale(1.1); /* Escalar ligeramente */
    animation: pulse-icon 2s ease-in-out infinite; /* Animación de pulso para el icono */
}

/* ========================= FORMULARIOS ========================= */
/* Ajustes específicos para el tamaño de fuente del contenido */
.lead, .fs-5, .card-text, .accordion-body, .form-label, .form-control, .form-select {
    font-size: 1rem; /* Tamaño más compacto como Bookimed */
    line-height: 1.5; /* Line-height más compacto */
}

/* Estilos del formulario de agendar cita */
#agenda-cita-section .form-control,
#agenda-cita-section .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-family: 'Lora', serif;
    line-height: 1.5;
}

#agenda-cita-section .form-control:focus,
#agenda-cita-section .form-select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* ========================= FOOTER ========================= */
.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #D4AF37;
}

#footer-section {
    color: #fff;
    position: relative; 
}

#footer-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://medicalrenova.com/nc_assets/img/icons/MedicalRenova-Footer_BG1.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.4 !important;
    z-index: 0;
    pointer-events: none;
}

#footer-section > * {
    position: relative;
    z-index: 1;
}

/* ========================= LAYOUTS ESPECIALES ========================= */
/* Estilos para textos largos con mejor legibilidad */
p, .long-text {
    line-height: 1.6; /* Más compacto como Bookimed */
}

/* Nueva clase para centrar el contenido en una columna */
.single-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto; /* Centra el contenedor horizontalmente */
    max-width: 900px; /* Ancho máximo para el contenido, ajusta según necesidad */
}

/* Ajuste para la imagen dentro del nuevo layout de "La Diferencia" */
#diferencia-renova-image img {
    margin-bottom: 40px; /* Espacio debajo de la imagen */
}

/* ========================= SECCIONES CON FONDOS ========================= */
/* Contenedor unificado para "Qué es" y "Candidato Ideal" */
.proceso-info-section {
    position: relative;
    overflow: hidden;
    background-color: transparent !important; /* Asegura que no haya un color de fondo base */
}

.proceso-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--proceso-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* Opacidad reducida para mejor legibilidad */
    z-index: 0;
}

.proceso-info-section > * {
    position: relative;
    z-index: 1;
}

/* Nuevo estilo para el contenedor de Recuperación y Preguntas Frecuentes */
.recuperacion-faq-wrapper {
    position: relative;
    overflow: hidden;
    background-color: transparent !important; /* Asegura que no haya un color de fondo base */
}

.recuperacion-faq-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://medicalrenova.com/nc_assets/img/icons/MedicalRenova_Logo_FondoFAQ_HQ.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* Opacidad reducida al 20% */
    z-index: 0;
}

.recuperacion-faq-wrapper > * {
    position: relative;
    z-index: 1;
}

/* ========================= TARJETAS ESPECÍFICAS ========================= */
/* Estilos específicos para las nuevas tarjetas de "La Diferencia" */
.diferencia-renova-section .card {
    margin: 0 auto; /* Centrar las tarjetas */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #fffbe6 0%, #f7e9c4 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    border: none;
    position: relative;
    overflow: visible;
    width: 100% !important; /* Ocupar todo el ancho disponible */
    max-width: none !important; /* Remover límite de ancho máximo */
    height: 100% !important; /* Misma altura para todas las tarjetas */
    display: flex !important; /* Flexbox para distribuir el contenido */
    flex-direction: column !important; /* Dirección vertical */
}

.diferencia-renova-section .card-body {
    padding: 1rem 0.75rem !important; /* Padding más compacto como Bookimed */
    margin-top: 0.5rem; /* Reducir el margen superior para acercar más el texto al icono */
    flex: 1 !important; /* Que el cuerpo ocupe todo el espacio disponible */
    display: flex !important; /* Flexbox para el contenido interno */
    flex-direction: column !important; /* Dirección vertical */
    justify-content: center !important; /* Centrar verticalmente el contenido */
}

.diferencia-renova-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.diferencia-renova-section .card-icon {
    background: linear-gradient(145deg, #D4AF37, #B8860B) !important;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    z-index: 10; /* Asegurar que esté por encima */
    width: 80px; /* Tamaño fijo del círculo */
    height: 80px; /* Tamaño fijo del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.diferencia-renova-section .card:hover .card-icon {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.diferencia-renova-section .card-icon i {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 2rem !important;
}

.diferencia-renova-section .card-title {
    color: #000 !important;
    /* Remover font-size personalizado para usar el tamaño estándar de Bootstrap */
    margin-bottom: 1rem;
}

.diferencia-renova-section .card-text {
    color: #666 !important;
    /* Remover font-size personalizado para usar el tamaño estándar de Bootstrap */
    line-height: 1.4; /* Más compacto como Bookimed */
}

/* Estilos específicos para las fichas de "Tu Camino Hacia la Transformación" */
.proceso-transformacion-section .card {
    margin: 0 auto; /* Centrar las tarjetas */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border-radius: 15px !important;
    overflow: visible !important; /* Cambiar a visible para que el icono sobresalga */
    position: relative; /* Asegurar posicionamiento relativo */
    width: 100% !important; /* Ocupar todo el ancho disponible */
    max-width: none !important; /* Remover límite de ancho máximo */
    height: 100% !important; /* Misma altura para todas las tarjetas */
    display: flex !important; /* Flexbox para distribuir el contenido */
    flex-direction: column !important; /* Dirección vertical */
}

.proceso-transformacion-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.proceso-transformacion-section .card-icon {
    background: linear-gradient(145deg, #D4AF37, #B8860B) !important;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    z-index: 10; /* Asegurar que esté por encima */
    width: 80px; /* Tamaño fijo del círculo */
    height: 80px; /* Tamaño fijo del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.proceso-transformacion-section .card:hover .card-icon {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.proceso-transformacion-section .card-icon i {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 2rem !important;
}

.proceso-transformacion-section .card-body {
    padding: 1rem 0.75rem !important; /* Padding más compacto como Bookimed */
    margin-top: 0.5rem; /* Reducir el margen superior para acercar más el texto al icono */
    flex: 1 !important; /* Que el cuerpo ocupe todo el espacio disponible */
    display: flex !important; /* Flexbox para el contenido interno */
    flex-direction: column !important; /* Dirección vertical */
    justify-content: center !important; /* Centrar verticalmente el contenido */
}

.proceso-transformacion-section .card-title {
    color: #000 !important;
    margin-bottom: 1rem;
}

.proceso-transformacion-section .card-text {
    color: #666 !important;
    line-height: 1.4; /* Más compacto como Bookimed */
}

/* ========================= COMPARACIÓN DE IMÁGENES ========================= */
/* Estilos para el control de comparación de imágenes antes y después */
.image-comparison-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fija para la consistencia visual */
    overflow: hidden;
    border-radius: 20px; /* Bordes redondeados para mantener el estilo de la página */
    margin: 0 auto;
    cursor: ew-resize; /* Cursor para indicar arrastre horizontal */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Sombra para mantener el estilo */
}

.image-comparison-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    border-radius: 20px;
    user-select: none;
    -webkit-user-drag: none;
}

.image-comparison-container .img-after {
    /* En modo horizontal, la imagen "después" se recorta desde la izquierda */
    clip-path: inset(0 0 0 50%); /* 50% visible desde la mitad hacia la derecha al inicio */
    -webkit-clip-path: inset(0 0 0 50%);
}

.image-comparison-handle {
    position: absolute;
    background-color: #D4AF37; /* Color dorado de Medical Renova */
    border: 3px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%; /* Posición inicial centrada verticalmente */
    left: 50%; /* Posición inicial centrada horizontalmente */
    transform: translate(-50%, -50%); /* Centrar el handle */
    cursor: grab; /* Cursor de "agarrar" */
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-comparison-handle i {
    color: #ffffff;
    font-size: 1.2rem;
}

/* ========================= MEDIA QUERIES ========================= */
/* Media query para tabletas y escritorios (md y lg) */
@media (min-width: 768px) { /* Bootstrap 'md' breakpoint */
    .offcanvas.offcanvas-end {
        width: 75%; /* Ancho más grande para el menú en tabletas y escritorios */
        max-width: 900px; /* Limitar el ancho máximo para evitar que sea demasiado grande en pantallas muy anchas */
    }
    .submenu-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas para pantallas más grandes */
    }
    
    /* Estilos para el título de "La Diferencia" en desktop/tablet (centrado en la parte superior) */
    #diferencia-renova-section .container > .row:first-child .col-12 h2 {
        text-align: center;
    }
}

/* Responsive adjustments para el control de comparación */
@media (max-width: 768px) {
    .image-comparison-container {
        height: 300px; /* Ajusta la altura para pantallas más pequeñas */
    }
    .image-comparison-handle {
        width: 36px;
        height: 36px;
    }
    .image-comparison-handle i {
        font-size: 1rem;
    }
    
    /* Responsive adjustments para diferencia-renova */
    .diferencia-renova-section .card {
        width: 100% !important;
        max-width: 320px;
        overflow: hidden !important; /* En móvil, mantener el overflow hidden */
    }
    
    .diferencia-renova-section .card-icon {
        position: static !important; /* En móvil, posicionamiento normal */
        transform: none !important; /* Remover transformaciones */
        margin: 0 auto !important; /* Solo centrar horizontalmente, sin margen inferior */
        width: 70px !important; /* Tamaño como las otras fichas */
        height: 70px !important;
    }
    
    .diferencia-renova-section .card-body {
        margin-top: 0 !important; /* Remover margen superior en móvil */
        padding-top: 0 !important; /* Remover padding superior en móvil */
        padding-bottom: 1.5rem !important; /* Mantener padding inferior */
    }
    
    .diferencia-renova-section .card:hover .card-icon {
        transform: scale(1.1) !important; /* Solo escalar en hover, no trasladar */
    }
    
    /* Responsive adjustments para proceso-transformacion */
    .proceso-transformacion-section .card {
        width: 100% !important;
        max-width: 320px;
        overflow: hidden !important; /* En móvil, mantener el overflow hidden */
    }
    
    .proceso-transformacion-section .card-icon {
        position: static !important; /* En móvil, posicionamiento normal */
        transform: none !important; /* Remover transformaciones */
        margin: 0 auto !important; /* Solo centrar horizontalmente, sin margen inferior */
        width: 70px !important; /* Tamaño como las otras fichas */
        height: 70px !important;
    }
    
    .proceso-transformacion-section .card-body {
        margin-top: 0 !important; /* Remover margen superior en móvil */
        padding-top: 0 !important; /* Remover padding superior en móvil */
        padding-bottom: 1.5rem !important; /* Mantener padding inferior */
    }
    
    .proceso-transformacion-section .card:hover .card-icon {
        transform: scale(1.1) !important; /* Solo escalar en hover, no trasladar */
    }
}

@media (max-width: 767.98px) { /* This media query targets screens up to 767.98px wide (typical for smartphones) */
    /* Mejorar legibilidad en móviles */
    p, .card-text, .lead {
        line-height: 1.5; /* Más compacto en móviles como Bookimed */
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    .submenu-item {
        min-height: 140px !important;
        height: 140px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: relative !important;
        padding: 20px 5px !important;
    }
    .subitem-icon-circle-wrapper {
        margin-bottom: 0 !important;
    }
    .submenu-text {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding-bottom: 8px !important;
        background: none !important;
        font-weight: 500 !important;
        z-index: 2 !important;
        font-size: 0.75em !important;
    }
}

@media (max-width: 575.98px) {
    .logo-img {
        max-height: 50px !important;
    }
}

@media (min-width: 992px) {
  #header-section {
    transition: padding 0.3s cubic-bezier(0.4,0,0.2,1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  #header-section .logo-img {
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    max-height: 80px;
  }
  #header-section.header-shrink {
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
  }
  #header-section.header-shrink .logo-img {
    max-height: 48px;
  }
}

#candidato-ideal-container,
#que-es-content-info {
    font-weight: 500 !important;
} 

/* ========================= ESTILOS INTERACTIVOS DE MAPA CORPORAL (PRIORIDAD BAJA) ========================= */
.interactive-treatments-section .tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: #f0f0f0;
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    gap: 1rem;
}
.interactive-treatments-section .tab-button {
    background-color: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    outline: none;
}
.interactive-treatments-section .tab-button:hover {
    background-color: #e0e0e0;
    color: #333;
}
.interactive-treatments-section .tab-button.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}
.interactive-treatments-section .body-map-container {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    border: none;
    box-shadow: none;
}
.interactive-treatments-section .body-map-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
.interactive-treatments-section .body-map-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
.interactive-treatments-section .body-map-svg-shape {
    stroke: transparent;
    stroke-width: 2;
    transition: opacity 0.2s, fill 0.2s, stroke 0.2s;
    pointer-events: none;
    opacity: 0;
}
.interactive-treatments-section .body-map-svg-shape.hovered {
    opacity: 1;
}
.interactive-treatments-section .body-map-svg-shape.selected {
    opacity: 1;
    fill: rgba(0, 123, 255, 0.4);
    stroke: transparent;
}
.interactive-treatments-section .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.interactive-treatments-section .procedures-column {
    height: 80vh;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f0f0f0;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
}
.interactive-treatments-section .desktop-procedure-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    justify-items: center;
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;
    padding: 1rem;
}
.interactive-treatments-section .desktop-procedure-icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    position: relative;
}
.interactive-treatments-section .desktop-procedure-icon-button:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.interactive-treatments-section .desktop-procedure-icon-button img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.interactive-treatments-section .desktop-procedure-icon-button span {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    margin-top: auto;
}
.interactive-treatments-section .procedure-details h4 {
    color: #007bff;
    margin-bottom: 1rem;
}
.interactive-treatments-section .procedure-details p {
    font-size: 0.95rem;
    line-height: 1.6;
}
.interactive-treatments-section .sticky-detail-button-container {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: #f0f0f0;
    border-top: 1px solid #e0e0e0;
    z-index: 10;
}
.interactive-treatments-section .sticky-detail-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}
.interactive-treatments-section .sticky-detail-button:hover {
    background-color: #0056b3;
}
.interactive-treatments-section #mobile-layout {
    display: none;
    flex-direction: column;
    width: 100%;
}
.interactive-treatments-section #mobile-main-content-area {
    position: relative;
    height: 70vh;
    width: 100%;
}
.interactive-treatments-section #mobile-icons-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 120px;
    height: 90vh;
    background-color: rgba(240, 240, 240, 0.85);
    border-left: 1px solid #ddd;
    padding: 1rem 0.5rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.interactive-treatments-section #mobile-icons-sidebar h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}
.interactive-treatments-section #procedure-icons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}
.interactive-treatments-section .procedure-icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    width: 100px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.interactive-treatments-section .procedure-icon-button:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.interactive-treatments-section .procedure-icon-button img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.interactive-treatments-section .procedure-icon-button span {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    margin-top: auto;
}
.interactive-treatments-section #mobile-procedure-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 120px);
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border: none;
    box-shadow: none;
    overflow-y: auto;
    z-index: 999;
    display: none;
    text-align: center;
}
.interactive-treatments-section #mobile-procedure-details-overlay h4 {
    color: #007bff;
    margin-bottom: 0.8rem;
}
.interactive-treatments-section #mobile-procedure-details-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}
.interactive-treatments-section .back-button {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.interactive-treatments-section .back-button:hover {
    background-color: #5a6268;
}
@media (max-width: 767.98px) {
    .interactive-treatments-section .procedures-column,
    .interactive-treatments-section #desktop-layout,
    .interactive-treatments-section .body-map-container {
        display: none !important;
    }
    .interactive-treatments-section #mobile-layout {
        display: flex !important;
    }
    .interactive-treatments-section .tab-navigation {
        margin-bottom: 1rem;
    }
    .interactive-treatments-section #body-map-container-mobile {
        height: 60vh;
        margin-bottom: 0;
        width: 100%;
        margin-right: 0;
    }
    .interactive-treatments-section #mobile-main-content-area {
        height: 60vh;
    }
    .interactive-treatments-section #mobile-icons-sidebar {
        display: block;
    }
    .interactive-treatments-section .body-map-svg-shape.selected {
        stroke: transparent;
    }
} 

/* Fondo negro y texto blanco solo para la columna de procedimientos */
.interactive-treatments-section .procedures-column {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 1.5rem;
    background-image: url('https://medicalrenova.com/nc_assets/img/icons/medicalrenova-logo-menu-bg.webp') !important;
    background-size: auto !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-blend-mode: luminosity !important;
    border-left: 1px solid #333 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 1.5rem !important;
}

/* El grid de iconos NO debe tener fondo ni imagen y debe ser responsive sin scroll horizontal */
.interactive-treatments-section .desktop-procedure-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    justify-items: center;
    width: 100%;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0.5rem !important;
    margin: 0;
    overflow-x: hidden !important;
}

/* Aplicar exactamente los mismos estilos del menú para los iconos de procedimientos */
.interactive-treatments-section .desktop-procedure-icon-button,
.interactive-treatments-section .procedure-icon-button {
    position: relative;
    min-height: 120px !important;
    height: 120px !important;
    width: 120px !important; /* Hacer cuadrado más pequeño */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 2px !important; /* Reducir padding */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important; /* Esquinas redondeadas más pequeñas */
    margin: 0 !important; /* Sin márgenes */
}

/* Aplicar la animación de péndulo al hacer hover en los botones de procedimientos */
.interactive-treatments-section .desktop-procedure-icon-button:hover,
.interactive-treatments-section .procedure-icon-button:hover {
    background-color: #333 !important;
    color: #D4AF37 !important;
    animation: pendulum-swing 0.8s ease-in-out 1 !important;
}

/* Aplicar la animación de péndulo al hacer clic */
.interactive-treatments-section .desktop-procedure-icon-button.submenu-item-clicked,
.interactive-treatments-section .procedure-icon-button.submenu-item-clicked {
    animation: pendulum-swing 0.8s ease-in-out 1 !important;
}

/* Aplicar exactamente los mismos estilos del menú para los contenedores de iconos */
.interactive-treatments-section .subitem-icon-circle-wrapper {
    width: 60px !important; /* Icono más pequeño */
    height: 60px !important;
    transition: width 0.3s, height 0.3s !important;
    background-color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto 8px auto !important; /* Reducir margen inferior */
    position: relative !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

/* Aplicar el borde y sombra al hacer hover en los contenedores de iconos */
.interactive-treatments-section .desktop-procedure-icon-button:hover .subitem-icon-circle-wrapper,
.interactive-treatments-section .procedure-icon-button:hover .subitem-icon-circle-wrapper,
.interactive-treatments-section .desktop-procedure-icon-button:focus .subitem-icon-circle-wrapper,
.interactive-treatments-section .procedure-icon-button:focus .subitem-icon-circle-wrapper,
.interactive-treatments-section .desktop-procedure-icon-button.active .subitem-icon-circle-wrapper,
.interactive-treatments-section .procedure-icon-button.active .subitem-icon-circle-wrapper {
    border: 1px solid #000 !important;
    box-shadow: 0 0 12px 2px rgba(255,255,255,0.7), 0 0 0 2px #fff !important;
}

/* Aplicar la animación de péndulo al icono al hacer hover */
.interactive-treatments-section .desktop-procedure-icon-button:hover .menu-subitem-icon,
.interactive-treatments-section .procedure-icon-button:hover .menu-subitem-icon {
    animation: pendulum-swing 0.8s ease-in-out 1 !important;
}

/* Aplicar el cambio de tamaño del icono al hacer hover */
.interactive-treatments-section .subitem-icon-circle-wrapper .menu-subitem-icon {
    width: 54px !important; /* Icono más pequeño */
    height: 54px !important;
    transition: width 0.3s, height 0.3s !important;
}

.interactive-treatments-section .desktop-procedure-icon-button:hover .subitem-icon-circle-wrapper .menu-subitem-icon,
.interactive-treatments-section .procedure-icon-button:hover .subitem-icon-circle-wrapper .menu-subitem-icon,
.interactive-treatments-section .desktop-procedure-icon-button:focus .subitem-icon-circle-wrapper .menu-subitem-icon,
.interactive-treatments-section .procedure-icon-button:focus .subitem-icon-circle-wrapper .menu-subitem-icon,
.interactive-treatments-section .desktop-procedure-icon-button.active .subitem-icon-circle-wrapper .menu-subitem-icon,
.interactive-treatments-section .procedure-icon-button.active .subitem-icon-circle-wrapper .menu-subitem-icon {
    width: 72px !important; /* Icono más pequeño en hover */
    height: 72px !important;
}

/* Aplicar el efecto de destello/sombra al hacer hover */
.interactive-treatments-section .desktop-procedure-icon-button:hover .subitem-icon-circle-wrapper,
.interactive-treatments-section .procedure-icon-button:hover .subitem-icon-circle-wrapper {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 25px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
}

/* Aplicar exactamente los mismos estilos del menú para los textos */
.interactive-treatments-section .submenu-text {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding-bottom: 8px !important;
    background: none !important;
    font-weight: 500 !important;
    z-index: 2 !important;
    font-size: 0.75em !important;
    margin-top: 8px !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #fff !important;
} 

/* Estilos específicos para los botones "Ver detalle" en el mapa interactivo */
.interactive-treatments-section .btn-medical {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 12px 20px !important;
}

.interactive-treatments-section .btn-medical i {
    font-size: 1rem !important;
    margin-right: 8px !important;
}

/* Ajustar el contenedor sticky del botón */
.interactive-treatments-section .sticky-detail-button-container {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 1rem 0;
    background: none !important;
    border-top: none !important;
    z-index: 10;
    text-align: center;
} 

/* Botón "Ver detalle" más ancho y con letra más grande */
.interactive-treatments-section .btn-medical {
    min-width: 220px !important;
    font-size: 1.15rem !important;
    padding: 14px 32px !important;
}

/* Eliminar los estilos de .tab-button para que los botones de género usen solo .btn-medical */
.interactive-treatments-section .tab-button {
    all: unset;
} 

.interactive-treatments-section .procedures-column .text-muted,
.interactive-treatments-section .procedures-column .text-center.text-muted,
.interactive-treatments-section #right-procedure-details .text-muted,
.interactive-treatments-section #right-procedure-details .text-center.text-muted {
    color: #fff !important;
    opacity: 0.85;
} 

#main-tab-navigation {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
} 

/* Animación para el cambio de detalle del procedimiento */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flipIn3D {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateY(60deg) scale(0.96);
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }
    60% {
        opacity: 1;
        transform: perspective(600px) rotateY(-8deg) scale(1.01);
        box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg) scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}

#right-procedure-details.animate-detail-change {
    animation: flipIn3D 0.7s cubic-bezier(0.4,0,0.2,1);
    backface-visibility: hidden;
    will-change: transform, opacity;
} 

#right-procedure-details h5 {
    color: #D4AF37 !important;
} 

#main-tab-navigation .btn-medical {
    font-size: 1rem !important;
    padding: 0.4rem 1.1rem !important;
    min-width: 90px;
} 

@media (min-width: 768px) {
    #desktop-layout {
        align-items: stretch !important;
    }
    #left-procedures-column,
    #body-map-container,
    #right-procedure-details {
        height: 90vh;
        min-height: 400px;
        max-height: 100vh;
    }
    #body-map-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    #body-map-container .body-map-image {
        flex: 1 1 auto;
        max-height: calc(100% - 110px); /* Ajusta este valor si el título+botones ocupan más/menos espacio */
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }
    #body-map-container h4,
    #body-map-container .tab-navigation {
        margin-bottom: 0.5rem !important;
    }
} 

#left-procedures-column {
    position: relative;
}
#left-procedures-column::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5rem; /* igual al padding-top real */
    background: #000;
    z-index: 5;
    pointer-events: none;
} 

@media (min-width: 768px) and (max-width: 991.98px) {
  #main-tab-navigation .btn-medical {
    min-width: 70px !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    font-size: 0.98rem !important;
  }
  .sticky-detail-button-container .btn-medical {
    min-width: unset !important;
    width: auto !important;
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    font-size: 1rem !important;
    max-width: 220px;
    margin: 0 auto;
    display: block;
  }
} 

@media (max-width: 767.98px) {
  #main-tab-navigation {
    display: flex !important;
    justify-content: center;
    margin-bottom: 1.2rem;
    width: 100%;
  }
  #main-tab-navigation .btn-medical {
    min-width: 70px;
    font-size: 1rem;
    padding: 0.5rem 1.1rem;
    margin: 0 0.3rem;
  }
  #body-map-container-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1rem;
    height: auto;
  }
  #body-map-image-mobile {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 100%;
    height: auto;
  }
  /* Overlay de procedimientos */
  #mobile-icons-sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20,20,20,0.97);
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 1002;
    width: 95vw;
    max-width: 420px;
    max-height: 80vh;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    animation: fadeInMobileOverlay 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  #mobile-icons-sidebar.active {
    display: flex !important;
  }
  @keyframes fadeInMobileOverlay {
    0% { opacity: 0; transform: translate(-50%, -60%) scale(0.98); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }
  #procedure-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem 0.7rem;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    justify-items: center;
  }
  .procedure-icon-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.92rem;
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
  }
  .procedure-icon-button img {
    width: 38px;
    height: 38px;
    margin-bottom: 0.3rem;
    object-fit: contain;
  }
  .procedure-icon-button:active, .procedure-icon-button:focus {
    background: #222;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  }
  /* Fondo oscuro para overlay */
  #mobile-icons-sidebar::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    /*background: rgba(0,0,0,0.45);*/
    z-index: -1;
    border-radius: 0;
    pointer-events: none;
  }
  /* Botón de cerrar overlay (puedes agregarlo en el HTML si lo deseas) */
  #mobile-icons-sidebar .close-mobile-overlay {
    position: absolute;
    top: 0.7rem;
    right: 1.1rem;
    font-size: 1.7rem;
    color: #fff;
    background: none;
    border: none;
    z-index: 1003;
    cursor: pointer;
  }
} 

@media (max-width: 767.98px) {
  #interactive-treatments-section {
    display: block !important;
    visibility: visible !important;
  }
  #mobile-layout {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  #mobile-main-content-area {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
  }
  #main-tab-navigation {
    display: flex !important;
    justify-content: center;
    margin-bottom: 1.2rem;
    width: 100%;
  }
  #main-tab-navigation .btn-medical {
    min-width: 70px;
    font-size: 1rem;
    padding: 0.5rem 1.1rem;
    margin: 0 0.3rem;
  }
  #body-map-container-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1rem;
    height: auto;
  }
  #body-map-image-mobile {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 100%;
    height: auto;
  }
  /* Ocultar elementos de desktop en mobile */
  #desktop-layout {
    display: none !important;
  }
  /* Mostrar elementos de mobile */
    #mobile-layout {
    display: flex !important;
  }
}

/* ========================= BUSCADOR DEL MENÚ ========================= */
.search-container {
    padding: 0.3rem 15px 0.3rem 15px;
}

.search-container .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-container .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #333;
}

.search-container .form-control:focus {
    box-shadow: none;
    border-color: #D4AF37;
    background-color: #fff;
}

.search-container .form-control::placeholder {
    color: #999;
    font-style: italic;
}

.btn-search {
    background-color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
    color: #D4AF37;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    background-color: #D4AF37;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-search .fas {
    font-size: 1rem;
}

/* Responsive para móvil */
@media (max-width: 767.98px) {
    .search-container .input-group {
        border-radius: 20px;
    }
    
    .search-container .form-control {
        border-radius: 20px 0 0 20px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .btn-search {
        border-radius: 0 20px 20px 0;
        padding: 10px 15px;
        min-width: 50px;
        justify-content: center;
    }
    
    .btn-search .fas {
        font-size: 1.1rem;
    }
}

/* ========================= ESTILOS PARA BOTÓN DE DESBLOQUEO DE IMÁGENES SENSIBLES ========================= */
.unlock-btn {
    background: #000000 !important;
    border: 2px solid #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.unlock-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    background: #333333 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.unlock-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.unlock-btn .fas {
    color: #ffffff !important;
}

/* Estilos para el mensaje de advertencia */
.sensitive-warning-message {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 2px solid #ffc107 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 15px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.warning-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

.warning-icon {
    color: #ffc107 !important;
    font-size: 1.5rem !important;
}

.warning-text {
    color: #000000 !important;
    font-weight: 500 !important;
}

/* === AJUSTES COMPACTOS Y UNIFICADOS PARA FICHAS DE TESTIMONIOS, PROFESIONALES Y LA DIFERENCIA === */

/* Compactar y unificar todas las tarjetas tipo ficha */
.card,
.diferencia-renova-section .card,
.proceso-transformacion-section .card,
#happy-patients-section .card,
#our-professionals-section .card {
  padding: 1.1rem 1.2rem !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
  border-radius: 1.1rem !important;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.10) !important;
  background: linear-gradient(135deg, #fff 80%, #f7f7f7 100%) !important;
  margin-bottom: 1.2rem !important;
}

/* Unificar sombra y degradado en diferencia-renova-section */
.diferencia-renova-section .card {
  background: linear-gradient(135deg, #fff 80%, #f7f7f7 100%) !important;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.10) !important;
}

/* Compactar textos de testimonios y profesionales */
.card .card-text,
.card .fst-italic,
.card .small,
#happy-patients-section .card p,
#our-professionals-section .card p {
  font-size: 0.92rem !important;
  line-height: 1.18 !important;
  padding: 0 !important;
  margin-bottom: 0.7rem !important;
}

/* Mejorar legibilidad de descripciones de profesionales */
#our-professionals-section .card .small,
#our-professionals-section .card p {
  color: #222 !important;
}

/* Centrar nombres y descripciones en testimonios */
#happy-patients-section .text-center,
#happy-patients-section .fw-semibold,
#happy-patients-section .text-sm {
  justify-content: center !important;
  text-align: center !important;
}

/* Ajustar padding y márgenes de los iconos en las fichas */
.card .icon-circle-wrapper {
  margin-bottom: 0.7rem !important;
}

/* Ajustar el tamaño de los nombres en testimonios y profesionales */
#happy-patients-section .fw-semibold,
#our-professionals-section .fw-bold {
  font-size: 1.05rem !important;
  margin-bottom: 0.2rem !important;
}

/* Ajustar el color de los procedimientos en testimonios */
#happy-patients-section .text-sm {
  color: #D4AF37 !important;
  font-size: 0.88rem !important;
  margin-bottom: 0 !important;
}

/* Sombra más suave y menos difuminada para las tarjetas de happy-patients-section */
#happy-patients-section .card {
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07) !important;
}

/* Sombra más suave y menos difuminada para las tarjetas de diferencia-renova-section */
.diferencia-renova-section .card {
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07) !important;
}

/* Sombra más suave y menos difuminada para las tarjetas de proceso-transformacion-section */
.proceso-transformacion-section .card {
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07) !important;
}

@media (max-width: 767.98px) {
  #happy-patients-section .card {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767.98px) {
  #our-professionals-section .card {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767.98px) {
  .diferencia-renova-section .card {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767.98px) {
  .proceso-transformacion-section .card {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767.98px) {
  #diferencia-renova-content p {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

#diferencia-renova-content p {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
}

#happy-patients-section .card {
  background-image: url('https://medicalrenova.com/nc_assets/img/curveCard.svg') !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

@media (min-width: 992px) {
  #introduccion-container h1.display-4 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (min-width: 992px) {
  #introduccion-container p,
  #introduccion-container .lead,
  #introduccion-container #introduccion-text-p1 {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
  }
}
