:root {
    --primary: #005596; /* Banesco */
    --success: #25d366; /* WA */
    --bg: #f2f4f7;
    --white: #ffffff;
    --text: #1a1c1e;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }

/* Header */
.app-header { background: var(--white); padding: 15px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-circle { font-size: 24px; background: #fff5e6; padding: 8px; border-radius: 12px; }
.brand h1 { font-size: 18px; font-weight: 700; color: var(--primary); }
.location { font-size: 12px; color: #666; }
.tasa-badge { font-size: 11px; background: #eef2f6; padding: 5px 10px; border-radius: 20px; border: 1px solid #d1d9e0; }

/* Menu */
.menu-container { padding: 20px; max-width: 900px; margin: 0 auto; }
.section-title { font-size: 20px; margin-bottom: 20px; font-weight: 700; }
.product-grid { display: grid; gap: 15px; }

/* Cards */
.card { background: var(--white); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: 0.3s; }
.card-img { height: 160px; background-size: cover; background-position: center; }
.card-body { padding: 15px; }
.card-info h3 { font-size: 16px; margin-bottom: 5px; }
.card-info p { font-size: 13px; color: #666; height: 36px; overflow: hidden; }
.card-action { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.price { font-size: 18px; font-weight: 700; color: var(--primary); }

/* Stepper */
.stepper { display: flex; align-items: center; background: #f0f2f5; border-radius: 12px; padding: 4px; gap: 15px; }
.stepper button { width: 32px; height: 32px; border: none; background: var(--white); border-radius: 10px; font-size: 18px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.stepper span { font-weight: 600; min-width: 15px; text-align: center; }

/* Barra Flotante */
.cart-float { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--primary); border-radius: 20px; padding: 15px 20px; display: none; justify-content: space-between; align-items: center; color: white; box-shadow: 0 10px 25px rgba(0,85,150,0.3); z-index: 500; animation: slideUp 0.4s ease; }
.cart-details { display: flex; flex-direction: column; }
#cart-count { font-size: 12px; opacity: 0.9; }
.total-group { display: flex; align-items: baseline; gap: 8px; }
#total-usd { font-size: 20px; font-weight: 700; }
#total-bs { font-size: 13px; opacity: 0.8; }
.btn-checkout { background: var(--white); color: var(--primary); border: none; padding: 10px 18px; border-radius: 14px; font-weight: 700; cursor: pointer; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 1000; backdrop-filter: blur(2px); }
.drawer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-radius: 30px 30px 0 0; padding: 30px; z-index: 1001; transform: translateY(100%); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.drawer.active { transform: translateY(0); }
.drawer-handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: -10px auto 20px; }

/* Opciones Delivery */
.delivery-selector { display: flex; gap: 10px; margin: 20px 0; }
.delivery-selector label { flex: 1; cursor: pointer; }
.delivery-selector input { display: none; }
.box { padding: 15px; border: 2px solid #f0f2f5; border-radius: 15px; text-align: center; font-weight: 600; transition: 0.3s; }
.delivery-selector input:checked + .box { border-color: var(--primary); background: #f0f7ff; color: var(--primary); }

/* Selector de Tipo de Documento */
.document-type-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0 15px 0;
}

.doc-label {
    flex: 1;
    cursor: pointer;
}

.doc-label input {
    display: none;
}

.doc-box {
    padding: 12px;
    border: 2px solid #f0f2f5;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    background: white;
}

.doc-label input:checked + .doc-box {
    border-color: var(--primary);
    background: #f0f7ff;
    color: var(--primary);
}

/* Campo de Cédula */
.cedula-input {
    margin-bottom: 20px;
}

.cedula-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.cedula-field {
    width: 100%;
    padding: 14px;
    border: 2px solid #f0f2f5;
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.cedula-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 150, 0.1);
}

.final-summary { background: #f8f9fa; padding: 15px; border-radius: 15px; margin-bottom: 20px; }
.final-summary .row { display: flex; justify-content: space-between; margin-bottom: 5px; }

.btn-pay-sms { width: 100%; background: var(--primary); color: white; border: none; padding: 18px; border-radius: 18px; font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(0,85,150,0.2); }
.btn-confirm-wa { width: 100%; background: var(--success); color: white; border: none; padding: 18px; border-radius: 18px; font-size: 16px; font-weight: 700; cursor: pointer; }

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Desktop Grid */
@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .drawer { max-width: 500px; margin: 0 auto; border-radius: 30px; bottom: 20px; }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}