/* OutoRecords — Responsive Pro R127–R136 */

:root {
    --ec-breakpoint-xs: 375px;
    --ec-breakpoint-sm: 640px;
    --ec-breakpoint-md: 768px;
    --ec-breakpoint-lg: 1024px;
    --ec-breakpoint-xl: 1280px;
    --ec-cart-sheet-max: 96dvh;
    --ec-admin-bottom-nav-h: 4.25rem;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}
#app {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Cart layout — all breakpoints */
.cart-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.cart-footer-cta {
    flex-shrink: 0;
    z-index: 3;
    background: #18181b;
    border-top: 1px solid #27272a;
    padding-top: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}
.cart-wizard-steps span {
    min-height: auto;
    cursor: pointer;
}
.cart-item-chip button {
    min-height: auto;
}
.cart-footer-cta button.text-xs {
    min-height: auto;
}

/* R127 — carrito compacto */
@media (max-width: 1023px) {
    .cart-panel-compact {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: var(--ec-cart-sheet-max) !important;
        max-height: var(--ec-cart-sheet-max) !important;
        border-left: none !important;
        border-top: 1px solid #27272a;
        border-radius: 1rem 1rem 0 0;
        transform: translateY(100%) !important;
        overflow: hidden;
        --tw-translate-x: 0 !important;
    }
    .cart-panel-compact.cart-panel-open {
        transform: translateY(0) !important;
        height: var(--ec-cart-sheet-max) !important;
        max-height: var(--ec-cart-sheet-max) !important;
    }
    .cart-panel-compact.translate-x-full,
    .cart-panel-compact.translate-x-0 {
        --tw-translate-x: 0 !important;
    }
    .cart-item-chip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    .cart-item-chip .chip-main {
        min-width: 0;
        flex: 1;
        line-height: 1.35;
    }
    .cart-item-chip .chip-main span {
        display: inline;
    }
    @media (max-width: 639px) {
        .cart-item-chip {
            flex-direction: column;
            align-items: stretch;
        }
        .cart-item-chip .chip-main {
            white-space: normal;
            word-break: break-word;
        }
    }
    .cart-panel-compact.cart-checkout-mode,
    .cart-panel-compact.cart-checkout-mode.cart-snap-peek,
    .cart-panel-compact.cart-panel-open {
        max-height: var(--ec-cart-sheet-max) !important;
        height: var(--ec-cart-sheet-max) !important;
    }
}

