.tiendas {
    box-sizing: border-box
}

.tiendas *,
.tiendas *:before,
.tiendas *:after {
    box-sizing: inherit
}

.tiendas__filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 15px
}

.tiendas__label {
    font-weight: 600
}

.tiendas__input,
.tiendas__select {
    width: 100%;
    max-width: 100%;
    padding: 10px
}

.tiendas__submit {
    padding: 10px;
    cursor: pointer
}

.tiendas__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

.tiendas__item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(24, 49, 41, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(24, 49, 41, 0.08);
    overflow: hidden;
    padding: 12px
}

.tiendas__content {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    align-items: start;
    height: 100%
}

.tiendas__text {
    min-width: 0
}

.tiendas__media {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 18px
}

.tiendas__media--placeholder {
    position: relative;
    border: 1px solid currentColor;
    opacity: .35
}

.tiendas__media--placeholder::before {
    content: '';
    inset: 12px;
    position: absolute;
    border: 1px solid currentColor;
    border-radius: 2px
}

.tiendas__media--placeholder::after {
    content: '';
    inset: 12px;
    position: absolute;
    background:
        linear-gradient(45deg, transparent 47%, currentColor 47%, currentColor 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, currentColor 47%, currentColor 53%, transparent 53%);
    opacity: .7
}

.tiendas__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block
}

.tiendas__title {
    font-weight: 700
}

.tiendas__category {
    opacity: .8
}

.tiendas__address {
    opacity: .9
}

.tiendas__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
    justify-content: center;
    align-self: center
}

.tiendas__action {
    text-decoration: underline
}

.tiendas__action--btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer
}

.tiendas__action--btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px
}

.tiendas--offers {
    display: grid;
    gap: 12px
}

.tiendas__offersHeader {
    display: flex;
    justify-content: flex-start
}

.tiendas__offersTitle {
    font-weight: 700;
    font-size: 1.1em
}

.tiendas__offersMeta,
.tiendas__offersPlaceholder {
    margin: 0
}

.tiendas__modal[hidden] {
    display: none
}

html.tiendas-modal-open,
html.tiendas-modal-open body {
    overflow: hidden
}

.tiendas__modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px
}

.tiendas__modalOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45)
}

.tiendas__modalDialog {
    position: relative;
    width: min(920px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    margin: 0;
    z-index: 1;
    background: #fff;
    border: 1px solid rgba(24, 49, 41, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(24, 49, 41, 0.16);
    padding: 12px
}

.tiendas__modalTop {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.tiendas__modalTitle {
    font-weight: 700
}

.tiendas__tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px
}

.tiendas__tab {
    padding: 8px 12px;
    border: 1px solid rgba(24, 49, 41, 0.16);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-weight: 700
}

.tiendas__tab.is-active {
    text-decoration: underline
}

.tiendas__panel {
    display: none
}

.tiendas__panel.is-active {
    display: block
}

.tiendas__modalInfoHeader {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px
}

.tiendas__modalHero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: visible
}

.tiendas__modalCoverWrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 18px
}

.tiendas__modalCover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.tiendas__modalLogoWrap {
    position: absolute;
    left: 12px;
    bottom: -54px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(24, 49, 41, 0.08);
    box-shadow: 0 20px 40px rgba(24, 49, 41, 0.16)
}

.tiendas__modalLogo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.tiendas__modalInfoHeader--hasLogo .tiendas__modalHero {
    margin-bottom: 58px
}

.tiendas__modalInfoHeader--hasLogo .tiendas__modalInfoText {
    padding-top: 6px
}

.tiendas__modalName {
    font-weight: 800;
    font-size: 1.1em
}

.tiendas__modalCategory {
    opacity: .85
}

.tiendas__modalAddress,
.tiendas__modalDescription {
    opacity: .92
}

.tiendas__modalActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.tiendas__offersList {
    display: grid;
    gap: 12px
}

.tiendas__offersDetailList {
    display: grid;
    gap: 12px
}

/* Estilo "detalle" como ofertasrotativo (solo dentro del modal de tiendas) */
.tiendas__modal .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)
}

.tiendas__modal .ofertasrotativo__fondooferta {
    text-align: center
}

.tiendas__modal .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
}

.tiendas__modal .ofertasrotativo__modalFoto {
    margin-bottom: 10px;
    max-height: 360px
}

.tiendas__modal .ofertasrotativo__areatienda {
    position: relative;
    bottom: 20px;
    margin: 0 10px;
    width: calc(100% - 20px);
    text-align: left;
    height: auto;
    overflow: hidden
}

.tiendas__modal .ofertasrotativo__modalAreatienda {
    bottom: 0
}

.tiendas__modal .ofertasrotativo__areatiendaRow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 8px
}

.tiendas__modal .ofertasrotativo__logo {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    object-fit: contain
}

.tiendas__modal .ofertasrotativo__areatiendaText {
    flex: 1;
    min-width: 0
}

.tiendas__modal .ofertasrotativo__separacion {
    display: block;
    height: 8px
}

.tiendas__modal .ofertasrotativo__fecha {
    font-size: 18px;
    color: #000;
    text-align: left;
    margin-bottom: 5px;
    white-space: pre-wrap
}

.tiendas__modal .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
}

.tiendas__modal .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%
}

.tiendas__modal .ofertasrotativo__modalTextBlock {
    padding: 0 18px 12px 18px
}

.tiendas__modal .ofertasrotativo__modalText {
    white-space: pre-wrap;
    color: #000;
    line-height: 1.35
}

.tiendas__modal .ofertasrotativo__modalSubTitle {
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 700;
    color: #000
}

.tiendas__modal .ofertasrotativo__modalActions {
    display: flex;
    gap: 10px;
    padding: 12px 18px 18px 18px;
    flex-wrap: wrap
}

.tiendas__modal .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
}

.tiendas__offerItem {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
    background: #fff;
    border: 1px solid rgba(24, 49, 41, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(24, 49, 41, 0.08);
    overflow: hidden;
    padding: 12px
}

.tiendas__offerImage {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 18px
}

.tiendas__offerStore {
    font-weight: 700
}

.tiendas__offerTitle {
    opacity: .92
}

.tiendas__modalLoading,
.tiendas__modalEmpty,
.tiendas__modalError {
    margin: 0
}

@media (max-width: 640px) {
    .tiendas__content {
        grid-template-columns: 1fr;
        row-gap: 10px
    }

    .tiendas__actions {
        justify-content: flex-start
    }

    .tiendas__modalHero {
        height: 360px
    }

    .tiendas__offerItem {
        grid-template-columns: 1fr
    }

    .tiendas__offerImage {
        width: 100%;
        height: 180px
    }
}

.tiendas__empty,
.tiendas__error {
    margin: 0
}