/* --- Estructura de Fila para el Slider --- */
.slider-container {
    display: flex;
    flex-wrap: nowrap; /* Evita que las tarjetas se vayan abajo */
    overflow-x: hidden; /* Esto lo controlará tu JS de carrusel */
    padding: 30px 60px;
}

.section-title{
    font-weight: 300;
    color: #005BAC;
    font-size: 40px;
    text-align: center;
}

.product-item {

    padding: 0 15px;
    box-sizing: border-box; 
}


.product-card .image-wrapper img {
    width: 100%;
    position: relative;
    z-index: 5;
}

.image-wrapper {
    position: relative;
    z-index: 5; /* Mantiene la imagen por encima de los bordes */
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    
    /* EL TRUCO ESTRELLA: Subimos la imagen 150px. 
       Esto hace que se monte exactamente sobre el borde superior de la tarjeta.
       Como es PNG, el borde superior se ve por detrás formando la línea. */
    margin-top: -150px; 
}
/* --- LA LÍNEA QUE ATRAVIESA --- */
.crossing-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px; /* IGUALADO A 2PX PARA QUE COINCIDA CON EL BORDE */
    transform: translateY(-50%);
    z-index: 2;
    background-color: var(--color-borde); /* USAMOS LA VARIABLE ¡Nos ahorramos 9 líneas! */
}

