:root {
      --hb-white:   #FFFDF8;
      --hb-beige:   #F5EFE0;
      --hb-beige2:  #EDE4D0;
      --hb-beige3:  #E2D5BC;
      --hb-dark:    #1A1410;
      --hb-dark2:   #2C2418;
      --hb-muted:   #7A6A50;
      --hb-gold:    #C8972A;
      --hb-gold2:   #E8B84B;
      --hb-border:  rgba(200,151,42,0.25);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: 'DM Sans', sans-serif; background: var(--hb-white); color: var(--hb-dark2); min-height: 100vh; }
    ::selection { background: rgba(200,151,42,0.2); color: var(--hb-dark); }

    /* ── NAV ── */
    #nav {
      position: sticky; top: 0; z-index: 100;
      background: var(--hb-beige2); border-bottom: 1px solid var(--hb-border);
      box-shadow: 0 2px 20px rgba(26,20,16,0.08);
      display: flex; align-items: center; gap: 20px;
      padding: 0 5%; height: 64px;
    }
    .nav-logo { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--hb-dark); text-decoration: none; letter-spacing: 0.05em; flex-shrink: 0; }
    .nav-spacer { flex: 1; }
    .nav-steps { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--hb-muted); }
    .nav-step { display: flex; align-items: center; gap: 5px; }
    .nav-step-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--hb-beige3); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: var(--hb-muted); transition: all 0.3s; }
    .nav-step.active .nav-step-dot { background: var(--hb-gold); color: var(--hb-white); }
    .nav-step.done .nav-step-dot { background: rgba(200,151,42,0.2); color: var(--hb-gold); }
    .nav-step-sep { width: 24px; height: 1px; background: var(--hb-border); }

    /* ── LANG ── */
    .hb-lang-btn { position: relative; display: flex; align-items: center; gap: 6px; background: var(--hb-beige); border: 1px solid var(--hb-border); border-radius: 30px; padding: 6px 14px; cursor: pointer; font-size: 0.78rem; font-weight: 600; color: var(--hb-dark2); user-select: none; transition: all 0.25s; flex-shrink: 0; }
    .hb-lang-btn:hover { border-color: var(--hb-gold); }
    .hb-lang-btn.open { border-color: var(--hb-gold); background: var(--hb-white); }
    .hb-lang-arrow { font-size: 0.6rem; transition: transform 0.25s; }
    .hb-lang-btn.open .hb-lang-arrow { transform: rotate(180deg); }
    .hb-lang-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--hb-white); border: 1px solid var(--hb-border); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(26,20,16,0.14); min-width: 170px; z-index: 200; }
    .hb-lang-btn.open .hb-lang-dropdown { display: block; }
    .hb-lang-option { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; transition: background 0.2s; font-size: 0.82rem; }
    .hb-lang-option:hover { background: var(--hb-beige); }
    .hb-lang-option.active { background: rgba(200,151,42,0.08); }
    .hb-lang-code { margin-left: auto; color: var(--hb-muted); font-size: 0.7rem; }

    /* ── HERO ── */
    .checkout-hero { background: var(--hb-dark); padding: 48px 5% 36px; position: relative; overflow: hidden; }
    .checkout-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(200,151,42,0.08) 0%, transparent 60%); pointer-events: none; }
    .checkout-hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
    .checkout-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,151,42,0.12); border: 1px solid rgba(200,151,42,0.35); color: var(--hb-beige2); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 16px; border-radius: 40px; margin-bottom: 16px; }
    .checkout-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--hb-gold); display: inline-block; }
    .checkout-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--hb-beige2); line-height: 1.1; margin-bottom: 8px; }
    .checkout-hero h1 em { color: var(--hb-gold); font-style: italic; }
    .checkout-hero p { color: rgba(237,228,208,0.6); font-size: 0.88rem; }
    .checkout-trust { display: flex; gap: 16px; flex-wrap: wrap; }
    .trust-badge { display: flex; align-items: center; gap: 7px; background: rgba(200,151,42,0.1); border: 1px solid rgba(200,151,42,0.2); border-radius: 30px; padding: 6px 14px; color: var(--hb-beige2); font-size: 0.75rem; }
    .trust-badge .trust-icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }

    /* ── LAYOUT ── */
    .checkout-body { max-width: 1100px; margin: 0 auto; padding: 40px 5% 80px; display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
    @media (max-width: 860px) { .checkout-body { grid-template-columns: 1fr; } .checkout-sidebar { order: -1; } }

    /* ── SECCIONES ── */
    .checkout-main { display: flex; flex-direction: column; gap: 24px; }
    .checkout-section { background: var(--hb-white); border: 1px solid var(--hb-border); border-radius: 20px; overflow: hidden; }
    .section-header { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--hb-border); background: var(--hb-beige); }
    .section-num { width: 22px; height: 22px; border-radius: 50%; background: var(--hb-gold); color: var(--hb-white); font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .section-title { font-size: 0.9rem; font-weight: 700; color: var(--hb-dark); letter-spacing: 0.02em; }
    .section-sub { font-size: 0.75rem; color: var(--hb-muted); margin-top: 1px; }
    .section-body { padding: 24px; }

    /* ── FORMULARIO ── */
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .form-row.full { grid-template-columns: 1fr; }
    @media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
    .form-group { display: flex; flex-direction: column; gap: 6px; }
    .form-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--hb-muted); }
    .form-input, .form-select { width: 100%; padding: 12px 16px; background: var(--hb-beige); border: 1px solid var(--hb-border); border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--hb-dark); transition: all 0.25s; outline: none; appearance: none; }
    .form-input::placeholder { color: rgba(122,106,80,0.5); }
    .form-input:focus, .form-select:focus { border-color: var(--hb-gold); background: var(--hb-white); box-shadow: 0 0 0 3px rgba(200,151,42,0.1); }
    .form-select-wrap { position: relative; }
    .form-select-wrap::after { content: ''; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--hb-muted); pointer-events: none; }

    /* ── SELECTOR PRODUCTO ── */
    .product-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    @media (max-width: 500px) { .product-selector { grid-template-columns: 1fr; } }
    .prod-opt { position: relative; border: 2px solid var(--hb-border); border-radius: 16px; padding: 16px; cursor: pointer; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); background: var(--hb-beige); }
    .prod-opt:hover { border-color: rgba(200,151,42,0.5); transform: translateY(-2px); }
    .prod-opt.selected { border-color: var(--hb-gold); background: var(--hb-white); box-shadow: 0 8px 32px rgba(200,151,42,0.15); }
    .prod-opt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
    .prod-opt-check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hb-border); transition: all 0.2s; background: var(--hb-white); display: flex; align-items: center; justify-content: center; }
    .prod-opt.selected .prod-opt-check { background: var(--hb-gold); border-color: var(--hb-gold); }
    .prod-opt.selected .prod-opt-check::after { content: ''; width: 6px; height: 4px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translateY(-1px); display: block; }
    .prod-badge { font-size: 0.62rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hb-gold); background: rgba(200,151,42,0.1); border: 1px solid rgba(200,151,42,0.2); border-radius: 20px; padding: 3px 10px; display: inline-block; margin-bottom: 8px; }
    .prod-img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
    .prod-weight { font-size: 1.5rem; font-weight: 800; color: var(--hb-gold); line-height: 1; }
    .prod-weight span { font-size: 0.85rem; font-weight: 400; color: var(--hb-muted); }
    .prod-name { font-size: 0.78rem; color: var(--hb-muted); margin: 2px 0 6px; }
    .prod-price { font-size: 1rem; font-weight: 700; color: var(--hb-dark); }
    .prod-price span { font-size: 0.72rem; font-weight: 400; color: var(--hb-muted); }

    /* ── AROMAS ── */
    .scent-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
    .scent-pill { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--hb-border); border-radius: 30px; cursor: pointer; font-size: 0.8rem; color: var(--hb-muted); transition: all 0.25s; background: var(--hb-beige); }
    .scent-pill:hover { border-color: rgba(200,151,42,0.5); color: var(--hb-dark2); }
    .scent-pill.active { border-color: var(--hb-gold); color: var(--hb-dark); background: rgba(200,151,42,0.08); box-shadow: 0 2px 12px rgba(200,151,42,0.12); }
    .scent-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

    /* ── CANTIDAD ── */
    .qty-row { display: flex; align-items: center; gap: 12px; }
    .qty-ctrl { display: flex; align-items: center; border: 1px solid var(--hb-border); border-radius: 12px; overflow: hidden; background: var(--hb-beige); }
    .qty-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; color: var(--hb-muted); border: none; background: transparent; transition: all 0.2s; }
    .qty-btn:hover { color: var(--hb-gold); background: rgba(200,151,42,0.06); }
    .qty-num { width: 44px; text-align: center; font-weight: 700; font-size: 0.95rem; color: var(--hb-dark); border: none; background: transparent; font-family: 'DM Sans', sans-serif; }
    .qty-num::-webkit-outer-spin-button, .qty-num::-webkit-inner-spin-button { -webkit-appearance: none; }
    .qty-savings { font-size: 0.75rem; color: var(--hb-gold); background: rgba(200,151,42,0.08); border-radius: 20px; padding: 4px 10px; }

    /* ── MÉTODOS DE PAGO ── */
    /* Contenedor de métodos — puede tener 1 o 2 columnas según el producto */
    .payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .payment-methods.single { grid-template-columns: 1fr; }
    @media (max-width: 500px) { .payment-methods { grid-template-columns: 1fr; } }

    .pay-method { position: relative; border: 2px solid var(--hb-border); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: all 0.25s; background: var(--hb-beige); }
    .pay-method:hover { border-color: rgba(200,151,42,0.4); }
    .pay-method.selected { border-color: var(--hb-gold); background: var(--hb-white); box-shadow: 0 4px 20px rgba(200,151,42,0.1); }
    .pay-method input { position: absolute; opacity: 0; pointer-events: none; }
    .pay-method-label { font-size: 0.82rem; font-weight: 600; color: var(--hb-dark); display: flex; align-items: center; gap: 8px; }
    .pay-method-sub { font-size: 0.72rem; color: var(--hb-muted); margin-top: 3px; }
    .pay-icons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
    .pay-icon-badge { background: var(--hb-white); border: 1px solid var(--hb-beige3); border-radius: 6px; padding: 3px 8px; font-size: 0.7rem; color: var(--hb-muted); font-weight: 600; }

    /* Campos condicionales de pago */
    .paypal-fields, .whatsapp-fields { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--hb-border); }
    .paypal-fields.show, .whatsapp-fields.show { display: block; }

    /* Aviso de modo pago (reemplaza métodos según producto) */
    .pay-info-banner { display: none; background: rgba(200,151,42,0.06); border: 1px solid rgba(200,151,42,0.25); border-radius: 14px; padding: 16px 18px; }
    .pay-info-banner.show { display: flex; gap: 12px; align-items: flex-start; }
    .pay-info-banner p { font-size: 0.82rem; color: var(--hb-dark2); line-height: 1.6; }
    .pay-info-banner strong { color: var(--hb-dark); }

    /* ── INFO BOX ── */
    .info-box { background: rgba(200,151,42,0.06); border: 1px solid rgba(200,151,42,0.2); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
    .info-box-icon { flex-shrink: 0; margin-top: 2px; }
    .info-box-icon img { width: 20px; height: 20px; object-fit: contain; }
    .info-box p { font-size: 0.8rem; color: var(--hb-dark2); line-height: 1.6; }
    .info-box strong { color: var(--hb-dark); }

    /* ── CHECKBOX ── */
    .check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
    .check-box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--hb-border); background: var(--hb-beige); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; cursor: pointer; }
    .check-box.checked { background: var(--hb-gold); border-color: var(--hb-gold); }
    .check-box.checked::after { content: ''; width: 8px; height: 5px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translateY(-1px); display: block; }
    .check-label { font-size: 0.8rem; color: var(--hb-dark2); line-height: 1.5; }
    .check-label a { color: var(--hb-gold); text-decoration: none; }

    /* ── BOTONES ── */
    .btn-checkout { width: 100%; padding: 16px 24px; background: var(--hb-gold); color: var(--hb-white); border: none; border-radius: 14px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 6px 24px rgba(200,151,42,0.3); }
    .btn-checkout:hover { background: var(--hb-gold2); color: var(--hb-dark); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(200,151,42,0.4); }
    .btn-checkout:active { transform: translateY(0); }
    .btn-wa-checkout { width: 100%; padding: 14px 24px; background: transparent; color: var(--hb-gold); border: 2px solid var(--hb-border); border-radius: 14px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.25s; text-decoration: none; margin-top: 10px; }
    .btn-wa-checkout:hover { border-color: var(--hb-gold); background: rgba(200,151,42,0.06); }

    /* ── SIDEBAR ── */
    .checkout-sidebar { position: sticky; top: 88px; }
    .order-summary { background: var(--hb-white); border: 1px solid var(--hb-border); border-radius: 20px; overflow: hidden; }
    .summary-header { padding: 18px 20px; background: var(--hb-dark); display: flex; align-items: center; gap: 10px; }
    .summary-header h2 { font-size: 0.85rem; font-weight: 700; color: var(--hb-beige2); letter-spacing: 0.5px; }
    .summary-body { padding: 20px; }
    .summary-product { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--hb-border); margin-bottom: 16px; }
    .summary-img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; border: 1px solid var(--hb-border); flex-shrink: 0; background: var(--hb-beige); }
    .summary-prod-info { flex: 1; min-width: 0; }
    .summary-prod-name { font-weight: 700; font-size: 0.9rem; color: var(--hb-dark); }
    .summary-prod-detail { font-size: 0.75rem; color: var(--hb-muted); margin-top: 2px; }
    .summary-prod-price { font-size: 1.05rem; font-weight: 800; color: var(--hb-gold); text-align: right; white-space: nowrap; }
    .summary-line { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; margin-bottom: 10px; color: var(--hb-dark2); }
    .summary-line span:last-child { font-weight: 600; }
    .summary-line.total { font-size: 1rem; font-weight: 700; color: var(--hb-dark); padding-top: 12px; border-top: 1px solid var(--hb-border); margin-top: 4px; }
    .summary-line.total span:last-child { color: var(--hb-gold); font-size: 1.1rem; }
    .summary-discount { background: rgba(200,151,42,0.08); border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--hb-gold); margin-bottom: 12px; }

    /* Beneficios */
    .buy-benefits { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
    .buy-benefit { display: flex; align-items: flex-start; gap: 10px; font-size: 0.78rem; color: var(--hb-dark2); }
    .buy-benefit-icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(200,151,42,0.1); border: 1px solid var(--hb-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .buy-benefit-icon img { width: 18px; height: 18px; object-fit: contain; }
    .buy-benefit strong { display: block; color: var(--hb-dark); margin-bottom: 1px; }

    /* Cupón */
    .coupon-row { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--hb-border); }
    .coupon-input { flex: 1; padding: 10px 14px; border: 1px solid var(--hb-border); border-radius: 10px; background: var(--hb-beige); font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: var(--hb-dark); outline: none; }
    .coupon-input:focus { border-color: var(--hb-gold); }
    .coupon-btn { padding: 10px 16px; background: var(--hb-dark); color: var(--hb-gold); border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
    .coupon-btn:hover { background: var(--hb-dark2); }

    /* ── FOOTER ── */
    .checkout-footer { background: var(--hb-dark); padding: 24px 5%; text-align: center; }
    .checkout-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
    .footer-brand-mini { font-family: 'DM Serif Display', serif; color: var(--hb-gold); font-size: 1.1rem; }
    .footer-secure { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
    .footer-secure-item { display: flex; align-items: center; gap: 6px; color: rgba(237,228,208,0.5); font-size: 0.72rem; }
    .footer-copy { color: rgba(237,228,208,0.35); font-size: 0.72rem; }

    /* WA FAB */
    .wa-fab { position: fixed; bottom: 24px; right: 24px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.35); transition: all 0.3s; color: white; }
    .wa-fab:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(37,211,102,0.45); }

    /* Animaciones */
    @keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
    .checkout-main > * { animation: fadeUp 0.45s ease both; }
    .checkout-main > *:nth-child(1) { animation-delay:0.05s; }
    .checkout-main > *:nth-child(2) { animation-delay:0.12s; }
    .checkout-main > *:nth-child(3) { animation-delay:0.18s; }
    .checkout-main > *:nth-child(4) { animation-delay:0.24s; }
    .checkout-main > *:nth-child(5) { animation-delay:0.30s; }
    .checkout-sidebar { animation: fadeUp 0.5s ease 0.1s both; }

    @keyframes shimmer { 0%{background-position:-200% center;} 100%{background-position:200% center;} }
    .price-shimmer { background: linear-gradient(90deg,var(--hb-gold) 25%,var(--hb-gold2) 50%,var(--hb-gold) 75%); background-size:200% auto; -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation:shimmer 3s linear infinite; }