/* Carrito checkout — pantallas muy pequeñas (iPhone SE, Android compacto) */
@media (max-width: 374px) {
    :root {
        --ec-cart-sheet-max: 98dvh;
    }
    #cart-panel.cart-panel-compact {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
    .cart-wizard-steps span {
        font-size: 0.58rem;
        padding: 0.28rem 0.15rem;
    }
    .cart-footer-cta {
        padding-top: 0.5rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }
    .cart-footer-cta .border-t.border-zinc-800 {
        margin-bottom: 0.5rem;
        padding-top: 0.35rem;
    }
    .cart-footer-cta .text-lg {
        font-size: 1rem;
    }
    .cart-footer-cta .cart-primary-cta {
        min-height: 44px;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
    .cart-scroll-body .text-xs {
        font-size: 0.68rem;
        line-height: 1.35;
    }
}

.cart-wizard-steps {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}
.cart-wizard-steps span {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #27272a;
    color: #71717a;
}
.cart-wizard-steps span.active {
    background: #115e59;
    color: #5eead4;
    font-weight: 700;
}

/* R128 — booking mobile */
@media (max-width: 639px) {
    .sala-card-compact {
        padding: 0.75rem !important;
    }
    .sala-card-compact .sala-desc-long {
        display: none;
    }
    .slot-thumb-btn {
        min-height: 48px !important;
        min-width: 48px !important;
        font-size: 0.875rem;
    }
}
.header-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.header-mobile-menu.open {
    max-height: 20rem;
}

/* Index — nav drawer + CTAs (bottom sheet móvil) */
.nav-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: navFadeIn 0.2s ease;
}
@keyframes navFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.header-mobile-menu-panel {
    position: fixed;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    top: auto;
    width: min(calc(100% - 1.5rem), 22rem);
    max-height: min(85dvh, calc(100% - 2rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.375rem 0.875rem 0.875rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.99) 0%, rgba(9, 9, 11, 0.98) 100%);
    border: 1px solid #3f3f46;
    border-radius: 1rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(63, 63, 70, 0.35);
    transform: translateX(-50%);
    animation: navSheetSlideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes navSheetSlideUp {
    from { transform: translateX(-50%) translateY(calc(100% + 1rem)); opacity: 0.85; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-mobile-drawer,
    .header-mobile-menu-panel {
        animation: none;
    }
}
.nav-mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.125rem 0 0.5rem;
    margin-bottom: 0.125rem;
}
.nav-mobile-sheet-handle {
    position: absolute;
    top: 0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: #52525b;
}
.nav-mobile-sheet-title {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a1a1aa;
}
.nav-mobile-sheet-close {
    position: absolute;
    right: 0;
    top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 0.75rem;
    background: rgba(63, 63, 70, 0.6);
    color: #e4e4e7;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.nav-mobile-sheet-close:active {
    transform: scale(0.95);
    background: rgba(82, 82, 91, 0.8);
}
.nav-mobile-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nav-cta-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.75rem 0.875rem;
    border-radius: 0.875rem;
    text-decoration: none;
    background: rgba(9, 9, 11, 0.85);
    border: 1px solid #3f3f46;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nav-cta-card:active {
    transform: scale(0.98);
}
.nav-cta-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.06);
}
.nav-cta-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.nav-cta-text strong {
    font-size: 0.875rem;
    font-weight: 800;
    color: #fafafa;
    line-height: 1.2;
}
.nav-cta-text small {
    font-size: 0.6875rem;
    color: #a1a1aa;
    line-height: 1.25;
}
.nav-cta-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #71717a;
}
.nav-cta-card.nav-cta-consultar {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.15);
}
.nav-cta-card.nav-cta-consultar .nav-cta-icon {
    background: rgba(45, 212, 191, 0.15);
}
.nav-cta-card.nav-cta-consultar .nav-cta-arrow {
    color: #2dd4bf;
}
.nav-cta-card.nav-cta-portal {
    border-color: rgba(192, 132, 252, 0.45);
    box-shadow: 0 4px 20px rgba(192, 132, 252, 0.15);
}
.nav-cta-card.nav-cta-portal .nav-cta-icon {
    background: rgba(192, 132, 252, 0.15);
}
.nav-cta-card.nav-cta-portal .nav-cta-arrow {
    color: #c084fc;
}
.nav-cta-card.nav-cta-kiosco {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.12);
}
.nav-cta-card.nav-cta-kiosco .nav-cta-icon {
    background: rgba(251, 191, 36, 0.12);
}
.nav-cta-card.nav-cta-kiosco .nav-cta-arrow {
    color: #fbbf24;
}
.nav-cta-card-hero {
    min-height: 56px;
    padding: 0.625rem 0.75rem;
}
.nav-cta-card-hero .nav-cta-text strong {
    font-size: 0.875rem;
}
.nav-cta-card-compact {
    min-height: 52px;
}
.nav-cta-card-current {
    outline: 2px solid rgba(255, 255, 255, 0.12);
    outline-offset: 1px;
}
.nav-cta-card.nav-cta-reserva {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 6px 24px rgba(45, 212, 191, 0.2);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, rgba(9, 9, 11, 0.9) 100%);
}
.nav-cta-card.nav-cta-reserva .nav-cta-icon {
    background: rgba(45, 212, 191, 0.2);
}
.nav-cta-card.nav-cta-reserva .nav-cta-arrow {
    color: #2dd4bf;
}
.nav-mobile-cta-stack-compact {
    gap: 0.375rem;
}
.nav-secondary-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.nav-secondary-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d4d4d8;
    text-decoration: none;
    background: rgba(39, 39, 42, 0.45);
    border: 1px solid rgba(63, 63, 70, 0.45);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-secondary-row:active {
    background: rgba(63, 63, 70, 0.5);
}
.nav-secondary-label {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}
.nav-secondary-arrow {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #71717a;
}
.nav-cta-header {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 40px;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.nav-cta-header:active {
    transform: scale(0.98);
}
.nav-cta-header-icon {
    font-size: 0.9375rem;
    line-height: 1;
}
.nav-cta-header.nav-cta-consultar {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    color: #09090b;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.4);
}
.nav-cta-header.nav-cta-portal {
    background: linear-gradient(135deg, #c084fc, #9333ea);
    color: #fff;
    box-shadow: 0 4px 16px rgba(192, 132, 252, 0.35);
}
.nav-cta-header.nav-cta-kiosco {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #09090b;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}
.nav-link-header-secondary {
    font-size: 0.6875rem;
    color: #71717a;
    border: 1px solid #3f3f46;
    padding: 0.375rem 0.625rem;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link-header-secondary:hover {
    color: #d4d4d8;
    border-color: #52525b;
}
.nav-mobile-section-label {
    margin: 0.625rem 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #52525b;
}
.nav-mobile-section-label-first {
    margin-top: 0.25rem;
}
.nav-mobile-divider {
    margin-top: 0.625rem;
    border-top: 1px solid #27272a;
}
.nav-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
@media (max-width: 360px) {
    .nav-secondary-grid {
        grid-template-columns: 1fr;
    }
}
.nav-secondary-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d4d4d8;
    text-decoration: none;
    background: rgba(39, 39, 42, 0.65);
    border: 1px solid rgba(63, 63, 70, 0.6);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-secondary-card:active {
    background: rgba(63, 63, 70, 0.5);
}
.nav-secondary-card-wide {
    grid-column: 1 / -1;
}
.nav-secondary-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
}

/* Index — botones agendar sala (hero) */
.sala-card-ensayo-hero {
    border-color: rgba(45, 212, 191, 0.35) !important;
    box-shadow: 0 8px 32px rgba(45, 212, 191, 0.08);
}
.sala-card-grabacion {
    border-color: rgba(124, 58, 237, 0.2);
}
.sala-cta-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sala-cta-eyebrow {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2dd4bf;
    text-align: center;
}
.btn-agendar-ensayo,
.btn-agendar-grabacion {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 1rem 1.25rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 45%, #7c3aed 100%);
    border: 2px solid rgba(192, 132, 252, 0.65);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(168, 85, 247, 0.2);
}
.btn-agendar-sala-hero .btn-agendar-label {
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
}
@media (min-width: 640px) {
    .btn-agendar-ensayo,
    .btn-agendar-grabacion {
        min-height: 60px;
        padding: 1.125rem 1.5rem;
    }
    .btn-agendar-sala-hero .btn-agendar-label {
        font-size: 1.25rem;
    }
}
.btn-agendar-ensayo:active,
.btn-agendar-grabacion:active {
    transform: scale(0.98);
}

/* Index — promos internas */
.promo-banner {
    position: relative;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    overflow: hidden;
}
.promo-banner-gift {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(190, 24, 93, 0.08) 100%);
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.12);
}
.promo-banner-pro {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18) 0%, rgba(88, 28, 135, 0.08) 100%);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
}
.promo-banner-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.35);
    color: #fafafa;
}
.promo-banner-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}
.promo-banner-sub {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #d4d4d8;
    max-width: 42rem;
}
.promo-banner-card {
    background: rgba(9, 9, 11, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
}
.promo-banner-planes {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, rgba(20, 83, 45, 0.06) 50%, rgba(124, 58, 237, 0.08) 100%);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 8px 32px rgba(45, 212, 191, 0.1);
}
.planes-hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.planes-hub-tab {
    padding: 0.45rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: #d4d4d8;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.planes-hub-tab.active {
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.55);
    color: #5eead4;
}
.planes-hub-block {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.planes-hub-block:first-of-type {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}
.planes-hub-heading {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.planes-card-popular {
    border-color: rgba(45, 212, 191, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.15);
}
.planes-popular-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(45, 212, 191, 0.2);
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.35);
}

