
/* =========================================
   CARRUSEL PRINCIPAL TECNOSALUD
========================================= */

.ts-hero,
.ts-hero * {
    box-sizing: border-box;
}

.ts-hero {
    position: relative;
    width: calc(100% - 50px);
    height: 680px;
    margin: 25px auto;
    overflow: visible;
    background: #eaf0f2;
    border-radius: 18px;
    font-family: inherit;
}

.ts-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* DIAPOSITIVAS */

.ts-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.ts-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* =========================================
   IMAGEN DE FONDO
========================================= */

.ts-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 15px 55px;
    overflow: hidden;
}

.ts-slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 18px;
}

/* =========================================
   TARJETA BLANCA DE TEXTO
========================================= */

.ts-slide-content {
    position: absolute;
    z-index: 3;
    left: 6%;
    bottom: 40px;
    display: flex;
    align-items: center;
    width: 480px;
    max-width: 90%;
    min-height: 230px;
    padding: 28px 35px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.16);
}

.ts-text-content {
    width: 100%;
}

/* ETIQUETA */

.ts-eyebrow {
    display: inline-block;
    color: #32b5be;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* TÍTULO */

.ts-text-content h1 {
    color: #183b50;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 15px;
}

/* DESCRIPCIÓN */

.ts-text-content p {
    color: #526a7c;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 25px;
}

/* BOTÓN */

.ts-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 13px 22px;

    background: #f58220;
    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;

    transition: transform 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;

    display: flex;
    width: fit-content;
    margin: 0 auto;

}

.ts-btn span {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.ts-btn:hover {
    background: #e87516;
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.ts-btn:hover span {
    transform: translateX(5px);
}

/* =========================================
   FLECHAS
========================================= */


/* Flechas del carrusel */
.ts-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);

    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(21, 157, 165, 0.15);
    border-radius: 50%;

    background: #ffffff;
    color: #159da5;

    font-size: 25px;
    font-weight: 400;
    line-height: 1;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);

    cursor: pointer;
    transition: all 0.3s ease;
}

.ts-arrow:hover {
    background: #159da5;
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 22px rgba(21, 157, 165, 0.3);
}

.ts-prev {
    left: -6px;
}

.ts-next {
    right: -6px;
}

/* Flechas en celulares */
@media (max-width: 767px) {
    .ts-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .ts-prev {
        left: 2px;
    }

    .ts-next {
        right: 2px;
    }
}


/* =========================================
   INDICADORES
========================================= */

.ts-dots {
    position: absolute;
    z-index: 6;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;

    transition: width 0.3s ease,
                background 0.3s ease;
}

.ts-dot.active {
    width: 28px;
    background: #f58220;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .ts-hero {
        height: 600px;
    }

    .ts-slide-content {
    left: 5%;
    bottom: 65px;
    width: 410px;
    min-height: 240px;
    padding: 25px 28px;
}

    .ts-text-content h1 {
        font-size: 31px;
    }

    .ts-text-content p {
        font-size: 15px;
    }
}

/* =========================================
   CELULARES
========================================= */


/* =========================================
   RESPONSIVE - CELULARES
   ========================================= */

@media (max-width: 767px) {

    /* Contenedor principal del carrusel */
    .ts-hero {
        position: relative;
        width: calc(100% - 24px);
        height: 650px;
        margin: 12px auto;
        border-radius: 14px;
        overflow: hidden;
    }

    /* Área de las imágenes */
    .ts-slide-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 10px 12px;
        overflow: hidden;
    }

    /* Fotografías */
    .ts-slide-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
        border-radius: 14px;
    }

    /* Tarjeta blanca de información */
    .ts-slide-content {
        position: absolute;
        z-index: 3;
        left: 5%;
        bottom: 35px;
        width: 90%;
        max-width: 90%;
        min-height: auto;
        padding: 22px 20px;
        border-radius: 8px;
        background: #ffffff;
        box-sizing: border-box;
    }

    /* Contenido de texto */
    .ts-text-content {
        width: 100%;
        text-align: left;
    }

    /* Texto superior */
    .ts-eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    /* Título */
    .ts-slide-content h1 {
        font-size: 23px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    /* Descripción */
    .ts-slide-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    /* Botón */
    .ts-btn {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
        padding: 11px 20px;
        font-size: 12px;
        justify-content: center;
        align-items: center;
    }

    /* Flechas */
    .ts-arrow {
        position: absolute;
        top: 42%;
        z-index: 10;
        width: 34px;
        height: 34px;
        font-size: 23px;
        line-height: 1;
        border-radius: 50%;
    }

    .ts-prev {
        left: 2px;
    }

    .ts-next {
        right: 2px;
    }

    /* Indicadores */
    .ts-dots {
        position: absolute;
        z-index: 10;
        bottom: 12px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .ts-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        cursor: pointer;
    }
}

/* =========================================
   CELULARES PEQUEÑOS
   ========================================= */

@media (max-width: 380px) {

    .ts-hero {
        height: 620px;
    }

    .ts-slide-content {
        padding: 18px 16px;
        bottom: 32px;
    }

    .ts-slide-content h1 {
        font-size: 20px;
    }

    .ts-slide-content p {
        font-size: 12px;
    }

    .ts-eyebrow {
        font-size: 9px;
    }

    .ts-btn {
        font-size: 11px;
        padding: 10px 16px;
    }
}


/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {
    .ts-slide,
    .ts-btn,
    .ts-btn span,
    .ts-arrow,
    .ts-dot {
        transition: none;
    }
}


/* Ajuste exclusivo de la fotografía de Abordaje */
.ts-slide-image img.imagen-abordaje {
    object-position: center 10%;
}

@media (max-width: 767px) {
    .ts-slide-image img.imagen-abordaje {
        object-position: center 10%;
    }
}


/* Eliminar sombreado y filtros de las fotografías */
.ts-slide-image {
    background: transparent !important;
}

.ts-slide-image::before,
.ts-slide-image::after,
.ts-slide::before,
.ts-slide::after {
    content: none !important;
    display: none !important;
}

.ts-slide-image img {
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* Transparencia de la tarjeta de información */
.ts-slide-content {
    background-color: rgba(255, 255, 255, 0.60) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

