/* ── RESET & VARIABLES ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --cream:   #faf5ee;
  --beige:   #ede0c8;
  --tan:     #d4b896;
  --brown:   #7a4f2e;
  --dark:    #4a2c12;
  --light:   #fff8f0;
  --accent:  #c07840;
  --shadow:  rgba(74, 44, 18, 0.15);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ────────────────────────────────────────────── */
header {
  background: var(--dark);
  color: var(--beige);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.cart-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tan);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.62rem;
  color: var(--beige);
  opacity: 0.7;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cart-btn {
  position: relative;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 44px;
}

.cart-btn:active { background: var(--brown); }

.cart-badge {
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

/* ── CATEGORÍAS ────────────────────────────────────────── */
.cats {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar { display: none; }

.cat-btn {
  border: 2px solid var(--tan);
  background: transparent;
  color: var(--brown);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-btn.active,
.cat-btn:active {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

/* ── TÍTULO DE SECCIÓN ─────────────────────────────────── */
.section-title {
  padding: 16px 16px 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  border-bottom: 2px solid var(--beige);
  margin: 0 16px;
}

/* ── GRID DE PRODUCTOS ─────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 16px 100px;
}

@media (min-width: 540px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px)  {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px 24px 100px;
  }
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}

.card:active { transform: scale(0.97); }

.card-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--cream);
  overflow: hidden;
}

@media (min-width: 480px) {
  .card-img { height: 150px; font-size: 52px; }
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.2s;
}

.card:active .product-img { transform: scale(0.95); }

.card-body { padding: 10px; }

.card-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 3px;
}

.card-desc {
  font-size: 0.7rem;
  color: #999;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-weight: 800;
  color: var(--brown);
  font-size: 0.95rem;
}

.add-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-btn:active { background: var(--brown); }

/* ── CARRITO ───────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px var(--shadow);
}

.cart-panel.open { transform: translateX(0); }

.cart-header {
  background: var(--dark);
  color: var(--beige);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--beige);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}

.empty-cart .empty-icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.empty-cart p { font-size: 0.9rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--beige);
}

.ci-emoji {
  font-size: 30px;
  width: 50px;
  height: 50px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-thumb {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.ci-info { flex: 1; min-width: 0; }

.ci-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-price {
  font-size: 0.75rem;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 4px;
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: var(--beige);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:active { background: var(--tan); }

.qty-num {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

.ci-total {
  font-weight: 800;
  color: var(--dark);
  font-size: 0.9rem;
  min-width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.ci-delete {
  background: none;
  border: none;
  color: #ccc;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.ci-delete:hover { color: #e55; background: #fee2e2; }

.cart-footer {
  padding: 14px 16px;
  border-top: 2px solid var(--beige);
  background: var(--light);
  flex-shrink: 0;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cart-summary span { font-size: 0.88rem; color: #888; }

.cart-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.checkout-btn {
  width: 100%;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 50px;
}

.checkout-btn:active { background: var(--brown); }
.checkout-btn:disabled { background: #ccc; cursor: default; }

/* ── MODALES ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 480px) {
  .modal-overlay { align-items: center; padding: 20px; }
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px 20px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 480px) {
  .modal {
    border-radius: 20px;
    width: min(460px, 100%);
    max-height: 88vh;
  }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--beige);
  border-radius: 2px;
  margin: 0 auto 20px;
}

@media (min-width: 480px) { .modal-handle { display: none; } }

.modal h2 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 4px;
  font-weight: 800;
}

.modal-sub {
  color: #999;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--beige);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  -webkit-appearance: none;
}

input[type="text"]:focus { border-color: var(--accent); }

.pay-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pay-opt {
  border: 2px solid var(--beige);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}

.pay-opt:active,
.pay-opt.selected {
  border-color: var(--accent);
  background: var(--cream);
}

.pay-opt .pay-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.pay-opt .pay-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
}

.order-summary {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}

.order-summary h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.os-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--dark);
  padding: 3px 0;
}

.os-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
  border-top: 2px solid var(--tan);
  padding-top: 10px;
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-cancel {
  flex: 1;
  background: var(--beige);
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  min-height: 50px;
}

.btn-cancel:active { background: var(--tan); }

.btn-confirm {
  flex: 2;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  min-height: 50px;
}

.btn-confirm:active { background: var(--brown); }

/* ── TICKET ────────────────────────────────────────────── */
.ticket {
  background: var(--cream);
  border: 2px dashed var(--tan);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}

.ticket-logo { font-size: 38px; margin-bottom: 6px; }

.ticket-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
}

.ticket-sub {
  font-size: 0.68rem;
  color: #999;
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ticket-info { text-align: left; margin-bottom: 12px; }

.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.83rem;
  border-bottom: 1px dotted var(--tan);
}

.ticket-row:last-child { border: none; }
.ticket-row span:first-child { color: #888; }
.ticket-row span:last-child { font-weight: 700; color: var(--dark); }

.ticket-items { text-align: left; margin-bottom: 12px; }

.ticket-items h4 {
  font-size: 0.75rem;
  color: var(--brown);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ti-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 3px 0;
}

.ticket-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  border-top: 2px solid var(--tan);
  padding-top: 10px;
  margin-top: 6px;
}

.ticket-footer { font-size: 0.7rem; color: #aaa; margin-top: 10px; }

.wa-btn {
  width: 100%;
  background: #25D366;
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  min-height: 52px;
}

.wa-btn:active { background: #128C7E; }

.new-order-btn {
  width: 100%;
  background: var(--beige);
  border: none;
  color: var(--dark);
  border-radius: 50px;
  padding: 13px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  min-height: 48px;
}

.new-order-btn:active { background: var(--tan); }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: var(--beige);
  padding: 36px 16px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto 28px;
}

@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-section h3 {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--tan);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 90px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--beige);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: #a88a6e;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--beige);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 10px;
  min-height: 44px;
}

.social-link:active { background: rgba(255, 255, 255, 0.1); }

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.social-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--beige);
  line-height: 1.4;
}

