:root {
    --brand: #b4232f;
    --brand-strong: #8f1722;
    --brand-soft: #fff0f2;
    --brand-pale: #fff7f8;
    --ink: #27171a;
    --ink-soft: #67565a;
    --muted: #8d7b7f;
    --surface: #ffffff;
    --surface-alt: #f7f7f9;
    --line: #eadfe1;
    --line-strong: #dfc9cd;
    --success: #15803d;
    --warning: #a16207;
    --danger: #b91c1c;
    --shadow-sm: 0 8px 24px rgba(58, 24, 30, .07);
    --shadow-md: 0 18px 50px rgba(58, 24, 30, .10);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --header-height: 70px;
    --action-height: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 213, 220, .55), transparent 28%),
        linear-gradient(180deg, #fffafb 0%, #f7f7f9 38%, #f5f5f7 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-bottom: calc(var(--action-height) + 28px + env(safe-area-inset-bottom));
}
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.full { grid-column: 1 / -1; }
.full-btn { width: 100%; }
.mt { margin-top: 18px; }

.order-app { min-height: 100vh; }
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(234,223,225,.9);
    backdrop-filter: blur(18px);
}
.app-header-inner {
    width: min(1080px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.header-trust { display: flex; align-items: center; gap: 10px; }
.header-trust span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 11px; font-weight: 800; }

.app-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.welcome-card {
    margin: 22px 0 16px;
    min-height: 168px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.22), transparent 27%),
        linear-gradient(135deg, #8f1722 0%, #b4232f 58%, #d94857 100%);
    box-shadow: var(--shadow-md);
}
.welcome-card h1 { margin: 10px 0 8px; max-width: 650px; font-size: clamp(30px, 5vw, 48px); line-height: 1; letter-spacing: -.05em; }
.welcome-card p { margin: 0; max-width: 650px; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 600; line-height: 1.55; }
.welcome-chip { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.welcome-art { width: 116px; height: 116px; flex: 0 0 116px; display: grid; place-items: center; border-radius: 32px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 58px; transform: rotate(4deg); }

.wizard-progress {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    z-index: 70;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(234,223,225,.92);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}
.progress-mobile-copy { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.progress-mobile-copy span, .progress-mobile-copy strong { display: block; }
.progress-mobile-copy span { color: var(--brand); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.progress-mobile-copy strong { margin-top: 3px; font-size: 15px; }
.progress-mobile-copy b { color: var(--brand); font-size: 14px; }
.progress-track { height: 6px; margin-bottom: 14px; overflow: hidden; border-radius: 999px; background: #f1e8ea; }
.progress-bar { width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-strong), #e05260); transition: width .28s ease; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.step-dot {
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}
.step-dot:hover { background: var(--brand-pale); }
.step-dot .num { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 12px; background: #f5eef0; color: var(--muted); font-size: 12px; font-weight: 900; transition: .18s ease; }
.step-copy { min-width: 0; }
.step-copy b, .step-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-copy b { color: var(--ink-soft); font-size: 12px; }
.step-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.step-dot.active { border-color: #f0c8ce; background: var(--brand-soft); }
.step-dot.active .num { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(180,35,47,.22); }
.step-dot.active .step-copy b { color: var(--brand-strong); }
.step-dot.complete .num { background: #e9f7ed; color: var(--success); }
.step-dot.complete .step-copy b { color: var(--success); }

.wizard-stage { max-width: 980px; margin: 0 auto; }
.wizard-form { margin: 0; }
.wizard-step { display: none; animation: screenIn .22s ease; }
.wizard-step.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.screen-eyebrow { padding: 14px 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.screen-eyebrow span { color: var(--brand); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.screen-eyebrow small { color: var(--muted); font-size: 11px; font-weight: 700; }
.panel-head { padding: 16px 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; gap: 14px; }
.panel-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 21px; font-weight: 900; }
.panel-title h2 { margin: 0; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.035em; }
.panel-title p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.panel-body { padding: 24px; }

.hint-strip { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hint-strip span { padding: 9px 11px; border-radius: 999px; background: var(--surface-alt); color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.hint-strip-soft span { background: var(--brand-pale); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.compact { margin-bottom: 20px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 800; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 850; }
.field-label em { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea, .product-search input, .coupon-flex input {
    width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 14px; outline: none; background: #fff; color: var(--ink); font-size: 14px; font-weight: 650; transition: .18s ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .product-search input::placeholder, .coupon-flex input::placeholder { color: #aa9a9d; }
.field input:focus, .field select:focus, .field textarea:focus, .product-search input:focus, .coupon-flex input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(180,35,47,.09); }
.field input[readonly] { background: #f6f4f5; color: var(--ink-soft); }
.help-text { min-height: 15px; color: var(--muted); font-size: 11px; font-weight: 650; }
.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220,38,38,.1) !important; }

.product-tools { margin: 4px 0 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-alt); }
.product-tools strong, .product-tools span { display: block; }
.product-tools strong { font-size: 14px; }
.product-tools span { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.product-search { width: min(330px, 100%); }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shop-item { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: left; cursor: pointer; transition: .18s ease; }
.shop-item:hover { transform: translateY(-3px); border-color: #e5b7be; box-shadow: var(--shadow-sm); }
.shop-item.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180,35,47,.10), var(--shadow-sm); }
.select-badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; display: none; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; box-shadow: 0 7px 18px rgba(180,35,47,.28); }
.shop-item.selected .select-badge { display: grid; }
.shop-img { height: 172px; overflow: hidden; background: var(--brand-soft); }
.shop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shop-item:hover .shop-img img { transform: scale(1.035); }
.shop-content { padding: 14px; }
.shop-content > strong { display: block; min-height: 36px; font-size: 14px; line-height: 1.35; }
.price { display: block; margin-top: 9px; color: var(--brand); font-size: 18px; font-weight: 900; }
.included-product-extras { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.included-product-extras > span { width: 100%; color: var(--muted); font-size: 10px; font-weight: 800; }
.included-product-extras small { padding: 5px 8px; border-radius: 999px; background: var(--brand-pale); color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.pagination-bar { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.pagination-bar span { color: var(--muted); font-size: 11px; font-weight: 800; }

.product-customizer { margin-top: 20px; padding: 20px; border: 1px solid #efcbd0; border-radius: 22px; background: linear-gradient(145deg, #fff7f8, #fff); }
.customizer-heading { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.customizer-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); font-size: 20px; }
.customizer-heading strong { display: block; font-size: 16px; }
.customizer-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 1.45; }
.customizer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
.customizer-price-card { padding: 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.customizer-price-card span, .customizer-price-card small { color: var(--muted); font-size: 11px; font-weight: 700; }
.customizer-price-card strong { margin: 5px 0; color: var(--brand); font-size: 25px; }
#combinationCustomizer { margin-top: 14px; }
.color-section-heading { margin: 20px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.color-section-heading strong { display: block; font-size: 14px; }
.color-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.color-progress { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 900; }
.client-colors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.client-color-card { padding: 10px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 66px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.client-color-swatch { width: 28px; height: 28px; border: 1px solid rgba(0,0,0,.13); border-radius: 50%; }
.client-color-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.client-color-quantity { width: 66px; min-height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-weight: 900; }
.color-validation-message { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 750; }
.color-validation-message.warning { background: #fffbeb; color: #92400e; }
.color-validation-message.error { background: #fef2f2; color: #991b1b; }
.color-validation-message.success { background: #ecfdf5; color: #166534; }

.extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.extra-card { position: relative; padding: 12px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; transition: .18s ease; }
.extra-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.extra-card input { position: absolute; opacity: 0; }
.extra-card:has(input:checked) { border-color: var(--brand); background: var(--brand-pale); box-shadow: 0 0 0 3px rgba(180,35,47,.09); }
.add-dot { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 900; box-shadow: var(--shadow-sm); }
.extra-card:has(input:checked) .add-dot::before { content: "✓"; }
.extra-card:has(input:checked) .add-dot { font-size: 0; background: var(--brand); color: #fff; }
.extra-card:has(input:checked) .add-dot::before { font-size: 13px; }
.extra-img, .extra-placeholder { width: 100%; height: 116px; display: grid; place-items: center; border-radius: 14px; object-fit: cover; background: var(--brand-soft); color: var(--brand); font-size: 24px; }
.extra-card strong { color: var(--brand); font-size: 14px; }
.occasion-grid { display: grid; gap: 14px; }

.delivery-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
.map-box { min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-alt); }
#deliveryMap { width: 100%; height: 390px; min-height: 390px; z-index: 1; }
.delivery-side { display: grid; align-content: start; gap: 10px; }
.note-box, .confirm-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-alt); }
.note-box strong, .note-box span { display: block; }
.note-box strong { font-size: 12px; }
.note-box span { margin-top: 4px; color: var(--ink-soft); font-size: 11px; font-weight: 650; line-height: 1.45; }
.note-box.danger { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.store-pickup-card { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #efcbd0; border-radius: 18px; background: var(--brand-pale); }
.store-pickup-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #fff; }
.store-pickup-content strong, .store-pickup-content span { display: block; }
.store-pickup-content strong { font-size: 13px; }
.store-pickup-content p { margin: 4px 0; color: var(--ink-soft); font-size: 11px; font-weight: 650; line-height: 1.45; }
.store-pickup-content span { color: var(--muted); font-size: 10px; }
.store-map-button { padding: 10px 13px; border: 1px solid #e7b8bf; border-radius: 12px; background: #fff; color: var(--brand); font-size: 11px; font-weight: 850; text-decoration: none; }
.coupon-section { margin-top: 18px; padding: 16px; border: 1px dashed #e1b9bf; border-radius: 18px; background: #fffafb; }
.coupon-content p { margin: 4px 0 12px; color: var(--muted); font-size: 11px; font-weight: 650; }
.coupon-flex { display: flex; gap: 8px; }
#cuponMensaje { display: block; margin-top: 8px; font-size: 11px; font-weight: 850; }
.bank-list { margin-top: 10px; display: grid; gap: 10px; }

.review-head { background: linear-gradient(180deg, #fff9fa, #fff); }
.review-ready { padding: 8px 11px; border-radius: 999px; background: #eaf7ed; color: var(--success); font-size: 10px; font-weight: 900; }
.review-notice { margin-bottom: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; border-radius: 16px; background: #f7f7f9; }
.review-notice-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 13px; background: #fff; }
.review-notice strong { display: block; font-size: 13px; }
.review-notice p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.review-main { display: grid; gap: 12px; }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.review-card-head { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.review-label { color: var(--brand); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.review-card h3 { margin: 3px 0 0; font-size: 14px; }
.review-edit { padding: 8px 10px; border: 1px solid #e6c4c9; border-radius: 10px; background: #fff; color: var(--brand); font-size: 10px; font-weight: 900; cursor: pointer; }
.review-content { padding: 16px; color: var(--ink-soft); font-size: 12px; font-weight: 650; line-height: 1.65; }
.review-content b { color: var(--ink); }
.review-content a { color: var(--brand); font-weight: 850; }
.review-data-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; }
.review-data-list div { min-width: 0; }
.review-data-list dt { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.review-data-list dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 750; }
.final-summary { position: sticky; top: 172px; overflow: hidden; border: 1px solid #e7c6cb; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.final-summary-head { padding: 16px; display: flex; align-items: center; gap: 11px; background: linear-gradient(145deg, var(--brand-strong), var(--brand)); color: #fff; }
.final-summary-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.15); }
.final-summary-head span, .final-summary-head strong { display: block; }
.final-summary-head div > span { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 750; }
.final-summary-head strong { margin-top: 2px; font-size: 15px; }
.cart-items { padding: 16px; display: grid; gap: 10px; max-height: 330px; overflow-y: auto; }
.empty-cart { margin: 0; color: var(--muted); font-size: 12px; font-weight: 750; }
.cart-line, .cart-detail-line { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 800; }
.cart-line span:first-child, .cart-detail-line span { color: var(--ink-soft); }
.cart-detail-line { padding-left: 10px; }
.cart-total { padding: 15px 16px; display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-strong); background: #fffafb; }
.cart-total span { color: var(--ink-soft); font-size: 11px; font-weight: 850; }
.cart-total strong { color: var(--brand); font-size: 27px; letter-spacing: -.04em; }
.secure-checkout { margin: 0 16px 16px; padding: 11px; display: flex; align-items: flex-start; gap: 8px; border-radius: 13px; background: #f4f7f5; color: var(--success); }
.secure-checkout p { margin: 0; font-size: 9px; font-weight: 700; line-height: 1.45; }

.btn { min-height: 46px; padding: 12px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; font-size: 12px; font-weight: 900; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff; box-shadow: 0 10px 22px rgba(180,35,47,.22); }
.btn-secondary, .btn-soft { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.btn-light { border: 1px solid #e4bfc5; background: #fff; color: var(--brand); }

.wizard-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; border-top: 1px solid rgba(234,223,225,.95); background: rgba(255,255,255,.95); box-shadow: 0 -10px 30px rgba(58,24,30,.07); backdrop-filter: blur(20px); padding-bottom: env(safe-area-inset-bottom); }
.wizard-actions-inner { width: min(1080px, calc(100% - 32px)); min-height: var(--action-height); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.action-context span, .action-context strong { display: block; }
.action-context span { color: var(--brand); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.action-context strong { margin-top: 4px; font-size: 13px; }
.bottom-total { margin-left: auto; text-align: right; }
.bottom-total span, .bottom-total strong { display: block; }
.bottom-total span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.bottom-total strong { margin-top: 2px; color: var(--brand); font-size: 21px; }
.action-buttons { display: flex; align-items: center; gap: 10px; }
.action-buttons .btn-primary { min-width: 155px; }

.alert { margin: 18px 0; padding: 16px 18px; border-radius: 16px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.alert strong, .alert span { display: block; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert.error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }

.page-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(255,250,251,.93); backdrop-filter: blur(8px); transition: opacity .22s ease; }
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-card { min-width: 260px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); text-align: center; font-weight: 850; }
.loader-flower { color: var(--brand); font-size: 38px; }
.loader-text { margin-top: 7px; color: var(--ink-soft); font-size: 13px; }
.success-modal-overlay, .session-modal { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 20px; background: rgba(39,23,26,.58); backdrop-filter: blur(7px); }
.success-modal-card, .session-modal-card { position: relative; z-index: 1; width: min(100%, 420px); padding: 26px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); text-align: center; }
.success-modal-flower, .session-modal-icon { width: 66px; height: 66px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 31px; }
.success-modal-card strong { display: block; font-size: 23px; }
.success-modal-card p, .session-modal-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.session-modal-backdrop { position: absolute; inset: 0; }
body.session-modal-open { overflow: hidden; }

.tooltip-chip { position: relative; width: 19px; height: 19px; flex: 0 0 19px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 10px; cursor: help; }
.tooltip-chip::after { content: attr(data-tooltip); position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; width: 210px; padding: 9px 10px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 650; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(4px); transition: .18s ease; }
.tooltip-chip:hover::after { opacity: 1; transform: translateY(0); }

.hot-zone-legend, .hot-zone-alert { padding: 13px; display: grid; gap: 10px; border: 1px solid #fecaca; border-radius: 16px; background: #fff7f7; }
.hot-zone-legend-title, .hot-zone-alert { grid-template-columns: 34px minmax(0,1fr); align-items: start; }
.hot-zone-legend-icon, .hot-zone-alert-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #fee2e2; color: var(--danger); font-weight: 900; }
.hot-zone-legend-title strong, .hot-zone-legend-title small, .hot-zone-alert strong, .hot-zone-alert span { display: block; }
.hot-zone-legend-title strong, .hot-zone-alert strong { font-size: 11px; }
.hot-zone-legend-title small, .hot-zone-alert span { margin-top: 3px; color: var(--ink-soft); font-size: 9px; font-weight: 650; line-height: 1.45; }
.hot-zone-legend-row { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 10px; font-weight: 800; }
.hot-zone-swatch { width: 25px; height: 14px; border: 2px dashed var(--danger); border-radius: 999px; background: rgba(239,68,68,.17); }
.hot-zone-map-tooltip { padding: 6px 9px !important; border: 0 !important; border-radius: 10px !important; background: #7f1d1d !important; color: #fff !important; font-size: 10px !important; font-weight: 850 !important; }
.hot-zone-popup { min-width: 180px; font-size: 11px; }
.hot-zone-popup strong, .hot-zone-popup span, .hot-zone-popup small { display: block; }

.leaflet-control-geocoder { border-radius: 12px !important; overflow: hidden; }

@media (max-width: 900px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .extras-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .delivery-grid { grid-template-columns: 1fr; }
    .delivery-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .review-layout { grid-template-columns: 1fr; }
    .final-summary { position: static; }
    .cart-items { max-height: none; }
}

@media (max-width: 760px) {
    :root { --header-height: 62px; --action-height: 86px; }
    body { padding-bottom: calc(var(--action-height) + 18px + env(safe-area-inset-bottom)); }
    .app-header-inner, .app-shell, .wizard-actions-inner { width: min(100%, calc(100% - 20px)); }
    .brand img { width: 40px; height: 40px; }
    .brand strong { font-size: 16px; }
    .brand small { font-size: 9px; }
    .header-trust span:not(:first-child) { display: none; }
    .header-trust span { padding: 8px 10px; font-size: 9px; }
    .welcome-card { margin: 12px 0; min-height: auto; padding: 18px; border-radius: 22px; }
    .welcome-card h1 { margin: 8px 0 6px; font-size: 27px; }
    .welcome-card p { font-size: 12px; }
    .welcome-chip { padding: 6px 9px; font-size: 9px; }
    .welcome-art { width: 68px; height: 68px; flex-basis: 68px; border-radius: 20px; font-size: 34px; }
    .wizard-progress { top: calc(var(--header-height) + 7px); margin-bottom: 12px; padding: 12px; border-radius: 18px; }
    .progress-mobile-copy { display: flex; }
    .progress-track { margin-bottom: 10px; }
    .steps { display: flex; overflow-x: auto; gap: 7px; padding-bottom: 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
    .steps::-webkit-scrollbar { display: none; }
    .step-dot { min-width: 54px; width: 54px; height: 48px; padding: 7px; justify-content: center; scroll-snap-align: center; }
    .step-dot .num { width: 32px; height: 32px; flex-basis: 32px; }
    .step-copy { display: none; }
    .panel { border-radius: 22px; }
    .screen-eyebrow { padding: 12px 16px 0; }
    .screen-eyebrow small { display: none; }
    .panel-head { padding: 13px 16px 16px; }
    .panel-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; font-size: 18px; }
    .panel-title h2 { font-size: 21px; }
    .panel-title p { font-size: 11px; }
    .panel-body { padding: 16px; }
    .form-grid, .customizer-grid, .client-colors-grid, .review-data-list { grid-template-columns: 1fr; }
    .field input, .field select, .field textarea, .product-search input, .coupon-flex input { min-height: 52px; font-size: 16px; }
    .field textarea { min-height: 108px; }
    .hint-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .hint-strip::-webkit-scrollbar { display: none; }
    .hint-strip span { flex: 0 0 auto; }
    .product-tools { align-items: stretch; flex-direction: column; }
    .product-search { width: 100%; }
    .shop-grid { gap: 10px; }
    .shop-img { height: 150px; }
    .shop-content { padding: 11px; }
    .shop-content > strong { min-height: 34px; font-size: 12px; }
    .price { font-size: 16px; }
    .included-product-extras { display: none; }
    .pagination-bar { justify-content: space-between; }
    .pagination-bar span { display: none; }
    .product-customizer { padding: 15px; border-radius: 18px; }
    .extras-grid { gap: 10px; }
    .extra-img, .extra-placeholder { height: 105px; }
    .delivery-side { grid-template-columns: 1fr; }
    .map-box, #deliveryMap { height: 330px; min-height: 330px; }
    .store-pickup-card { grid-template-columns: 38px minmax(0,1fr); }
    .store-map-button { grid-column: 1 / -1; text-align: center; }
    .coupon-flex { flex-direction: column; }
    .review-ready { display: none; }
    .review-notice { align-items: flex-start; }
    .review-content { font-size: 11px; }
    .final-summary-head { padding: 14px; }
    .cart-total strong { font-size: 24px; }
    .wizard-actions-inner { min-height: var(--action-height); gap: 10px; }
    .action-context { display: none; }
    .bottom-total { margin-left: 0; margin-right: auto; text-align: left; }
    .bottom-total strong { font-size: 19px; }
    .action-buttons { width: 100%; justify-content: flex-end; }
    .bottom-total:not(.hidden) + .action-buttons { width: auto; }
    .action-buttons .btn { min-height: 50px; }
    .action-buttons .btn-primary { min-width: 0; flex: 1; }
    .action-buttons .btn-secondary { min-width: 86px; }
    .is-review-step .action-buttons { width: auto; }
    .is-review-step .submit-order { min-width: 175px; }
}

@media (max-width: 430px) {
    .welcome-art { display: none; }
    .welcome-card h1 { font-size: 25px; }
    .shop-img { height: 132px; }
    .extra-img, .extra-placeholder { height: 92px; }
    .extra-card { padding: 9px; }
    .wizard-actions-inner { width: calc(100% - 14px); }
    .is-review-step .submit-order { min-width: 150px; padding-inline: 12px; }
}

@media (max-width: 360px) {
    .shop-grid, .extras-grid { grid-template-columns: 1fr; }
    .shop-img { height: 190px; }
}

/* =========================================================
   BARRA FIJA: TOTAL SIEMPRE VISIBLE
   Esta sección debe permanecer al final del archivo.
   ========================================================= */

.wizard-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(180, 35, 47, 0.12);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -12px 34px rgba(58, 24, 30, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.wizard-actions-inner {
    width: min(1080px, calc(100% - 32px));
    min-height: 92px;
    margin: 0 auto;
    padding: 12px 0;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(270px, 320px) auto;
    align-items: center;
    gap: 16px;
}

.action-context {
    min-width: 0;
}

.action-context span,
.action-context strong {
    display: block;
}

.action-context span {
    color: var(--brand);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.action-context strong {
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* El total nunca se oculta, incluso si una versión antigua del JS agrega hidden. */
#bottomTotalWrap,
#bottomTotalWrap.hidden {
    display: flex !important;
}

.bottom-total {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 11px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(180, 35, 47, 0.16);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
    box-shadow: 0 8px 22px rgba(180, 35, 47, 0.09);
    text-align: left;
}

.bottom-total-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bottom-total-copy span {
    color: var(--brand-strong);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.bottom-total-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bottomCartTotal {
    flex: 0 0 auto;
    margin: 0;
    color: var(--brand);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.action-buttons {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.action-buttons .btn {
    min-height: 52px;
    border-radius: 17px;
    padding: 0 20px;
}

.action-buttons .btn-primary {
    min-width: 168px;
}

/* Reserva espacio para que la barra fija no tape el formulario. */
body {
    padding-bottom: calc(122px + env(safe-area-inset-bottom));
}

.order-app {
    padding-bottom: 24px;
}

@media (max-width: 760px) {
    :root {
        --action-height: 154px;
    }

    body {
        padding-bottom: calc(174px + env(safe-area-inset-bottom));
    }

    .wizard-actions-inner {
        width: 100%;
        min-height: 0;
        padding: 9px 12px 10px;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .action-context {
        display: none;
    }

    .bottom-total {
        min-height: 48px;
        padding: 8px 12px;
        border-radius: 14px;
    }

    .bottom-total-copy span {
        font-size: 10px;
    }

    .bottom-total-copy small {
        font-size: 9px;
    }

    #bottomCartTotal {
        font-size: 22px;
    }

    .action-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(96px, 0.72fr) minmax(0, 1.6fr);
        gap: 8px;
    }

    .action-buttons.single-action {
        grid-template-columns: minmax(0, 1fr);
    }

    .action-buttons.single-action .btn:not(.hidden) {
        grid-column: 1 / -1;
    }

    .action-buttons .btn {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 0 14px;
        border-radius: 16px;
        font-size: 14px;
    }

    .action-buttons .btn-primary,
    .is-review-step .submit-order {
        min-width: 0;
    }

    #finishOrder {
        width: 100%;
        max-width: none;
    }

    .order-app {
        padding-bottom: 16px;
    }
}

@media (max-width: 430px) {
    body {
        padding-bottom: calc(166px + env(safe-area-inset-bottom));
    }

    .wizard-actions-inner {
        padding-right: 9px;
        padding-left: 9px;
    }

    .bottom-total {
        min-height: 46px;
        padding: 7px 10px;
    }

    .bottom-total-copy small {
        display: none;
    }

    #bottomCartTotal {
        font-size: 21px;
    }

    .action-buttons {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .action-buttons .btn {
        min-height: 49px;
        padding-right: 11px;
        padding-left: 11px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .bottom-total-copy span {
        font-size: 9px;
    }

    #bottomCartTotal {
        font-size: 19px;
    }

    .action-buttons {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 7px;
    }
}
/* =========================================================
   CATÁLOGO: DESTACADOS Y DISPONIBILIDAD
   ========================================================= */
.shop-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    max-width: calc(100% - 58px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .02em;
    box-shadow: 0 8px 18px rgba(39, 23, 26, .16);
    backdrop-filter: blur(10px);
}

.shop-badge-featured {
    background: rgba(146, 64, 14, .92);
}

.shop-badge-availability {
    background: rgba(153, 27, 27, .92);
}

.shop-badge-advance {
    background: rgba(30, 64, 175, .92);
}

.product-availability-notice {
    margin-top: 18px;
    padding: 15px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #f1c9cf;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff8f9, #fff);
    box-shadow: var(--shadow-sm);
}

.product-availability-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--brand-soft);
    font-size: 19px;
}

.product-availability-notice strong {
    display: block;
    font-size: 13px;
}

.product-availability-notice p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
}

.availability-payment-info {
    border-color: #f0d28a;
    background: #fffbeb;
}

.availability-payment-info strong,
.availability-payment-info span {
    color: #854d0e;
}

.availability-cart-line {
    margin-top: 4px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #fffbeb;
    color: #854d0e;
}

.availability-cart-line span,
.availability-cart-line b {
    color: #854d0e !important;
}

@media (max-width: 560px) {
    .shop-badges {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 52px);
    }

    .shop-badge {
        min-height: 24px;
        padding: 5px 8px;
        font-size: 8px;
    }

    .product-availability-notice {
        padding: 13px;
    }
}
/* Agregar al CSS administrativo donde ya están los estilos de productos. */
.product-anticipation-fields {
    padding: 16px;
    border: 1px solid #eadfe1;
    border-radius: 18px;
    background: #fffafb;
}

.product-anticipation-fields .product-information-box {
    margin-top: 14px;
}

.availability-admin-card {
    margin-bottom: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #f0d28a;
    border-radius: 18px;
    background: #fffbeb;
}

.availability-admin-card h3 {
    margin: 5px 0;
}

.availability-admin-card p {
    margin: 0 0 8px;
    color: #6b5a2f;
}

@media (max-width: 760px) {
    .availability-admin-card {
        align-items: stretch;
        flex-direction: column;
    }

    .availability-admin-card form,
    .availability-admin-card button {
        width: 100%;
    }
}


/* =========================================================
   ZONAS CALIENTES CON TARIFA FIJA
   ========================================================= */

.hot-zone-alert {
    transition: border-color .18s ease, background .18s ease;
}

.hot-zone-popup span + span {
    margin-top: 4px;
    color: var(--brand-strong);
    font-weight: 900;
}

.hot-zone-popup small {
    margin-top: 6px;
    color: var(--ink-soft);
    line-height: 1.4;
}