/* —— Carrusel comercial destacado —— */
.comercial-carousel {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.95) 0%, rgba(9, 9, 11, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.comercial-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.comercial-carousel-eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a1a1aa;
}
.comercial-carousel-nav {
    gap: 0.35rem;
}
.comercial-carousel-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.comercial-carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}
.comercial-carousel-viewport {
    position: relative;
    min-height: 11rem;
}
.comercial-carousel-slide {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem 0.25rem;
    border-radius: 0.875rem;
    animation: comercial-slide-in 0.35s ease;
}
@keyframes comercial-slide-in {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}
.comercial-carousel-slide--membresia {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, rgba(120, 53, 15, 0.1) 100%);
    border-left: 3px solid #fbbf24;
    box-shadow: inset 0 0 40px rgba(251, 191, 36, 0.06);
}
.comercial-carousel-slide--membresia .comercial-carousel-badge {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(217, 119, 6, 0.25) 100%);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.4);
}
.comercial-carousel-slide--membresia .comercial-carousel-price {
    color: #fde68a;
    text-shadow: 0 0 24px rgba(251, 191, 36, 0.25);
}
.comercial-carousel-slide--membresia .comercial-carousel-cta {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #09090b;
}
.comercial-carousel-slide--membresia .comercial-carousel-cta:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
}
.comercial-carousel-slide--creditos {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, rgba(19, 78, 74, 0.08) 100%);
    border-left: 3px solid #2dd4bf;
}
.comercial-carousel-slide--proyecto {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(76, 29, 149, 0.08) 100%);
    border-left: 3px solid #a78bfa;
}
.comercial-carousel-slide--regalo {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.12) 0%, rgba(131, 24, 67, 0.08) 100%);
    border-left: 3px solid #f472b6;
}
.comercial-carousel-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.35);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.comercial-carousel-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}
.comercial-carousel-desc {
    font-size: 0.8rem;
    color: #a1a1aa;
    line-height: 1.45;
    max-width: 36rem;
}
.comercial-carousel-meta {
    font-size: 0.75rem;
    color: #d4d4d8;
}
.comercial-carousel-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    margin-top: 0.15rem;
}
.comercial-carousel-cta {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #09090b;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}
.comercial-carousel-cta:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}
.comercial-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.comercial-carousel-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.comercial-carousel-dot.active {
    background: #fff;
    transform: scale(1.15);
}

