@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Poppins:wght@800;900&family=Bebas+Neue&family=Black+Ops+One&family=Nunito:wght@400;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FFDF3A;            /* Maíz/Queso Amarillo */
  --primary-dark: #C6A600;       /* Amarillo dorado más oscuro */
  --primary-light: #FFDF3A;      /* Amarillo brillante */
  --accent: #000000;             /* Negro profundo */
  --accent-muted: #555555;
  --bg: #F5F5F3;                 /* Fondo crema/gris suave */
  --bg2: #EDEDED;                /* Fondo secundario gris claro */
  --card: #FFFFFF;               /* Blanco para tarjetas */
  --card2: #F0F0F0;              /* Gris claro para controles */
  --border: #DDDDDD;             /* Borde gris claro */
  --text: #1A1A1A;               /* Texto principal negro */
  --text-muted: #777777;         /* Texto secundario */
  --success: #25D366;            /* Verde WhatsApp */
  --success-dark: #1DA851;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --font-title: 'Bebas Neue', cursive;
  --font-display: 'Black Ops One', cursive;
  --font-body: 'Nunito', sans-serif;
  --font-arepa: 'Poppins', sans-serif;
  --font-town: 'Montserrat', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #F8F8F8;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── COMMON HEADER ── */
.header, .page-header {
  background: #000000;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-logo svg { width: 38px; height: 38px; border-radius: 50%; fill: var(--primary); filter: drop-shadow(0 0 6px rgba(242,204,0,0.4)); }
.header-logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--primary); }
.header-logo-text, .logo-text { display: flex; flex-direction: column; line-height: 0.9; }
.header-logo-text .t1, .logo-text span { font-size: 0.85rem; font-weight: 400; color: #EDEDED; letter-spacing: 1.5px; font-family: var(--font-display); }
.header-logo-text .t2, .logo-text .tagline { font-size: 1.15rem; font-weight: 900; color: var(--primary); letter-spacing: 3px; font-family: var(--font-display); }

/* Use Poppins ExtraBold for header AREPA */
.header-logo-text .t1 {
  font-family: var(--font-arepa) !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  font-size: 0.95rem;
  color: var(--primary);
}

/* Use Montserrat Light for header TOWN */
.header-logo-text .t2 {
  font-family: var(--font-town) !important;
  font-weight: 300 !important;
  color: #EDEDED !important;
  letter-spacing: 2px;
}
.header-title { font-family: var(--font-title); font-size: 1.6rem; letter-spacing: 3px; color: #EDEDED; flex: 1; text-align: center; font-weight: 400; }

.cart-btn {
  background: var(--primary); color: #000; border: none; border-radius: 50px;
  padding: 8px 16px; font-size: 0.85rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.cart-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.cart-badge {
  background: #000; color: var(--primary); border-radius: 50%;
  width: 20px; height: 20px; font-size: 0.72rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

.header-back {
  background: none; border: 1.5px solid rgba(255,255,255,0.25); color: #EDEDED;
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.header-back:hover { border-color: var(--primary); color: var(--primary); }

/* ── PROGRESS BAR ── */
.progress-wrap {
  background: #000000;
  padding: 14px 20px;
  border-bottom: none;
  box-shadow: none;
}
.progress-steps { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 700px; margin: 0 auto; }
.step {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; position: relative;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 12px; left: 60%; width: 80%; height: 2px;
  background: rgba(242,204,0,0.3); z-index: 0;
}
.step.active:not(:last-child)::after, .step.done:not(:last-child)::after { background: var(--primary); }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(242,204,0,0.2); color: rgba(242,204,0,0.6);
  font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; transition: all 0.3s; border: 1px solid rgba(242,204,0,0.3);
}
.step.active .step-dot { background: var(--primary); color: #000; box-shadow: 0 0 0 3px rgba(242,204,0,0.25); border: none; }
.step.done .step-dot { background: var(--success); color: #fff; border: none; }
.step-label { font-size: 0.6rem; font-weight: 700; color: rgba(242,204,0,0.6); text-align: center; }
.step.active .step-label { color: var(--primary); font-weight: 800; }
.step.done .step-label { color: var(--success); }

/* ── MAIN CONTENT ── */
.main { padding: 24px; max-width: 100%; margin: 0; background: #F8F8F8; }

/* ── PAGE TITLE ── */
.page-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 4px; font-family: var(--font-title); color: var(--accent); letter-spacing: 2px; }
.page-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.section-header { text-align: center; margin-bottom: 1.5rem; }

/* HERO BANNER */
.hero-banner {
  width: calc(100% + 48px);
  margin: -24px -24px 34px -24px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #000000;
}
.hero-banner-img { width: 100%; height: auto; display: block; }

/* ── CATEGORY FILTER ── */
.category-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 24px 14px 24px; margin: 14px -24px 26px -24px;
  scrollbar-width: none;
}
.category-row::-webkit-scrollbar { display: none; }
.cat-btn {
  background: var(--white); color: #1a1a1a; border: none;
  border-radius: 50px; padding: 12px 18px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all 0.25s;
  font-family: var(--font-body); display: flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cat-btn.active, .cat-btn:hover {
  background: var(--primary); color: #000; border: none;
  box-shadow: 0 4px 14px rgba(242,204,0,0.4); transform: translateY(-2px);
}

/* ── PRODUCTS ROW / LIST ── */
.section-label {
  font-size: 1.5rem; font-weight: 400; margin: 32px 0 20px; color: var(--accent);
  display: flex; align-items: center; gap: 8px; font-family: var(--font-title);
  letter-spacing: 2px; border-left: 4px solid var(--primary); padding-left: 12px;
}
.section-label span { font-size: 1.4rem; }
.products-row {
  display: flex; gap: 14px; overflow-x: auto; padding-top: 8px; padding-bottom: 14px; margin-bottom: 10px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px;
}
.products-row::-webkit-scrollbar { height: 4px; }
.products-row::-webkit-scrollbar-track { background: transparent; }
.products-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.products-row::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--card); border-radius: var(--radius); border: 1.5px solid var(--border);
  min-width: 172px; max-width: 172px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; cursor: pointer; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.product-card.selected { border-color: var(--primary); background: #FFFCE6; box-shadow: 0 0 0 2px rgba(242,204,0,0.2); }
.product-card img { width: 100%; height: 115px; object-fit: cover; }
.product-card .card-body { padding: 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card .card-name { font-size: 0.88rem; font-weight: 800; color: var(--primary-dark); line-height: 1.2; min-height: 42px; }
.product-card .card-desc { font-size: 0.63rem; color: var(--text-muted); line-height: 1.35; height: 65px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }

.add-btn {
  background: var(--primary); color: #000; border: none; border-radius: var(--radius-sm);
  padding: 8px; font-size: 0.8rem; font-weight: 800; cursor: pointer;
  width: 100%; transition: all 0.2s; margin-top: auto;
  font-family: var(--font-body);
}
.add-btn:hover { background: var(--primary-light); }
.add-btn.added { background: var(--success); color: #fff; }

.qty-control {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card2); border-radius: 8px; padding: 4px; margin-top: auto;
}
.qty-btn {
  background: var(--primary); color: #000; border: none;
  width: 26px; height: 26px; border-radius: 6px; font-size: 1.1rem; font-weight: 900;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.qty-btn:hover { background: var(--primary-light); }
.qty-num { font-weight: 800; font-size: 0.95rem; color: var(--text); min-width: 22px; text-align: center; }

/* ── CART FOOTER / FLOATING CART (Legacy) ── */
.cart-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #000;
  border-top: 3px solid var(--primary);
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  z-index: 99; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}
.cart-footer.visible { transform: translateY(0); }
.cart-summary { display: flex; flex-direction: column; text-align: left; }
.cart-actions { display: flex; align-items: center; gap: 10px; }
.cart-clear-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: #000; border: 1px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.cart-clear-btn:hover { background: #f7f7f7; }
.cart-count { font-size: 0.8rem; color: #aaa; font-weight: 700; }
.cart-total { font-family: var(--font-title); font-size: 1.6rem; color: var(--primary); font-weight: 400; letter-spacing: 0.5px; }

/* ── SITE FOOTER ── */
.site-footer {
  background: #0b0b0b; color: #e8e8e8; padding: 18px 20px; text-align: center;
  font-size: 0.92rem; border-top: 4px solid rgba(242,204,0,0.06);
}
.site-footer .footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.site-footer .small { font-size: 0.86rem; color: #cfcfcf; }
.site-footer .footer-title { font-weight: 700; color: var(--primary); font-family: var(--font-arepa); }
.site-footer .footer-sub { color: #bbbbbb; }


.btn-cart {
  background: var(--primary); color: #000; border: none;
  font-family: var(--font-title); font-size: 1.25rem; letter-spacing: 2px;
  padding: 10px 22px; border-radius: 50px; cursor: pointer;
  transition: all 0.2s; font-weight: 400;
}
.btn-cart:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(242,204,0,0.3); }

/* ── FLOATING CART (New) ── */
.floating-cart {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: #000; color: #fff;
  border-radius: 60px; padding: 12px 28px;
  display: flex; align-items: center; gap: 16px;
  z-index: 99; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 0 0 2px rgba(242,204,0,0.15);
  transition: transform 0.35s cubic-bezier(0.1, 0.9, 0.2, 1), box-shadow 0.2s;
  min-width: 300px; max-width: 480px;
}
.floating-cart.visible { transform: translateX(-50%) translateY(0); }
.floating-cart:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 0 3px rgba(242,204,0,0.25); }
.fc-info { display: flex; flex-direction: column; flex: 1; }
.fc-count { font-size: 0.72rem; color: #aaa; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.fc-label { font-size: 0.95rem; font-weight: 800; color: #fff; }
.fc-price { font-family: var(--font-title); font-size: 1.5rem; color: var(--primary); letter-spacing: 0.5px; }

/* ── CART ITEM IN LIST ── */
.cart-item {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--primary); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 800; font-size: 0.92rem; color: var(--text); }
.cart-item-detail { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.cart-item-price { color: var(--primary-dark); font-weight: 400; font-size: 1.1rem; font-family: var(--font-title); letter-spacing: 0.5px; }
.remove-btn { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; padding: 4px; transition: color 0.2s; }
.remove-btn:hover { color: #E74C3C; }

/* ── ORDER TOTAL ── */
.order-total, .order-totals {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 16px 0; box-shadow: var(--shadow-sm);
}
.total-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.88rem; color: var(--text-muted); }
.total-row.big {
  font-size: 1.4rem; font-weight: 400; color: var(--text); border-top: 2px solid var(--border);
  padding-top: 10px; margin-top: 6px; font-family: var(--font-title); letter-spacing: 1px;
}
.total-row.big span:last-child { color: var(--primary-dark); }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.form-input {
  width: 100%; background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem;
  padding: 12px 14px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,204,0,0.15); }
.form-input::placeholder { color: #aaa; }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C6A600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
select.form-input option { background: var(--white); color: var(--text); }

.form-check {
  display: flex; align-items: center; gap: 0.8rem; cursor: pointer; margin-top: 1rem;
  font-size: 0.88rem; color: var(--text-muted); font-weight: 600;
}
.form-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

/* ── DELIVERY OPTIONS ── */
.delivery-options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.delivery-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; cursor: pointer; transition: all 0.25s; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
}
.delivery-card:hover { border-color: var(--primary); background: #FFFCE6; transform: translateY(-2px); }
.delivery-card.selected, .delivery-card.active { border-color: var(--primary); background: #FFFCE6; box-shadow: 0 0 0 3px rgba(242,204,0,0.12); }
.delivery-icon { font-size: 2.5rem; width: 50px; text-align: center; flex-shrink: 0; }
.delivery-info { flex: 1; }
.delivery-info .d-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; color: var(--accent); font-family: var(--font-body); }
.delivery-info .d-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }
.delivery-check {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
  font-weight: 900; font-size: 0.85rem; color: transparent;
}
.delivery-card.selected .delivery-check, .delivery-card.active .delivery-check { background: var(--primary); border-color: var(--primary); color: #000; }

.delivery-fee-badge { background: var(--primary); color: #000; padding: 6px 12px; border-radius: 6px; font-weight: 800; font-size: 0.85rem; margin-top: 6px; display: inline-block; }

/* ── ADDRESS / SALSA INFO WARNING BOXES ── */
.info-box, .salsa-info, #store-info, #warn-address {
  background: #FFFCE6;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(242,204,0,0.06);
}
.info-box strong, .salsa-info strong, #store-info strong { color: var(--primary-dark); }
.info-box p, .salsa-info p { margin: 0; }
.info-box p:last-child { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* ── MODALS (MONSTRUOSA & SALSAS) ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white); border-top: 3px solid var(--primary);
  border-radius: 20px 20px 0 0; padding: 24px;
  width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-title { font-family: var(--font-title); font-size: 1.8rem; color: var(--accent); margin-bottom: 4px; letter-spacing: 2px; font-weight: 400; }
.modal-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }

.config-section { margin-bottom: 22px; }
.config-section h3 { font-family: var(--font-body); font-weight: 800; font-size: 0.88rem; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.config-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg2); border: 1.5px solid var(--border); color: var(--text);
  padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body);
}
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip.selected { background: var(--primary); border-color: var(--primary); color: #000; font-weight: 800; box-shadow: 0 4px 10px rgba(242,204,0,0.2); }
.chip.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.chip-counter { font-size: 0.78rem; color: var(--primary-dark); margin-top: 6px; font-weight: 700; }

.modal-confirm {
  background: var(--primary); color: #000; border: none; width: 100%;
  padding: 12px; border-radius: 50px; font-family: var(--font-title);
  font-size: 1.35rem; letter-spacing: 2px; cursor: pointer;
  margin-top: 14px; transition: background 0.2s; font-weight: 400;
}
.modal-confirm:hover { background: var(--primary-light); }
.modal-cancel {
  background: none; border: 1.5px solid var(--border); color: var(--text-muted);
  width: 100%; padding: 10px; border-radius: 50px; font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 700; cursor: pointer; margin-top: 8px; transition: all 0.2s;
}
.modal-cancel:hover { border-color: var(--accent); color: var(--text); }

/* ── CARRO DE PEDIDO MODAL ── */
.cart-modal-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cart-item-card {
  background: var(--bg2); border: 1.5px solid var(--border); border-radius: 18px;
  padding: 14px 16px; display: grid; gap: 10px;
}
.cart-item-main { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cart-item-title { font-weight: 800; font-size: 1rem; color: var(--accent); }
.cart-item-desc, .cart-item-config { font-size: 0.88rem; color: var(--text-muted); line-height: 1.4; }
.cart-item-config { margin-top: 6px; color: var(--accent); }
.cart-item-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cart-item-actions .qty-btn, .cart-item-remove { border: 1px solid rgba(0,0,0,0.12); background: #fff; color: var(--text); border-radius: 12px; padding: 8px 12px; cursor: pointer; font-weight: 700; transition: transform 0.2s, box-shadow 0.2s; }
.cart-item-actions .qty-btn:hover, .cart-item-remove:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cart-modal-summary { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 0.96rem; color: var(--text); }
.cart-note { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.cart-note strong { color: var(--accent); }
.cart-empty { text-align: center; padding: 28px 12px; color: var(--text-muted); font-size: 0.95rem; }

/* ── SUMMARY CARD ── */
.order-summary-box {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.order-summary-header {
  background: var(--primary); color: #000; padding: 10px 16px;
  font-family: var(--font-title); font-size: 1.25rem; letter-spacing: 2px; font-weight: 400;
}
.order-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; }
.order-item-name { font-weight: 800; font-size: 0.92rem; color: var(--text); }
.order-item-detail { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.order-item-price { font-family: var(--font-title); font-size: 1.15rem; color: var(--primary-dark); white-space: nowrap; font-weight: 400; }

/* ── WHATSAPP PREVIEW ── */
.wa-preview-wrap { background: #0B141A; border-radius: var(--radius); padding: 18px; margin-bottom: 24px; border: 1px solid #1F2C34; box-shadow: var(--shadow-sm); }
.wa-chat-header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #1F2C34; margin-bottom: 14px; }
.wa-avatar { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.wa-name-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.wa-name { font-weight: 800; font-size: 0.9rem; color: #E9EDF0; }
.wa-status { font-size: 0.72rem; color: #8696A0; font-weight: 600; }
.wa-sent-label { text-align: center; font-size: 0.72rem; color: #8696A0; background: #182229; padding: 4px 12px; border-radius: 6px; margin: 0 auto 14px; width: fit-content; font-weight: 700; letter-spacing: 0.5px; }
.wa-bubble { background: #202C33; border-radius: 0 12px 12px 12px; padding: 12px 14px; max-width: 90%; position: relative; font-size: 0.8rem; line-height: 1.5; color: #E9EDF0; white-space: pre-wrap; font-family: monospace, Courier, monospace; }
.wa-bubble::before { content: ''; position: absolute; left: -8px; top: 0; border: 8px solid transparent; border-right-color: #202C33; border-top: 0; }
.wa-time { font-size: 0.65rem; color: #8696A0; text-align: right; margin-top: 4px; font-weight: 600; }

/* ── BUTTONS ── */
.btn {
  display: block; width: 100%; padding: 14px; border: none; border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: all 0.2s; text-align: center; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #000; font-family: var(--font-title); font-size: 1.3rem; letter-spacing: 2px; font-weight: 400; padding: 12px; border-radius: 50px; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(242,204,0,0.25); }
.btn-primary:disabled { background: #ccc; color: #888; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: var(--white); color: var(--text); border: 1.5px solid var(--border); font-size: 0.9rem; font-weight: 700; border-radius: 50px; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-whatsapp, .btn-success { background: #25D366; color: #fff; font-family: var(--font-title); font-size: 1.4rem; letter-spacing: 2px; font-weight: 400; box-shadow: 0 6px 20px rgba(37,211,102,0.3); text-shadow: 0 1px 2px rgba(0,0,0,0.15); border-radius: 50px; }
.btn-whatsapp:hover, .btn-success:hover { background: #20ba58; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
.btn-back { background: none; border: none; color: var(--text-muted); font-size: 0.88rem; cursor: pointer; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; transition: color 0.2s; font-family: inherit; padding: 0; font-weight: 700; }
.btn-back:hover { color: var(--primary-dark); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.empty-state p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }

/* ── SUCCESS PAGE ── */
.success-wrap { text-align: center; padding: 40px 20px; }
.success-icon { width: 80px; height: 80px; background: rgba(37,211,102,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 20px; border: 2.5px solid var(--success); }
.success-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; font-family: var(--font-title); color: var(--accent); letter-spacing: 2px; }
.success-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; line-height: 1.4; }
.order-num { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.order-num span { font-size: 0.78rem; color: var(--text-muted); display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.order-num strong { font-size: 1.6rem; color: var(--primary-dark); font-weight: 900; font-family: var(--font-title); letter-spacing: 1px; }

/* ── MISC / UTILITIES ── */
.divider { height: 1.5px; background: var(--border); margin: 24px 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-delivery { background: rgba(242,204,0,0.12); color: var(--primary-dark); border: 1px solid rgba(242,204,0,0.2); }
.badge-pickup { background: rgba(37,211,102,0.08); color: var(--success); border: 1px solid rgba(37,211,102,0.15); }
.pb-120 { padding-bottom: 120px; }
.pb-cart { padding-bottom: 95px; }
.gap-12 { display: flex; flex-direction: column; gap: 12px; }
.mt-12 { margin-top: 12px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.text-primary { color: var(--primary-dark) !important; }

/* ── SPLASH SCREEN ── */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.splash-bg-mosaic {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  opacity: 0.15; filter: blur(1.5px) brightness(0.25);
  pointer-events: none; gap: 6px; padding: 6px;
}
.splash-bg-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  animation: splashFadeIn 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) both;
  background: rgba(0,0,0,0.85); padding: 30px; border-radius: 20px;
  border: 1.5px solid #1a1a1a; max-width: 440px; width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
.splash-content::before {
  content: '— AREPAS & FAST FOOD —';
  font-size: 0.72rem; color: rgba(242,204,0,0.7); letter-spacing: 5px;
  margin-bottom: -4px; font-weight: 800; font-family: var(--font-body);
}
.splash-logo-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3.5px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(242,204,0,0.08), 0 0 40px rgba(242,204,0,0.25);
  overflow: hidden; background: #080808; display: flex; align-items: center; justify-content: center;
  animation: splashPulse 2s ease-in-out infinite;
}
.splash-logo-wrap svg { width: 90px; height: 75px; fill: var(--primary); }
.splash-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

/* Fallback: usar la imagen del logo como fondo del contenedor (evita problemas de ruta/caché) */
.splash-logo-wrap {
  background-image: url('../logo/arepaTownLogo.jpg') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  z-index: 99999 !important;
  background-color: transparent !important;
}

/* Evitar cualquier pseudo-elemento o contenido que pueda sobreponerse al logo */
.splash-logo-wrap::before,
.splash-logo-wrap::after {
  content: none !important;
  background: none !important;
  display: none !important;
}

/* Asegurar que no queden imágenes internas */
.splash-logo-wrap img { display: none !important; }
.splash-name {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  text-align: center;
  letter-spacing: 2px;
  font-family: var(--font-display);
  line-height: 0.9;
}
.splash-name span { color: var(--primary); }

/* Apply Poppins ExtraBold to the AREPA word in the splash */
.splash-arepa {
  font-family: var(--font-arepa) !important;
  font-weight: 800 !important;
  font-size: 3.0rem; /* match size of splash-name */
  letter-spacing: 1px;
  color: var(--primary);
}
.splash-town { font-family: var(--font-display); font-weight: 900; color: var(--white); }

/* Use Montserrat Light for TOWN in splash */
.splash-town {
  font-family: var(--font-town) !important;
  font-weight: 300 !important;
  color: var(--white) !important;
  font-size: 3rem;
  letter-spacing: 2px;
}
.splash-tagline {
  font-size: 0.78rem; color: #aaa; letter-spacing: 1.5px;
  font-weight: 700; text-transform: uppercase; text-align: center;
}
.splash-info { text-align: center; }
.splash-location { font-size: 0.8rem; color: #ddd; font-weight: 700; margin-bottom: 4px; }
.splash-hours { font-size: 0.75rem; color: #aaa; font-weight: 600; }

.splash-food-row { display: flex; gap: 8px; margin-top: 4px; justify-content: center; }
.splash-food-img {
  width: 58px; height: 58px; border-radius: 8px; object-fit: cover;
  border: 2px solid rgba(242,204,0,0.3);
  animation: splashFoodIn 0.5s ease both;
  box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}
.splash-food-img:nth-child(1) { animation-delay: 0.15s; }
.splash-food-img:nth-child(2) { animation-delay: 0.25s; }
.splash-food-img:nth-child(3) { animation-delay: 0.35s; }
.splash-food-img:nth-child(4) { animation-delay: 0.45s; }

.splash-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.splash-badge { background: #111; border: 1px solid #222; font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; color: #ddd; font-weight: 700; }

.splash-bar-wrap { width: 180px; height: 5px; background: #181818; border-radius: 10px; overflow: hidden; margin-top: 8px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.splash-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px; animation: splashLoad 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  box-shadow: 0 0 8px rgba(242,204,0,0.5);
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(242,204,0,0.06), 0 0 30px rgba(242,204,0,0.2); }
  50%       { box-shadow: 0 0 0 10px rgba(242,204,0,0.1), 0 0 45px rgba(242,204,0,0.4); }
}
@keyframes splashLoad {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}
@keyframes splashFoodIn {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
#splash-screen.hidden { animation: splashExit 0.5s ease forwards; }
@keyframes splashExit {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.03); pointer-events: none; }
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .main { padding: 16px; }
  .product-card { min-width: 155px; max-width: 155px; }
  .category-row { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .products-row { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .page-title { font-size: 1.6rem; }
  .section-label { font-size: 1.25rem; }
  .floating-cart { min-width: 260px; padding: 10px 20px; }
  .fc-price { font-size: 1.3rem; }
  .splash-content { padding: 20px; }
  .splash-name { font-size: 2.5rem; }
}