.contact-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hour-row:last-child { border: none; }
.hour-day { color: #a88a6e; }
.hour-time { font-weight: 600; color: var(--beige); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.73rem;
  color: #7a5c40;
  max-width: 900px;
  margin: 0 auto;
}

/* ── ICONOS PNG CATEGORÍAS ─────────────────────────────────── */
.cat-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── ICONO TRASH (máscara SVG) ─────────────────────────────── */
.icon-trash {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-image: url(assets/icons/trash.svg);
  mask-image: url(assets/icons/trash.svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}

/* ── TEMPORADA BADGE ───────────────────────────────────────── */
.card { position: relative; }

.seasonal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: #f59e0b;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── OPCIONES HINT EN TARJETA ──────────────────────────────── */
.card-opts {
  font-size: 0.67rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ── OPCIONES EN CARRITO ───────────────────────────────────── */
.ci-opts {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ── MODAL: OPCIONES DE PRODUCTO ───────────────────────────── */
.opt-product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.opt-emoji {
  font-size: 46px;
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt-product-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
}

.opt-product-info { flex: 1; min-width: 0; }

.opt-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
}

.opt-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brown);
}

.opt-group { margin-bottom: 18px; }

.opt-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.opt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-choice input[type="radio"] { display: none; }

.opt-choice-btn {
  display: block;
  padding: 9px 18px;
  border: 2px solid var(--beige);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
}

.opt-choice input:checked + .opt-choice-btn {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

.opt-choice-btn:hover { border-color: var(--brown); }

/* ── CONTADOR POR VARIANTE (un-grupo) ──────────────────────── */
.opt-cq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opt-cq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}

.opt-cq-row:has(#cqty_0_0:not(:empty)) { background: transparent; }

.opt-cq-row:hover { background: var(--cream); }

.opt-cq-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.opt-cq-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.opt-cq-price {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.opt-min-note {
  font-size: 0.75rem;
  color: var(--brown);
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
  opacity: 0.8;
}

.opt-cq-total {
  text-align: right;
  font-size: 0.82rem;
  color: #999;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--tan);
}

.opt-cq-total strong {
  color: var(--brown);
  font-size: 1rem;
}

/* ── SELECTOR DE CANTIDAD EN MODAL OPCIONES ────────────────── */
.opt-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.opt-qty-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.opt-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opt-qty-num {
  font-weight: 800;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
  color: var(--dark);
}

.transfer-info-img {
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
  display: block;
}

.transfer-note {
  font-size: 0.8rem;
  color: var(--brown);
  font-weight: 600;
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  line-height: 1.4;
}

/* ── ENTREGA ────────────────────────────────────────────────── */
.delivery-opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.delivery-opt {
  border: 2px solid var(--beige);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}

.delivery-opt:active,
.delivery-opt.selected {
  border-color: var(--accent);
  background: var(--cream);
}

.delivery-icon { font-size: 1.6rem; margin-bottom: 4px; }

.delivery-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
}

#addressGroup input {
  margin-top: 4px;
}

/* ── CAMBIO EN EFECTIVO ─────────────────────────────────────── */
.change-info {
  margin-top: 10px;
  padding: 12px;
  background: var(--cream);
  border-radius: 12px;
}

.change-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.change-opts {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.change-opt {
  flex: 1;
  padding: 8px 10px;
  border: 2px solid var(--beige);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  text-align: center;
  transition: 0.15s;
  background: #fff;
}

.change-opt.selected {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

#changeAmount {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--beige);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#changeAmount:focus { border-color: var(--accent); }

/* ── BOTÓN FLOTANTE WHATSAPP ────────────────────────────────── */
.fab-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.fab-wa:hover  { background: #128C7E; transform: scale(1.08); }
.fab-wa:active { transform: scale(0.94); }

.opt-subtotal {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brown);
  min-width: 52px;
  text-align: right;
}