/* ===== CONTENEDOR RAÍZ SEGURO ===== */
.csh-hospitales-section {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232d4f95' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    padding: 70px 0;
    font-family: 'Inter', -apple-system, sans-serif;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.csh-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ===== MÁSCARA DEL CARRUSEL MODERNO ===== */
.csh-carousel-mask {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Sutiles desvanecidos laterales degradados muy finos */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* TRACK CON ACELERACIÓN POR HARDWARE */
.csh-hospitales-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: csh-infinite-scroll 35s linear infinite;
}

/* Congelar la marcha suave al poner el mouse encima para lectura */
.csh-carousel-mask:hover .csh-hospitales-track {
    animation-play-state: paused;
}

/* ===== TARJETAS CRISTALINAS EXTRA COMPRIMIDAS ===== */
.csh-hospital-card {
    background-color: #ffffff;
    border: 1px solid rgba(217, 215, 215, 0.6);
    border-radius: 4px;
    padding: 18px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;

    /* Dimensiones reducidas exactas basadas en UI */
    width: 210px;
    min-height: 115px;
    flex-shrink: 0;

    box-shadow: 0 2px 8px rgba(11, 28, 51, 0.03);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.csh-hospital-card:hover {
    background-color: #ffffff;
    border-color: #b4935a;
    box-shadow: 0 10px 25px rgba(11, 28, 51, 0.06);
}

/* CONTENEDOR LOGO ADAPTATIVO */
.csh-hospital-logo {
    height: 95px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.csh-hospital-logo img {
    max-height: 100%;
    max-width: 85%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.75);
    transition: filter 0.3s ease;
}

.csh-hospital-card:hover .csh-hospital-logo img {
    filter: grayscale(0%) opacity(1);
}

.csh-hospital-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 400;
    color: #1c2e4a;
    margin: 0;
    letter-spacing: -0.1px;
}

.csh-hospital-status {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #a0aec0;
    text-transform: uppercase;
}

.csh-gold-status {
    color: #b4935a;
}

/* ===== PANEL DE CIERRE DE AUTORIDAD JCI ===== */
.csh-authority-panel {
    border-top: 1px solid rgba(90, 110, 133, 0.12);
    background: linear-gradient(160deg, #1a2744 0%, #0d1628 60%, #0a1020 100%);
    padding: 90px;
    max-width: 100%;
    margin: 10px auto 0 auto;
    text-align: center;
}

.csh-authority-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #b4935a;
    display: block;
    margin-bottom: 16px;
}

.csh-authority-text {
    font-size: 15px;
    line-height: 1.65;
    color: #cdcaca;
    margin: 0;
}

.csh-authority-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* ===== ANIMACIÓN DEL LOOP INFINITO (Mueve exactamente el 50% correspondiente al set original) ===== */
@keyframes csh-infinite-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        /* Desplaza exactamente la mitad del ancho total combinando el ancho exacto + gaps */
        transform: translate3d(calc(-50% - 8px), 0, 0);
    }
}

/* RESPONSIVO AJUSTADO */
@media (max-width: 768px) {
    .csh-hospitales-section {
        padding: 60px 0;
    }

    .csh-container {
        padding: 0 24px;
        gap: 35px;
    }

    .csh-title {
        font-size: 24px;
    }

    .csh-authority-text {
        font-size: 14px;
    }

    .csh-hospitales-track {
        animation-duration: 25s;
    }

    /* Un poco más rápido en móviles pequeños */
}