/* =========================================
   PÁGINA INTERNA: ESTILOS ESPECÍFICOS
   ========================================= */

/* Cajas negras para las imágenes clínicas (Scans) */

main{
    max-width: 1200px;
    margin: 0 auto;
    color: #606060 !important;
}
.scan-box {
    
    border-radius: 20px;
    
    display: inline-block;
    width: 100%;
}

p.text-muted.small.px-3.descripcion-scanbox{
    font-size: 15px!important;
    font-weight: 300;
    background: #f1f7f7;
    padding: 40px 10px 15px 10px;
    margin-top: -25px;
     border-bottom-left-radius: 20px;
      border-bottom-left-radius: 20px;
}
.scan-box img {
    border-radius: 12px;
    width: 100%;
    object-fit: contain;
}

/* Botón de descarga Turquesa */
.btn-descarga-pill {
    background-color: #59B4BA;
    color: white;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-descarga-pill:hover {
    background-color: #4a9fa5;
    color: white;
    transform: translateY(-2px);
}

/* Botones de Categorías (Grises) */
.btn-categoria {
    display: flex!important;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80px;
    background-color: #f6f6f6;
    color: #999999;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    padding: 15px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.btn-categoria:hover {
    background-color: #e9ecef;
    color: #005BAC;
}

/* =========================================
   FOOTER GLOBAL
   ========================================= */
.footer-neusoft {
    background-color: #fafafa;
}

.footer-neusoft form input:focus {
    outline: none;
    box-shadow: none;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #005BAC;
}

.footer-copyright {
    background-color: #005BAC;
    width: 100%;
}

h1.display-4.fw-light.text-turquesa {
    color: #59B4BA;
}

h4.subtitle-equipo{
    margin-bottom: 20px;
}
section.container.py-5.text-center.infografia-image {
    width: 75% !important;
}

/* =========================================================================
   GALERÍA INTERACTIVA DE SCANS (EFECTOS LIGHTBOX)
   ========================================================================= */

/* Caja contenedora */
.item-galeria-interactivo .scan-box {
    position: relative;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 91, 172, 0.1);
}

/* Transición limpia para la imagen interna */
.dynamic-gallery-img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Capa oscura que aparece en el Hover */
.scan-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 91, 172, 0.6); /* Azul de Neusoft con transparencia */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

h4.scan-overlay-title.text-white.small.m-0.text-uppercase.fw-normal.letter-spacing-1 {
    padding: 30px 0 0 0;
}
/* Despertar efectos en Hover */
.item-galeria-interactivo:hover .scan-box-overlay {
    opacity: 1;
    visibility: visible;
}

.item-galeria-interactivo:hover .dynamic-gallery-img {
    transform: scale(1.06) !important;
}

/* Ajustes especiales para el modal oscuro (Visor Clínico) */
.lightbox-neusoft-modal .modal-content {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.carousel-caption-static {

    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    max-width: 80%;
    letter-spacing: 0.5px;
}

.carousel-item{
        background: #59B4BA !important;
}

/* =========================================================================
   ADAPTACIÓN EXTENDIDA PARA EQUIPOS RELACIONADOS (REJILLA DE 4 COLUMNAS)
   ========================================================================= */

/* 1. Forzar espaciado superior idéntico para que la imagen se monte sobre el borde */


.products-screen .image-wrapper {

    position: relative;
    z-index: 5;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}


a.product-card-link.text-decoration-none.text-dark {
    position: relative;
    border-radius: 30px;
    background-color: #fff;
    border: 1px solid #005BAC;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
    will-change: transform, box-shadow;
}


.footer-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

 
/* Tarjeta Posición 3 (Secuencia Naranja/Coral) */
.product-item .btn-more {       padding: 0 20px;
    color: white !important;
    border-radius: var(--bs-border-radius-2xl) !important;
    background: #7ec5a3 !important;
}


/* 3. Normalización del comportamiento del enlace global en los Relacionados */
.products-screen .product-item a.product-card-link {
    color: unset !important;
    text-decoration: none !important;
    display: block;
}



.product-item a:hover .btn-more {
    background-color: #066aab !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}