/* Tienda moderna. Loaded only for web_config.tema = marketplace. */
body.theme-marketplace { background: var(--surface-sunken); }
body.theme-marketplace .font-display,
body.theme-marketplace .sec-title { font-family: Inter, sans-serif; letter-spacing: -0.035em; }
body.theme-marketplace .navbar { box-shadow: none; }
body.theme-marketplace .nav-search { max-width: 740px; }
body.theme-marketplace .nav-search input { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; }
body.theme-marketplace .btn-nav-link > i { display: none; }
body.theme-marketplace .navbar .btn-nav-link { font-weight: 500; }
body.theme-marketplace .brand-logo-wrap { width: auto; min-width: 90px; }
body.theme-marketplace .brand-logo { max-width: 150px; max-height: 46px; }
.modern-store { padding-top: 24px; padding-bottom: 32px; }
.modern-campaigns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
.modern-campaigns--single { grid-template-columns: 1fr; }
.modern-hero, .modern-promo { position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; background: var(--color-fondo-oscuro); color: #fff; }
.modern-hero { min-height: 360px; display: flex; align-items: center; }
.modern-hero picture, .modern-promo picture { position: absolute; inset: 0; z-index: -2; }
.modern-hero img, .modern-promo img { width: 100%; height: 100%; object-fit: cover; }
.modern-hero::before, .modern-promo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.83), rgba(0,0,0,.38) 65%, rgba(0,0,0,.12)); }
.modern-hero--plain::before, .modern-promo--plain::before { background: linear-gradient(120deg, rgba(0,0,0,.35), transparent); }
.modern-hero__content { padding: 36px; max-width: 88%; }
.modern-eyebrow { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.modern-hero .modern-hero__title { color: #fff; font-family: Inter, sans-serif; font-size: clamp(2rem, 3.5vw, 3.3rem); font-weight: 750; line-height: 1.06; letter-spacing: -.045em; margin: 0 0 16px; overflow-wrap: anywhere; }
.modern-hero p { font-size: 1rem; line-height: 1.5; margin-bottom: 24px; max-width: 380px; }
.modern-cta { display: inline-flex; align-items: center; gap: 20px; background: var(--color-acento); color: var(--on-acento); border-radius: 7px; padding: 13px 20px; font-weight: 650; font-size: .9rem; text-decoration: none; min-height: 44px; }
.modern-cta:hover { background: var(--color-acento-hover); color: var(--on-acento); }
.modern-promos { display: grid; grid-auto-rows: 1fr; gap: 16px; min-width: 0; }
.modern-promo { display: flex; align-items: flex-end; min-height: 170px; text-decoration: none; }
.modern-promo:hover { color: #fff; }
.modern-promo__content { padding: 22px; }
.modern-promo h2 { color: #fff; font-family: Inter, sans-serif; font-size: clamp(1.1rem, 1.6vw, 1.55rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 12px; }
.modern-promo__content > span { font-size: .8rem; font-weight: 600; }
.modern-promo__content i { margin-left: 8px; }
.modern-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modern-section-heading h2 { font-family: Inter, sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: -.035em; margin: 0; }
.modern-section-heading a { font-size: .85rem; color: var(--enlace-legible); white-space: nowrap; }
.modern-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.modern-category { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 12px; min-height: 152px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-align: center; text-decoration: none; font-size: .85rem; font-weight: 600; }
.modern-category:hover { border-color: var(--color-boton-primario); color: var(--enlace-legible); }
.modern-category__image { display: flex; align-items: center; justify-content: center; height: 80px; width: 100%; }
.modern-category__image img { max-width: 100%; height: 100%; object-fit: contain; }
.modern-category__image > i { font-size: 2rem; color: var(--primario-legible); }
.modern-category__arrow { position: absolute; right: 10px; top: 10px; font-size: .65rem; opacity: .45; }
.modern-categories { margin-bottom: 36px; }
body.theme-marketplace .featured-section .sec-dot { display: none; }
body.theme-marketplace .featured-section .sec-title { font-size: 1.4rem; }
body.theme-marketplace .prod-card { border-radius: 10px; box-shadow: none; border: 1px solid var(--border); }
body.theme-marketplace .prod-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(0 0 0 / 5%); }
body.theme-marketplace .prod-img,
body.theme-marketplace .featured-section .prod-img { height: 200px; background: var(--surface); padding: 20px; }
body.theme-marketplace .prod-img img { object-fit: contain; }
body.theme-marketplace .prod-tag--category, body.theme-marketplace .prod-tag--featured { display: none; }
body.theme-marketplace .prod-body { padding: 16px; }
body.theme-marketplace .prod-name,
body.theme-marketplace .featured-section .prod-name { font-size: .9rem; line-height: 1.45; }
body.theme-marketplace .prod-price { color: var(--text); font-size: 1.3rem; letter-spacing: -.03em; }
body.theme-marketplace .product-price-stack { display: flex; flex-direction: column; }
body.theme-marketplace .modern-payment-options { order: 2; margin-top: 5px; }
.modern-payment-options summary { color: var(--enlace-legible); font-size: .75rem; cursor: pointer; padding: 5px 0; }
.modern-payment-options .product-price-line { margin-top: 5px; }
body.theme-marketplace .prod-price-note { order: 1; }
body.theme-marketplace .prod-offer-urgency { order: 3; }
body.theme-marketplace .add-btn { min-height: 42px; border-radius: 6px; }
body.theme-marketplace .prod-tool-btn { border-color: transparent; background: transparent; }
body.theme-marketplace .brand-strip { background: var(--surface); border-radius: 10px; margin: 32px 0; }
body.theme-marketplace #software { border-radius: 12px; margin-top: 32px; }
body.theme-marketplace .catalog-page { max-width: 1400px; margin-inline: auto; }
body.theme-marketplace a:focus-visible, body.theme-marketplace summary:focus-visible { outline: 2px solid var(--primario-legible); outline-offset: 4px; }
@media (max-width: 991.98px) {
    body.theme-marketplace .navbar > .container-xl { flex-wrap: wrap; }
    body.theme-marketplace .nav-search { order: 5; flex: 0 0 100%; max-width: none; margin: 6px 0 0; }
    body.theme-marketplace { --header-h: 120px; }
    .modern-hero__content { padding: 24px; max-width: 100%; }
    .modern-hero { min-height: 320px; }
}
@media (max-width: 767px) {
    .modern-store { padding-top: 12px; }
    .modern-campaigns { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
    .modern-hero { min-height: 260px; }
    .modern-hero .modern-hero__title { color: #fff; font-size: 2rem; }
    .modern-hero p { font-size: .875rem; margin-bottom: 18px; }
    .modern-eyebrow { font-size: .6rem; margin-bottom: 10px; }
    .modern-promos { grid-template-columns: 1fr 1fr; gap: 10px; }
    .modern-promo { min-height: 130px; }
    .modern-promo__content { padding: 14px; }
    .modern-promo h2 { color: #fff; font-size: 1.05rem; }
    .modern-category-grid { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
    .modern-category { flex: 0 0 132px; scroll-snap-align: start; }
    .modern-category { min-height: 120px; padding: 12px; }
    .modern-category__image { height: 56px; }
    .modern-section-heading h2, body.theme-marketplace .featured-section .sec-title { font-size: 1.2rem; }
    body.theme-marketplace .prod-img, body.theme-marketplace .featured-section .prod-img { height: 145px; padding: 12px; }
    body.theme-marketplace .prod-body { padding: 12px; }
    body.theme-marketplace .prod-meta { flex-wrap: wrap; gap: 5px; }
    body.theme-marketplace .prod-name, body.theme-marketplace .featured-section .prod-name { font-size: .8rem; }
    body.theme-marketplace .prod-price { font-size: 1.1rem; }
    body.theme-marketplace .prod-actions { flex-wrap: wrap; }
    body.theme-marketplace .prod-tool-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body.theme-marketplace .prod-card:hover { transform: none; }
}

/* Same campaign footprint, with the shared Bootstrap/swipe carousel behavior. */
.modern-carousel { min-width: 0; position: relative; }
.modern-carousel .carousel-inner { display: grid; height: 100%; border-radius: 12px; }
.modern-carousel .carousel-item { grid-area: 1 / 1; display: block; float: none; margin-right: 0; visibility: hidden; }
.modern-carousel .carousel-item.active,
.modern-carousel .carousel-item-next,
.modern-carousel .carousel-item-prev { visibility: visible; }
.modern-carousel .modern-hero { height: 100%; }
.modern-carousel .modern-hero__content { padding-bottom: 66px; }
.modern-carousel__controls { position: absolute; bottom: 12px; right: 16px; left: 16px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.modern-carousel__controls > button { width: 36px; height: 36px; border: 1px solid #ffffff80; border-radius: 50%; background: #0008; color: #fff; }
.modern-carousel__controls .carousel-indicators { position: static; margin: 0; gap: 6px; align-items: center; }
.modern-carousel__controls .carousel-indicators button { width: 8px; height: 8px; border: 0; border-radius: 10px; margin: 0; background: #fff; }
.modern-carousel__controls .carousel-indicators button.active { width: 24px; }
.modern-carousel__controls button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