/* —— Secciones comerciales temáticas —— */
.comercial-section {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.comercial-section-eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.comercial-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}
.comercial-section-sub {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-top: 0.35rem;
    margin-bottom: 1.25rem;
    max-width: 40rem;
}
.comercial-section--membresia {
    background: linear-gradient(160deg, rgba(251, 191, 36, 0.14) 0%, rgba(9, 9, 11, 0.92) 42%, rgba(69, 26, 3, 0.22) 100%);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 12px 48px rgba(251, 191, 36, 0.12), inset 0 1px 0 rgba(251, 191, 36, 0.08);
}
.comercial-section--membresia::before {
    content: '';
    position: absolute;
    top: -35%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 65%;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.2) 0%, transparent 68%);
    pointer-events: none;
}
.comercial-section--membresia .comercial-section-eyebrow {
    color: #fcd34d;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}
.comercial-section--membresia .comercial-section-title {
    background: linear-gradient(135deg, #fff 0%, #fde68a 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.comercial-section--creditos {
    background: linear-gradient(160deg, rgba(45, 212, 191, 0.1) 0%, rgba(9, 9, 11, 0.95) 50%, rgba(19, 78, 74, 0.12) 100%);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 8px 32px rgba(45, 212, 191, 0.06);
}
.comercial-section--creditos .comercial-section-eyebrow { color: #2dd4bf; }
.comercial-section--proyecto {
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.1) 0%, rgba(9, 9, 11, 0.95) 50%, rgba(76, 29, 149, 0.12) 100%);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}
.comercial-section--proyecto .comercial-section-eyebrow { color: #a78bfa; }
.comercial-section--regalo {
    background: linear-gradient(160deg, rgba(244, 114, 182, 0.1) 0%, rgba(9, 9, 11, 0.95) 50%, rgba(131, 24, 67, 0.12) 100%);
    border-color: rgba(244, 114, 182, 0.35);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.08);
}
.comercial-section--regalo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 1.5rem;
    width: 3rem;
    height: 3.5rem;
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.5) 0%, rgba(244, 114, 182, 0) 100%);
    clip-path: polygon(50% 0%, 0% 35%, 0% 100%, 100% 100%, 100% 35%);
    opacity: 0.35;
    pointer-events: none;
}
.comercial-section--regalo .comercial-section-eyebrow { color: #f472b6; }

.comercial-card {
    position: relative;
    border-radius: 1rem;
    padding: 1.125rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.comercial-card:hover {
    transform: translateY(-2px);
}
.comercial-card-popular {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.comercial-card--membresia {
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(165deg, rgba(69, 26, 3, 0.38) 0%, rgba(9, 9, 11, 0.78) 52%, rgba(0, 0, 0, 0.52) 100%);
    border-top: 2px solid rgba(251, 191, 36, 0.4);
}
.comercial-card--membresia:hover {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.15);
}
.comercial-card--membresia.comercial-card-popular {
    border-color: rgba(251, 191, 36, 0.65);
    border-top-color: #fbbf24;
    background: linear-gradient(165deg, rgba(120, 53, 15, 0.5) 0%, rgba(9, 9, 11, 0.82) 48%, rgba(0, 0, 0, 0.58) 100%);
    box-shadow: 0 0 36px rgba(251, 191, 36, 0.22), inset 0 1px 0 rgba(251, 191, 36, 0.18);
}
.comercial-card--membresia .comercial-card-icon {
    font-size: 1.5rem;
    color: #fbbf24;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
}
.comercial-card--membresia .comercial-popular-badge {
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    color: #09090b;
    border: none;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}
.comercial-card--membresia .comercial-card-meta {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.comercial-card--creditos { border-color: rgba(45, 212, 191, 0.2); }
.comercial-card--creditos.comercial-card-popular { border-color: rgba(45, 212, 191, 0.45); box-shadow: 0 0 24px rgba(45, 212, 191, 0.1); }
.comercial-card--proyecto { border-color: rgba(167, 139, 250, 0.2); }
.comercial-card--proyecto.comercial-card-popular { border-color: rgba(167, 139, 250, 0.45); box-shadow: 0 0 24px rgba(124, 58, 237, 0.1); }
.comercial-card--regalo { border-color: rgba(244, 114, 182, 0.2); }
.comercial-card--regalo.comercial-card-popular { border-color: rgba(244, 114, 182, 0.45); box-shadow: 0 0 24px rgba(236, 72, 153, 0.1); }
.comercial-card-icon {
    display: inline-block;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}
.comercial-popular-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.comercial-card-cta {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s, transform 0.15s;
}
.comercial-card-cta:hover { transform: translateY(-1px); }
.comercial-card-cta--membresia { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); color: #09090b; }
.comercial-card-cta--membresia:hover { background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%); }
.comercial-card-cta--creditos { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.comercial-card-cta--creditos:hover { background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%); }
.comercial-card-cta--proyecto { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.comercial-card-cta--proyecto:hover { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); }
.comercial-card-cta--regalo { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.comercial-card-cta--regalo:hover { background: linear-gradient(135deg, #f472b6 0%, #db2777 100%); }

@media (max-width: 639px) {
    .comercial-carousel {
        padding: 1rem;
        scroll-snap-type: x mandatory;
    }
    .comercial-carousel-title {
        font-size: 1.15rem;
    }
    .comercial-carousel-price {
        font-size: 1.5rem;
    }
    .comercial-section {
        padding: 1.25rem 1rem;
    }
    .comercial-section-title {
        font-size: 1.25rem;
    }
}

/* Layout fallback si Tailwind CDN no carga */
.comercial-section .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .comercial-section .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #paquetes-pro .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .comercial-section .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


.fab-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}
.fab-cluster .fab-mini {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
}

/* R129 — admin shell */
.admin-bottom-nav {
    display: none;
}
@media (max-width: 767px) {
    .admin-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
        background: rgba(24, 24, 27, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid #3f3f46;
        padding-bottom: env(safe-area-inset-bottom, 0);
        height: calc(var(--ec-admin-bottom-nav-h) + env(safe-area-inset-bottom, 0));
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    }
    .admin-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.125rem;
        min-height: 44px;
        padding: 0.375rem 0.25rem;
        border: none;
        background: transparent;
        color: #71717a;
        cursor: pointer;
        position: relative;
        transition: color 0.15s ease, background 0.15s ease;
    }
    .admin-nav-item.active {
        color: #2dd4bf;
        background: rgba(45, 212, 191, 0.08);
    }
    .admin-nav-icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.375rem;
        height: 1.375rem;
    }
    .admin-nav-icon svg {
        width: 1.375rem;
        height: 1.375rem;
        stroke: currentColor;
    }
    .admin-nav-icon-badge-wrap {
        position: relative;
    }
    .admin-nav-badge {
        position: absolute;
        top: -0.375rem;
        right: -0.5rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.25rem;
        border-radius: 9999px;
        font-size: 0.5625rem;
        font-weight: 800;
        line-height: 1rem;
        text-align: center;
        background: #ef4444;
        color: #fff;
        border: 1.5px solid #18181b;
    }
    .admin-nav-label {
        font-size: 0.625rem;
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: 0.01em;
    }
    .admin-has-bottom-nav {
        padding-bottom: calc(var(--ec-admin-bottom-nav-h) + env(safe-area-inset-bottom, 0) + 1rem);
    }
    .admin-more-drawer {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        animation: navFadeIn 0.2s ease;
    }
    .admin-more-sheet {
        position: fixed;
        left: 50%;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        width: min(calc(100% - 1.5rem), 22rem);
        max-height: min(85dvh, calc(100% - 2rem));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0.375rem 0.875rem 0.875rem;
        background: linear-gradient(180deg, rgba(24, 24, 27, 0.99) 0%, rgba(9, 9, 11, 0.98) 100%);
        border: 1px solid #3f3f46;
        border-radius: 1rem;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
        transform: translateX(-50%);
        animation: navSheetSlideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .admin-more-sheet-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0.125rem 0 0.5rem;
        margin-bottom: 0.25rem;
    }
    .admin-more-sheet-handle {
        position: absolute;
        top: 0.375rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2.5rem;
        height: 0.25rem;
        border-radius: 9999px;
        background: #52525b;
    }
    .admin-more-sheet-title {
        margin: 0.5rem 0 0;
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #a1a1aa;
    }
    .admin-more-sheet-close {
        position: absolute;
        right: 0;
        top: 0.375rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        border: none;
        border-radius: 0.75rem;
        background: rgba(63, 63, 70, 0.6);
        color: #e4e4e7;
        font-size: 1.125rem;
        line-height: 1;
        cursor: pointer;
    }
    .admin-more-list {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
    }
    .admin-more-row {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        width: 100%;
        min-height: 48px;
        padding: 0.625rem 0.75rem;
        border: 1px solid rgba(63, 63, 70, 0.55);
        border-radius: 0.75rem;
        background: rgba(39, 39, 42, 0.55);
        color: #d4d4d8;
        font-size: 0.8125rem;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .admin-more-row.active {
        border-color: rgba(45, 212, 191, 0.45);
        background: rgba(45, 212, 191, 0.1);
        color: #5eead4;
    }
    .admin-more-row:active {
        transform: scale(0.98);
    }
    .admin-more-row-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1.25rem;
        color: #a1a1aa;
    }
    .admin-more-row.active .admin-more-row-icon {
        color: #2dd4bf;
    }
    .admin-more-row-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    .admin-more-row-label {
        flex: 1;
        min-width: 0;
        line-height: 1.2;
    }
    .admin-more-row-arrow {
        flex-shrink: 0;
        font-size: 0.875rem;
        font-weight: 700;
        color: #71717a;
    }
    .admin-more-row.active .admin-more-row-arrow {
        color: #2dd4bf;
    }
    .pro-accordion-hub .pro-round-panel {
        display: none;
    }
    .pro-accordion-hub.pro-expanded .pro-round-panel {
        display: block;
    }
}
@media (min-width: 768px) {
    .pro-accordion-hub .pro-round-panel {
        display: block;
    }
}

/* R131 — tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .admin-split-cal {
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 1rem;
    }
    .pro-grid-tablet {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .side-cart-tablet {
        position: sticky;
        top: 1rem;
        max-height: calc(100dvh - 2rem);
    }
}

@media (min-width: 1024px) {
    .pro-grid-tablet {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* R134 — portal tabs */
@media (max-width: 767px) {
    .portal-bottom-tabs {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 30;
        background: #18181b;
        border-top: 1px solid #27272a;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .portal-bottom-tabs button {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.65rem;
        color: #71717a;
        min-height: 44px;
    }
    .portal-bottom-tabs button.active {
        color: #2dd4bf;
    }
    .portal-has-tabs {
        padding-bottom: 4rem;
    }
    .portal-otp-fullscreen {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .stem-card-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* R135 — a11y */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: #14b8a6;
    color: #042f2e;
    font-weight: 700;
}
.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}
body.contrast-high {
    filter: contrast(1.15);
}
body.font-scale-sm { font-size: 14px; }
body.font-scale-lg { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
    .cart-panel-compact,
    .modal-panel-in,
    .admin-more-panel {
        transition: none !important;
        animation: none !important;
    }
}

/* R130 — filter chips */
.filter-chips-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-chips-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: #27272a;
    color: #a1a1aa;
    border: 1px solid transparent;
}
.filter-chip-label {
    white-space: nowrap;
}
.filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
}
.filter-chip-count--zero {
    opacity: 0.45;
}
.filter-chip--pendiente .filter-chip-count { color: #facc15; }
.filter-chip--revision_pago .filter-chip-count { color: #60a5fa; }
.filter-chip--confirmado .filter-chip-count { color: #22c55e; }
.filter-chip--hoy .filter-chip-count { color: #2dd4bf; }
.filter-chip--todos .filter-chip-count { color: #e4e4e7; }
.filter-chip.active {
    background: #115e59;
    color: #5eead4;
    border-color: rgba(94, 234, 212, 0.25);
}
.filter-chip.active .filter-chip-count {
    color: #ccfbf1;
}
.filter-chip.active .filter-chip-count--zero {
    opacity: 0.55;
}

.device-preview-iphone body { max-width: 390px; margin: 0 auto; border: 2px solid #3f3f46; }
.device-preview-ipad body { max-width: 768px; margin: 0 auto; border: 2px solid #3f3f46; }

/* Wiring — pull-to-refresh admin */
.pull-refresh-indicator {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    transition: height 0.15s ease;
    color: #2dd4bf;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Wiring — swipe gestión pagos */
.swipe-card-gestion {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}
.swipe-card-gestion .swipe-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    pointer-events: none;
    text-align: center;
    line-height: 1.2;
}
.swipe-hint-reject {
    justify-content: flex-end;
    background: linear-gradient(90deg, transparent 40%, rgba(220, 38, 38, 0.25));
    color: #fca5a5;
}
.swipe-hint-confirm {
    justify-content: flex-start;
    background: linear-gradient(270deg, transparent 40%, rgba(22, 163, 74, 0.25));
    color: #86efac;
}
.swipe-card-inner {
    position: relative;
    z-index: 1;
    background: inherit;
    transition: transform 0.12s ease-out;
}
.gestion-card-selected {
    border-color: rgba(45, 212, 191, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
}
@media (min-width: 768px) {
    .swipe-card-gestion .swipe-hint { display: none; }
}

/* Wiring — cart sheet snap + drag */
.cart-sheet-handle {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: #52525b;
    margin: 0 auto 0.5rem;
    flex-shrink: 0;
}
.cart-panel-compact.cart-snap-peek {
    max-height: 52dvh !important;
}
.cart-panel-compact.cart-snap-full {
    max-height: var(--ec-cart-sheet-max) !important;
}
.cart-item-chip.cart-dragging {
    opacity: 0.55;
    border-color: #14b8a6;
}

/* Calendario compacto móvil (mes completo) */
@media (max-width: 639px) {
    .cal-studio .cal-month-title {
        font-size: 0.8rem;
        min-width: 6.5rem;
    }
    .cal-studio .cal-nav-month {
        display: flex;
    }
    .cal-studio .grid.grid-cols-7 .min-h-\[40px\] {
        min-height: 34px;
        max-height: 40px;
    }
    .cal-studio .cal-cell-animate {
        font-size: 0.7rem;
    }
}

/* Wiring — slot picker thumb zones */
.horario-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}
.horario-slot-grid .slot-thumb-btn {
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #3f3f46;
    background: #09090b;
    color: #e4e4e7;
    font-weight: 600;
}
.horario-slot-grid .slot-thumb-btn.active {
    background: #0f766e;
    border-color: #14b8a6;
    color: #ccfbf1;
}

/* Wiring — lazy banners + srcset helpers */
[data-lazy-banner] {
    content-visibility: auto;
    contain-intrinsic-size: auto 4rem;
}

.historial-infinite-sentinel {
    height: 2px;
    width: 100%;
}

@media (min-width: 768px) {
    .portal-otp-normal {
        min-height: auto;
        display: block;
    }
}

/* PWA install banner */
.pwa-install-banner {
    position: fixed;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
    left: 0.75rem;
    right: 0.75rem;
    z-index: 55;
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid #115e59;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.pwa-install-text {
    flex: 1;
    min-width: 10rem;
    font-size: 0.75rem;
    color: #a1a1aa;
}
.pwa-install-actions {
    display: flex;
    gap: 0.35rem;
}
.pwa-install-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background: #14b8a6;
    color: #042f2e;
    font-size: 0.7rem;
    font-weight: 700;
}
.pwa-install-dismiss {
    padding: 0.4rem 0.5rem;
    font-size: 0.65rem;
    color: #71717a;
}

/* Barra APK móvil — enlace estático, no depende de Vue */
.apk-download-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fafafa;
    text-decoration: none;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.25), rgba(124, 58, 237, 0.2));
    border-bottom: 1px solid rgba(20, 184, 166, 0.35);
}
.apk-download-bar:active {
    opacity: 0.85;
}

/* App install card (index — CTA oficial OutoRecords) */
.app-install-card {
    border-radius: 1rem;
    border: 1px solid rgba(20, 184, 166, 0.35);
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.98), rgba(9, 9, 11, 0.98));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(20, 184, 166, 0.08);
    overflow: hidden;
}
.app-install-card-inner {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    align-items: flex-start;
}
.app-install-card-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
}
.app-install-card-body {
    flex: 1;
    min-width: 0;
}
.app-install-card-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2dd4bf;
    margin: 0 0 0.25rem;
}
.app-install-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fafafa;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.app-install-card-desc {
    font-size: 0.8rem;
    color: #a1a1aa;
    margin: 0 0 0.5rem;
    line-height: 1.45;
}
.app-install-card-version {
    font-size: 0.65rem;
    color: #71717a;
    margin: 0 0 0.65rem;
}
.app-install-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.app-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.app-install-btn-primary {
    background: #14b8a6;
    color: #042f2e;
}
@media (hover: hover) {
    .app-install-btn-primary:hover {
        background: #2dd4bf;
    }
}
.app-install-btn-secondary {
    background: rgba(39, 39, 42, 0.9);
    color: #e4e4e7;
    border: 1px solid #3f3f46;
}
.app-install-btn-dismiss {
    background: transparent;
    color: #71717a;
    font-weight: 500;
}
.app-install-card-note {
    margin: 0.5rem 0 0;
    font-size: 0.65rem;
    color: #71717a;
    line-height: 1.4;
}
.app-install-ios-steps {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
    font-size: 0.75rem;
    color: #d4d4d8;
    line-height: 1.55;
}
.app-install-ios-steps li + li {
    margin-top: 0.35rem;
}
@media (min-width: 640px) {
    .app-install-card-inner {
        padding: 1.125rem 1.25rem;
        align-items: center;
    }
    .app-install-card-title {
        font-size: 1.15rem;
    }
}