/* --- Reutilizamos tu lógica de 3 colores --- */
.product-item:nth-child(3n+1) .btn-more { color: #59B4BA; }
.product-item:nth-child(3n+1) .icon-tech { background-color: #59B4BA; border-top-left-radius: 30px; width: max-content; border: 1px solid #59B4BA; }

.product-item:nth-child(3n+2) .btn-more { color: #005BAC; }
.product-item:nth-child(3n+2) .icon-tech { background-color: #005BAC; border-top-left-radius: 30px; width: max-content; border: 1px solid #005BAC; }


.product-item:nth-child(3n+3) .btn-more { color: #ff6633; }
.product-item:nth-child(3n+3) .icon-tech { background-color: #ff6633; border-top-left-radius: 30px; width: max-content; border: 1px solid #ff6633; }

/* Tarjeta 1: Verde */
.product-item:nth-child(3n+1) .product-card { 
    --color-borde: #59B4BA; 
}

/* Tarjeta 2: Azul oscuro */
.product-item:nth-child(3n+2) .product-card { 
    --color-borde: #005BAC; 
}

/* Tarjeta 3: Naranja */
.product-item:nth-child(3n+3) .product-card { 
    --color-borde: #ff6633; 
}
.product-card .icon-tech img {
    width: 60px;
}

.product-card a.btn-more {
    padding: 0 20px;
}

/* --- CONFIGURACIÓN DE LA TARJETA PRINCIPAL --- */
.product-card {
    position: relative;
    border-radius: 30px;
    background-color: #fff;
    
    /* CAMBIO: Borde finito y azul como base */
    border: 1px solid #005BAC; 
    
    margin-top: 150px; 
}

/* =========================================
   BORDES GRUESOS DECORATIVOS (Efecto Bracket)
   ========================================= */

/* 1. Esquina Superior Derecha */
.product-card::before {
    content: "";
    position: absolute;
    /* Lo empujamos -2px hacia afuera para que tape perfectamente el borde finito */
    top: -8px; 
    right: -8px;
    
    /* Qué tan largas son las líneas (ajústalo a tu gusto) */
    width: 120px;  /* Largo horizontal */
    height: 120px; /* Largo vertical bajando por la derecha */
    
    /* Solo pintamos arriba y a la derecha con un grosor de 6px */
    border-top: 8px solid var(--color-borde);
    border-right: 8px solid var(--color-borde);
    
    /* Curvamos la esquina para que coincida con la tarjeta */
    border-top-right-radius: 35px; 
    
    pointer-events: none; /* Para que no estorbe al hacer clic */
    z-index: 4;
}

/* 2. Esquina Inferior Izquierda */
.product-card::after {
    content: "";
    position: absolute;
    bottom: -8px; 
    left: -8px;
    
    /* Qué tan largas son las líneas */
    width: 120px; /* Largo horizontal hacia la derecha */
    height: 120px; /* Largo vertical subiendo por la izquierda */
    
    /* Solo pintamos abajo y a la izquierda */
    border-bottom: 8px solid var(--color-borde);
    border-left: 8px solid var(--color-borde);
    
    /* Curvamos la esquina */
    border-bottom-left-radius: 35px; 
    
    pointer-events: none;
    z-index: 4;
}
.product-card .icon-tech {
    border-bottom-right-radius: 30px;
    padding: 0 15px;
    width: 80px;
    height: 80px;
        display: flex;
    align-items: center;
}

.footer-card {
    position: relative;
 display: flex;
   justify-content: center;
   align-items: center;
  padding: 30px 0;
}

.content-wrapper h3, .content-wrapper p {
    padding: 0 20px;
}


/* =========================================
   ESTILOS DEL BANNER INTERNO
   ========================================= */

.banner-interna {
    position: relative;
    width: 100%;
    height: 280px; /* Alto del banner para computadoras */
}

/* El bloque azul que se queda al fondo */
.banner-azul {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%; /* Llega un poco más allá de la mitad */
    height: 100%;
    background-color: #005BAC; /* Tu azul corporativo */
    border-top-left-radius: 90px; /* Curva izquierda */
    z-index: 1; /* Se queda en la capa de abajo */
    
    /* Centramos el texto verticalmente */
    display: flex;
    align-items: center;
    padding-right: 15%; /* Para que el texto no quede escondido bajo la foto */
}

.titulo-banner {
    color: white;
    font-weight: 300; /* Letra delgada (Light) */
    font-size: 2.8rem;
    margin: 0;
}

/* El bloque de la imagen que va encima */
.banner-img-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%; /* Ocupa el 55% de la derecha (se solapa con el azul) */
    height: 100%;
    border-top-left-radius: 90px; /* La curva mágica superior */
    border-bottom-right-radius: 90px; /* La curva inferior derecha */
    overflow: hidden; /* Evita que la foto se salga de las curvas */
    z-index: 2; /* Se coloca ENCIMA del bloque azul */
}

.banner-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llena el espacio sin aplastar la foto */
    object-position: right center; /* Asegura que el logo de la derecha se vea */
}

/* =========================================
   ESTILOS DE BOTONES DE CATEGORÍAS
   ========================================= */

.btn-categoria {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80px; /* Le da esa altura de "placa" que tiene tu diseño */
    background-color: #f6f6f6; /* Gris súper clarito */
    color: #999999; /* Gris para el texto */
    border-radius: 8px; /* Bordes suavemente redondeados */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300; /* Letra delgada para mantener la elegancia */
    text-align: center;
    padding: 15px;
    line-height: 1.2;
    transition: all 0.3s ease; /* Transición suave */
}

/* Efecto al pasar el mouse por encima (opcional pero recomendado para UX) */
.btn-categoria:hover {
    background-color: #e9ecef; /* Oscurece un poquito el gris */
    color: #005BAC; /* Cambia el texto al azul de tu marca */
    text-decoration: none;
}

h3.name-equipo{
    color: #59B4BA;
    text-align: center;
    font-weight: 300;
    padding: 10px 0 0 0;
}

/* =========================================================================
   ESTILOS DE INTERACTIVIDAD UNIFICADOS (HOME, FILTROS Y TAXONOMÍAS)
   ========================================================================= */

/* 1. Preparación del estado inicial y transiciones suaves (Evita saltos bruscos) */
.product-item .product-card {
    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;
}

/* Transición para la imagen del equipo médico */
.product-item .image-wrapper img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Transición para el botón "Ver más" */
.product-item .btn-more {
    padding: 0 20px;
    border-radius: var(--bs-border-radius-2xl) !important;
    background: #7ec5a3 !important;
}

/* 2. EFECTOS AL PASAR EL CURSOR (HOVER MULTI-PÁGINA) */

/* Elevación, escalado del card y ajuste de borde */
.product-item a:hover .product-card {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 15px 35px rgba(0, 91, 172, 0.12) !important; /* Sombra sutil con el azul corporativo */
    border: 2px solid #005BAC !important;
}

/* Mini zoom independiente a la fotografía del equipo médico (PNG) */
.product-item a:hover .image-wrapper img {
    transform: scale(1.05) !important;
}

/* Destacar el botón de acción "Ver más" pasándolo al azul de Neusoft */
.product-item a:hover .btn-more {
    background-color: #005BAC !important; 
    color: #ffffff !important;
    font-weight: bold;
}

/* 3. REUTILIZACIÓN DE COLORES PARA PIE DE TARJETA (Píldoras e Iconos tecnológicos) */
.product-item:nth-child(3n+1) .btn-more { color: white; }
.product-item:nth-child(3n+1) .icon-tech { background-color: #59B4BA; border-top-left-radius: 30px; width: max-content; border: 1px solid #59B4BA; }

.product-item:nth-child(3n+2) .btn-more { color: white; }
.product-item:nth-child(3n+2) .icon-tech { background-color: #005BAC; border-top-left-radius: 30px; width: max-content; border: 1px solid #005BAC; }

.product-item:nth-child(3n+3) .btn-more { color: white; }
.product-item:nth-child(3n+3) .icon-tech { background-color: #7ec5a3; border-top-left-radius: 30px; width: max-content; border: 1px solid #7ec5a3; }

/* Inyección de las variables de color por secuencia de tarjeta */
.product-item:nth-child(3n+1) .product-card { --color-borde: #59B4BA; }
.product-item:nth-child(3n+2) .product-card { --color-borde: #005BAC; }
.product-item:nth-child(3n+3) .product-card { --color-borde: #7ec5a3; }

.product-item a:hover .btn-more {
    background-color: #066aab !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}


h4.subtitle-equipo {
    font-size: 16px;
    text-align: center;
    color: #555;
    font-weight: 200;
}
/* --- RESPONSIVE PARA CELULARES --- */
@media (max-width: 768px) {
    .banner-interna {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .banner-azul {
        position: relative;
        width: 100%;
        height: 120px;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px; /* En móvil curvamos ambos lados */
        padding-right: 0;
        justify-content: center;
        text-align: center;
    }

    .titulo-banner {
        font-size: 2rem;
        padding: 0 20px;
    }

    .banner-img-box {
        position: relative;
        width: 100%;
        height: 200px;
        margin-top: -30px; /* Hacemos que la foto suba y tape un poco al azul */
        border-top-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
}