
/* =========================================
   POPUP PROMOCIONAL CYBERROTUI
   ========================================= */

/* Fondo oscuro */
#rotui-promo {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Mostrar popup */
#rotui-promo.is-visible {
    display: flex;
}

/* Recuadro principal */
#rotui-promo .promo-box {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #777777;
    border: 10px solid #ffffff;
    outline: 5px solid #dddddd;
    padding: 20px 18px;
    box-sizing: border-box;
    text-align: center;
    margin: auto;
}

/* Botón de cerrar */
#rotui-promo .promo-close {
    position: absolute;
    top: -28px;
    right: -28px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #222222;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

/* Texto 20% OFF */
#rotui-promo .promo-discount {
    font-family: Georgia, serif;
    font-size: 75px;
    font-weight: bold;
    line-height: 0.9;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Descripción de la promoción */
#rotui-promo .promo-description {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

/* Código promocional */
#rotui-promo .promo-code {
    background: #171717;
    color: #e5b93d;
    padding: 13px 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* =========================================
   ADAPTACIÓN A CELULARES
   ========================================= */

@media (max-width: 600px) {

    #rotui-promo {
        padding: 20px;
    }

    #rotui-promo .promo-box {
        max-width: 95%;
        padding: 20px 12px;
        border-width: 8px;
    }

    #rotui-promo .promo-close {
        top: -25px;
        right: -15px;
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    #rotui-promo .promo-discount {
        font-size: clamp(52px, 15vw, 65px);
        margin-bottom: 20px;
    }

    #rotui-promo .promo-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    #rotui-promo .promo-code {
        font-size: clamp(19px, 5.5vw, 23px);
        padding: 12px 8px;
        letter-spacing: 1px;
    }
}

/* Pantallas de poca altura */
@media (max-height: 500px) {
    #rotui-promo .promo-box {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #rotui-promo .promo-discount {
        font-size: 55px;
        margin-bottom: 12px;
    }

    #rotui-promo .promo-description {
        margin-bottom: 12px;
    }
}