/* Offline queue badge */
.offline-queue-banner {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.95), rgba(234, 88, 12, 0.9));
}
.offline-queue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: #18181b;
    color: #fbbf24;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 0.35rem;
}
.fab-mini .fab-queue-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    background: #f59e0b;
    border: 2px solid #18181b;
}

/* Bulk action bar admin */
.bulk-action-bar {
    position: fixed;
    bottom: calc(var(--ec-admin-bottom-nav-h, 3.75rem) + env(safe-area-inset-bottom, 0) + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 45;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(24, 24, 27, 0.97);
    border: 1px solid #115e59;
    border-radius: 1rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
@media (min-width: 768px) {
    .bulk-action-bar {
        bottom: 1rem;
        left: auto;
        right: 1rem;
        max-width: 28rem;
    }
}

/* Admin split calendario tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .admin-split-cal {
        display: grid;
        grid-template-columns: 5fr 4fr;
        gap: 1rem;
        align-items: start;
    }
}

/* Responsive health widget */
.responsive-health-widget {
    border: 1px solid rgba(20, 184, 166, 0.35);
    background: rgba(20, 184, 166, 0.08);
    border-radius: 1rem;
    padding: 1rem;
}
.responsive-health-score {
    font-size: 2rem;
    font-weight: 900;
    color: #2dd4bf;
    line-height: 1;
}

/* Index side cart tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .index-with-side-cart #main-content {
        padding-right: 0.5rem;
    }
    .index-with-side-cart .cart-panel-compact.cart-panel-open {
        transform: translateX(0) !important;
        width: 18rem !important;
        max-height: 100dvh !important;
        top: 0 !important;
        bottom: 0 !important;
        border-radius: 0;
    }
    .index-with-side-cart .cart-panel-compact.cart-panel-open + .cart-backdrop-tablet {
        display: none;
    }
}

/* Landscape modal tablet */
@media (min-width: 768px) and (orientation: landscape) {
    .modal-landscape-full .modal-panel-in {
        max-width: min(100vw, 56rem) !important;
        max-height: 92dvh !important;
    }
}

/* Kiosco / ingeniero touch shell */
.mobile-shell {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    padding-top: env(safe-area-inset-top, 0);
}

/* Sala card long desc hidden on mobile */
@media (max-width: 639px) {
    .sala-card-compact .sala-desc-long {
        display: none;
    }
}

/* Creator economy portal */
.creator-tier-card {
    border: 1px solid #3f3f46;
    border-radius: 0.75rem;
    padding: 0.65rem;
    cursor: pointer;
    text-align: left;
}
.creator-tier-card.selected {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.1);
}


/* Admin mobile shell */
@media (max-width: 767px) {
    .admin-has-bottom-nav main {
        padding-bottom: calc(var(--ec-admin-bottom-nav-h) + env(safe-area-inset-bottom, 0) + 1.25rem);
    }
    .admin-has-bottom-nav .pro-accordion-hub .pro-round-panel,
    .admin-has-bottom-nav .pro-grid-tablet {
        min-width: 0;
    }
    .admin-has-bottom-nav .table-container {
        max-width: 100%;
    }
    .admin-has-bottom-nav .flex.items-center.justify-between.gap-3.mb-4 {
        flex-wrap: wrap;
    }
    .admin-has-bottom-nav h2.text-xl {
        font-size: 1.125rem;
    }
}
