 /*
     * Tipografía fluida: clamp(mínimo, proporcional, máximo).
     * El valor vw se calcula a partir del tamaño de diseño actual:
     *   - Desktop: tamaño a 1920px  -> px / 1920 * 100 = vw
     *   - Móvil:   tamaño a 375px   -> px / 375  * 100 = vw
     * Los márgenes van en em para que escalen junto con su texto.
     */

    /* =============================== */
    /* Desktop                         */
    /* =============================== */
    .banner-slider-novedades {
        position: relative;
        width: 100%;
        height: 90vh;
        overflow: hidden;
    }

    .img-background-novedades {
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .em-ss-overlay-text-container {
        position: absolute;
        top: 62%;
        left: 44%;
        transform: translate(-50%, -50%);
        width: 78%;
        padding: 20px;
        color: #fff;
        text-align: left;
        text-shadow: rgba(0, 0, 0, 0.2) 2px 2px 4px;
        z-index: 2;
    }

    .text-header,
    .text-subheader,
    .text-paragraph {
        font-family: 'Poppins Semi-Bold', sans-serif;
        color: #fff;
    }

    /* 28.8px @1920 */
    .text-header {
        font-size: clamp(1rem, 1.5vw, 3.5rem);
        line-height: 2;
        margin-bottom: 0;
    }

    /* 96px @1920 */
    .text-subheader {
        font-size: clamp(2rem, 5vw, 6rem);
        line-height: 1.1;
        margin-bottom: 0.1em;
        white-space: pre-line;
    }

    /* 28.8px @1920 */
    .text-paragraph {
        font-size: clamp(0.875rem, 1.5vw, 1.8rem);
        line-height: 1.5;
        margin-top: 1.75em;
        margin-bottom: 0;
    }

    @media (min-width: 1920px) {
        .em-ss-overlay-text-container {
            top: 60%;
        }
    }

    @media (max-width: 1366px) {
        .em-ss-overlay-text-container {
            left: 48%;
            width: 80%;
        }
    }

    @media (max-width: 991px) {
        .em-ss-overlay-text-container {
            left: 50%;
            width: 85%;
        }

        .text-paragraph {
            font-weight: normal;
        }
    }

    /* =============================== */
    /* Móvil                           */
    /* =============================== */
    @media (max-width: 768px) {
        #slider-mobile {
            position: relative;
            height: auto !important;
            margin-top: 0 !important;
        }

        .title-wrapper-text {
            font-size: 34px;
            margin-bottom: 5px;
            line-height: 1;
            white-space: pre-line;
        }

        /* La imagen define la altura del slider (proporción 375x230) */
        .em-img-background {
            display: block;
            width: 100%;
            height: auto;
            margin-top: 5.5rem; /* Ajusta el margen superior según sea necesario */
        }

        /* Anclado abajo: si el texto crece, sube en lugar de cortarse */
        .em-ss-overlay-text-container {
            top: auto;
            bottom: 4%;
            left: 50%;
            transform: translateX(-50%);
            width: 96%;
            padding: 0.4rem;
        }

        /* 15px @375 */
        .text-header {
            font-size: clamp(0.75rem, 4vw, 1.75rem);
            line-height: 1.2;
            margin-bottom: 0.25em;
        }

        /* 28.8px @375 */
        .text-subheader {
            font-size: clamp(1.5rem, 7.68vw, 3.5rem);
            line-height: 1;
            margin-bottom: 0.15em;
        }

        /* 12px @375 */
        .text-paragraph {
            font-size: clamp(0.625rem, 3.2vw, 1.5rem);
            line-height: 1.2;
            margin-top: 0.5em;
        }
    }
