.ofertasrotativo {
    width: 100%;
}

.ofertasrotativo__header {
    display: block;
    margin-bottom: 12px;
    padding: 0 15px;
    box-sizing: border-box;
}

.ofertasrotativo__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.ofertasrotativo--empty {
    padding: 12px 0;
}

.ofertasrotativo__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 15px;
    box-sizing: border-box;
}

.ofertasrotativo__track::-webkit-scrollbar {
    display: none;
}

.ofertasrotativo__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

/* Simula el `spaceBetween: -20` del Swiper de la app */
.ofertasrotativo__slide+.ofertasrotativo__slide {
    margin-left: -20px;
}

.ofertasrotativo__oferta {
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 0;
    border: none;
    border-radius: 5%;
    box-shadow: inset 0 -1em 1em rgba(0, 0, 0, 0.05), 0 0 0 1px #fff, 0.1em 0.1em 0.3em rgba(0, 0, 0, 0.15);
    width: 90%;
    min-height: 47vh;
    overflow: hidden;
    cursor: pointer;
}

/* Hacer la tarjeta clicable sin estilos de botón por defecto */
.ofertasrotativo__ofertaBtn {
    display: block;
    width: 90%;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer !important;
    text-align: inherit;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.ofertasrotativo__ofertaBtn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ofertasrotativo__fondooferta {
    text-align: center;
}

.ofertasrotativo__fotooferta {
    max-width: 100%;
    max-height: 439px;
    margin: 10px;
    margin-bottom: 30px;
    border-top-left-radius: 5%;
    border-top-right-radius: 5%;
    object-fit: cover;
}

.ofertasrotativo__areatienda {
    position: relative;
    bottom: 20px;
    margin: 0 10px;
    width: calc(100% - 20px);
    text-align: left;
    height: auto;
    overflow: hidden;
}

.ofertasrotativo__areatiendaRow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 8px;
}

.ofertasrotativo__logo {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: contain;
}

.ofertasrotativo__areatiendaText {
    flex: 1;
    min-width: 0;
}

.ofertasrotativo__separacion {
    display: block;
    height: 8px;
}

.ofertasrotativo__fecha {
    font-size: 18px;
    color: #000;
    text-align: left;
    margin-bottom: 5px;
    white-space: pre-wrap;
}

.ofertasrotativo__titulo {
    color: #000;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    margin-bottom: 5px;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.ofertasrotativo__textooferta {
    color: #000;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
}

.ofertasrotativo__empty {
    margin: 0;
}

/* Modal / popup detalle oferta (vista tipo app) */
.ofertasrotativo__modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.ofertasrotativo__modal--hidden {
    display: none;
}

.ofertasrotativo__modalBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.ofertasrotativo__modalDialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    overflow: hidden;
}

.ofertasrotativo__modalClose {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 26px;
    line-height: 40px;
    text-align: center;
    z-index: 2;
}

.ofertasrotativo__modalBody {
    max-height: calc(100% - 0px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.ofertasrotativo__modalCard {
    background: #fff;
    border-radius: 5%;
    overflow: hidden;
    box-shadow: inset 0 -1em 1em rgba(0, 0, 0, 0.05), 0 0 0 1px #fff, 0.1em 0.1em 0.3em rgba(0, 0, 0, 0.15);
}

.ofertasrotativo__modalFoto {
    margin-bottom: 10px;
    max-height: 360px;
}

.ofertasrotativo__modalAreatienda {
    bottom: 0;
}

.ofertasrotativo__modalTextBlock {
    padding: 0 18px 12px 18px;
}

.ofertasrotativo__modalText {
    white-space: pre-wrap;
    color: #000;
    line-height: 1.35;
}

.ofertasrotativo__modalSubTitle {
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 700;
    color: #000;
}

.ofertasrotativo__modalActions {
    display: flex;
    gap: 10px;
    padding: 12px 18px 18px 18px;
    flex-wrap: wrap;
}

.ofertasrotativo__modalAction {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #000;
    background: #fff;
    font-size: 14px;
}

/* Evitar scroll del documento al abrir el modal */
.ofertasrotativo__modalOpen {
    overflow: hidden;
}

.ofertasrotativo__ofertaBtn * {
    cursor: pointer !important;
}