@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #8B1519;
  --gold-light: #A52A2A;
  --gold-dark: #6B0F12;
  --gold-accent: #C8A245;
  --text: #FFF8F0;
  --text-light: rgba(255, 248, 240, 0.7);
  --text-muted: rgba(255, 248, 240, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --radius-full: 9999px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --nav-height: 52px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --margin-x: 0.75rem;
}

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

/* Force Poppins on all elements to eradicate any serif inheritance */
h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select, label, span, div, li, td, th, blockquote, cite, figcaption, address {
  font-family: 'Poppins', sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(170deg, #c37b4c 0%, #4a2e1b 50%, #2b160a 100%) fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea {
  font-family: var(--font-body);
  border: none;
  outline: none;
  font-size: inherit;
  color: inherit;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
}

.glass-hover:hover {
  background: var(--glass-hover);
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(30, 20, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: var(--safe-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: var(--nav-height);
  padding: 0.3rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-flotante {
  max-height: 40px;
  width: auto;
  border-radius: 6px;
  display: block;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: transparent;
  padding-top: calc(var(--nav-height) + var(--safe-top));
}

#searchBar {
  padding: 0.75rem 1.25rem 0.35rem;
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  transition: border-color 0.25s;
}

.search-inner:focus-within {
  border-color: var(--gold);
}

.search-inner svg {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.7;
}

.search-inner input {
  flex: 1;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
}

.search-inner input::placeholder {
  color: var(--text-muted);
}

#categories {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 1.25rem 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#categories::after {
  content: '';
  flex-shrink: 0;
  width: 2px;
}

#categories::-webkit-scrollbar {
  display: none;
}

.category {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-accent);
  background: transparent;
  border: 1px solid rgba(200, 162, 69, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category:active {
  transform: scale(0.96);
}

.category.active {
  background: #FDFBF7;
  color: #2B1810;
  border-color: #FDFBF7;
  font-weight: 700;
}

.cat-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#mainContent {
  padding-bottom: calc(68px + 2.5rem);
}

.view {
  display: none;
  animation: fadeIn 0.35s ease;
}

.view.active {
  display: block;
}

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

.subcategory-group {
  margin: 0 var(--margin-x);
  padding: 0 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .subcategory-group {
    margin-left: calc(var(--margin-x) + 0.25rem);
    margin-right: calc(var(--margin-x) + 0.25rem);
  }
}

.subcategory-group:first-of-type {
  margin-top: 0.25rem;
}

.subcategory-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  padding: 0 0.25rem;
  letter-spacing: 0.02em;
}

.featured-carousel {
  margin: 0.75rem var(--margin-x) 0.5rem;
  padding: 0 0.5rem;
}

.featured-carousel.hidden {
  display: none;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
  letter-spacing: -0.01em;
}

.featured-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.featured-track::-webkit-scrollbar {
  display: none;
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.25rem 0 0.5rem;
}

.featured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.featured-dot.active {
  background: var(--gold-accent);
  width: 18px;
  border-radius: 3px;
}

.f-card {
  flex-shrink: 0;
  width: 150px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.f-card-img {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.f-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.f-card-body {
  padding: 0.6rem 0.65rem 0.7rem;
}

.f-card-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.f-card-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.f-card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-accent);
}
.f-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.fc-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--gold-accent);
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.fc-add:hover { background: #d4af37; }
.fc-add:active { transform: scale(0.9); }

.product-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: background 0.25s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.pc-image {
  width: 88px;
  height: 88px;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0.15rem 0 0.1rem;
}

.pc-badge {
  align-self: flex-start;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.pc-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0.2rem 0 0.1rem;
  letter-spacing: -0.01em;
}

.pc-rating {
  font-size: 0.68rem;
  color: #F5C518;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 0.15rem;
}

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

.pc-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.pc-add {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #2b160a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
}

.pc-add:active {
  transform: scale(0.85);
}

.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-bd {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-inner {
  position: relative;
  width: 100%;
  max-height: 92vh;
  background: rgba(43, 22, 10, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 2rem 2rem 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--glass-border);
}

.modal.open .modal-inner {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.modal-img-wrap {
  width: 100%;
  height: 260px;
  border-radius: 0 0 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 1.25rem 1.5rem 2rem;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.modal-header-row h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  flex: 1;
}

.modal-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.like-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.like-btn.liked {
  color: #E74C3C;
  border-color: rgba(231, 76, 60, 0.4);
  background: rgba(231, 76, 60, 0.1);
}

.price-gold {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.btn-gold {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: var(--gold);
  color: #2b160a;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.btn-gold:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.modal-desc {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.detail-table {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-value {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
  text-align: right;
}

.reviews-section {
  margin-top: 0.5rem;
}

.reviews-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.reviews-table {
  width: 100%;
}

.review-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 0.4rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  align-items: center;
}

.review-row:last-child {
  border-bottom: none;
}

.review-row-header {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.review-name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-text {
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-stars {
  color: #F5C518;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: right;
}

.review-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
}

.review-input input {
  flex: 1;
  background: transparent;
  font-size: 0.85rem;
  color: var(--text);
}

.review-input input::placeholder {
  color: var(--text-muted);
}

.review-submit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #2b160a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.review-submit:active {
  transform: scale(0.85);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--radius-sm);
  padding: 0.15rem;
  border: 1px solid var(--glass-border);
}

.qty-selector button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: background 0.2s;
}

.qty-selector button:active {
  background: var(--glass-hover);
}

.qty-selector span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #C8A245, #B8922E);
  color: #1a1a2e;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-sm {
  display: inline-block;
  width: auto;
  padding: 0.75rem 1.5rem;
}

#cartView {
  padding: 1.25rem var(--margin-x);
}

#cartView > h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.ci-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ci-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.ci-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.ci-info .ci-unit-price {
  font-size: 0.78rem;
  color: var(--text-light);
}

.ci-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.ci-actions .qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.ci-actions .qty-btn:active {
  background: var(--gold);
  border-color: var(--gold);
  color: #2b160a;
}

.ci-actions .ci-qty {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}

.ci-total {
  text-align: right;
}

.ci-total .item-total {
  font-weight: 600;
  color: #D4AF37;
  font-size: 0.9rem;
  display: block;
}

.ci-total .item-remove {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  padding: 0.2rem;
}

.checkout-form {
  margin-bottom: 1rem;
}

.cf-field {
  margin-bottom: 1rem;
}

.cf-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cf-field input[type="text"],
.cf-field input[type="tel"],
.cf-field input[type="password"],
.cf-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #ffffff;
  transition: border-color 0.25s;
  outline: none;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: #FFC107;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Address Autocomplete (Nominatim) ───────────────────────────────── */
.cf-field-address {
  position: relative;
}

.address-autocomplete-wrap {
  position: relative;
}

.address-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(35, 22, 14, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.address-suggestions.open {
  display: block;
  animation: addrDropIn 0.2s ease;
}

@keyframes addrDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.address-suggestions::-webkit-scrollbar {
  width: 4px;
}
.address-suggestions::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.address-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item:focus {
  background: rgba(255, 193, 7, 0.1);
}

.address-suggestion-item:active {
  background: rgba(255, 193, 7, 0.18);
}

.address-suggestion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 1px;
}

.address-suggestion-text {
  flex: 1;
  min-width: 0;
}

.address-suggestion-main {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #FFF8F0;
  line-height: 1.35;
  margin-bottom: 2px;
}

.address-suggestion-detail {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-suggestions-footer {
  padding: 0.35rem 0.85rem;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.address-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.address-loading-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: addrPulse 1s ease-in-out infinite;
}
.address-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.address-loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes addrPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

.address-no-results {
  padding: 1rem 0.85rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* Glow on address input when suggestions are open */
#cfAddress:focus {
  border-color: rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.08);
}

.cf-payment {
  display: flex;
  gap: 0.6rem;
}

.cf-radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.cf-radio:has(input:checked) {
  border-color: #FFC107;
  background: rgba(255, 193, 7, 0.12);
}

.cf-radio input {
  display: none;
}

.cf-radio-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.cf-radio-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s;
}

.cf-radio:has(input:checked) .cf-radio-label {
  color: #FFC107;
}

/* ─── Radio Cards (método de pago) ───────────────────────────────────── */
.radio-cards {
  display: flex;
  gap: 0.75rem;
}
.radio-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.radio-card:active {
  transform: scale(0.97);
}
.radio-card:has(input:checked) {
  border-color: var(--gold-accent);
  background: rgba(200, 162, 69, 0.12);
  box-shadow: 0 0 20px rgba(200, 162, 69, 0.12);
}
.radio-card input {
  display: none;
}
.radio-card-logo {
  display: block;
  max-width: 100%;
  height: 32px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

/* ─── Info de pago (instrucciones dinámicas) ─────────────────────────── */
.pago-info {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-light);
}
.pago-info p {
  margin: 0.15rem 0;
}
.pago-info strong {
  color: var(--gold-accent);
  font-weight: 600;
}
.pago-info.hidden {
  display: none;
}
.pago-info-qr {
  text-align: center;
  margin-bottom: 0.6rem;
}
.pago-info-qr img {
  border-radius: 12px;
  max-width: 120px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-copiar {
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--gold-accent);
  background: rgba(200, 162, 69, 0.12);
  color: var(--gold-accent);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-copiar:hover {
  background: rgba(255, 193, 7, 0.2);
}

.cart-notes-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-row span:first-child {
  font-size: 0.9rem;
  color: var(--text-light);
}

.cart-total-row .cart-total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #D4AF37;
}

.cart-discount-row {
  margin-bottom: 0.35rem;
}
.cart-discount-row span:first-child {
  font-size: 0.78rem;
}
.cart-dscto-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.1);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.cart-discount-amount {
  font-size: 0.85rem;
  font-weight: 600;
  color: #34D399;
}
#cartTotalAmount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #D4AF37;
}

.cart-notes {
  margin-bottom: 1rem;
}

.cart-notes label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.cart-notes textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  resize: none;
  min-height: 64px;
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s;
}

.cart-notes textarea:focus {
  border-color: var(--gold);
}

.cart-notes textarea::placeholder {
  color: var(--text-muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.empty-state .btn-primary {
  max-width: 200px;
}

/* ─── Bottom Sheet (Checkout Drawer) ──────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.3s;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(40, 25, 18, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  transition: bottom 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.bottom-sheet.open {
  bottom: 0;
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.75rem;
  flex-shrink: 0;
}
.bottom-sheet-header span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.bottom-sheet-header .icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-sheet-body {
  padding: 0 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.bottom-sheet-body .checkout-form {
  margin-bottom: 0;
}
.bottom-sheet-body .cf-field:last-of-type {
  margin-bottom: 0.5rem;
}
.bottom-sheet-body .btn-primary {
  margin-top: 1rem;
}

/* Cart summary below items */
.cart-summary {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-summary .btn-primary {
  width: 100%;
}

#bottomNav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  height: 68px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0 0.25rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s;
  flex: 1;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s ease;
}

.nav-item.active .nav-icon {
  background: var(--gold);
}

.nav-item.active .nav-icon svg {
  color: #FDFBF7;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  color: currentColor;
  transition: color 0.3s ease;
}

.nav-item .nav-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: inherit;
}

.nav-item.active {
  color: #FDFBF7;
}

.nav-item .badge {
  position: absolute;
  top: -5px;
  right: -7px;
  background: var(--gold);
  color: #2b160a;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 2;
}

.nav-item .badge.show {
  transform: scale(1);
}

#toast {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: fit-content;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  line-height: 1.4;
  border: 1px solid var(--glass-border);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#checkoutSuccess {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#checkoutSuccess.open {
  opacity: 1;
  pointer-events: all;
}

#checkoutSuccess .cs-bd {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

#checkoutSuccess .cs-card {
  position: relative;
  background: rgba(43, 22, 10, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 340px;
  width: 90%;
  box-shadow: var(--glass-shadow);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

#checkoutSuccess.open .cs-card {
  transform: scale(1);
}

#checkoutSuccess .cs-card .cs-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

#checkoutSuccess .cs-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

#checkoutSuccess .cs-card > p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cs-post {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.cs-post-divider {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cs-post h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.cs-post-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cs-post-field {
  margin-bottom: 0.75rem;
}

.cs-post-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  transition: border-color 0.2s;
}

.cs-post-field input:focus {
  border-color: var(--gold);
}

.cs-post-field input::placeholder {
  color: var(--text-muted);
}

.cs-post .btn-gold {
  font-size: 0.8rem;
  padding: 0.65rem;
}

.cs-account-result {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.cs-account-ok {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
}

.cs-account-error {
  color: #E74C3C;
  background: rgba(231, 76, 60, 0.1);
}

#profileView {
  padding: 1.25rem var(--margin-x);
}

/* ─── Auth Card (Login / Register) ──────────────────────────────── */
.auth-card {
  background: rgba(30, 20, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
}

.auth-header {
  margin-bottom: 1.25rem;
}

.auth-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: rgba(212, 175, 55, 0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-icon svg {
  width: 24px;
  height: 24px;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFF8F0;
  letter-spacing: -0.025em;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.7);
  font-weight: 400;
}

.auth-body {
  text-align: left;
}

.auth-field {
  position: relative;
  margin-bottom: 0.75rem;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: color 0.2s;
}

.auth-field input {
  width: 100%;
  padding: 0.85rem 0.85rem 0.85rem 2.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  color: #FFF8F0;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.auth-field input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.auth-field input:focus ~ .auth-field-icon,
.auth-field input:focus + .auth-field-icon {
  color: #D4AF37;
}

.auth-btn {
  width: 100%;
  padding: 0.9rem;
  background: #8B1519;
  border: none;
  border-radius: 0.85rem;
  color: #FFF8F0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(139, 21, 25, 0.3);
  margin-top: 0.35rem;
}

.auth-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(139, 21, 25, 0.2);
}

.auth-btn:disabled {
  opacity: 0.5;
  transform: none;
}

.auth-error {
  font-size: 0.78rem;
  color: #E74C3C;
  text-align: center;
  margin-top: 0.65rem;
  padding: 0.45rem 0.7rem;
  background: rgba(231, 76, 60, 0.10);
  border-radius: 0.75rem;
}

.auth-footer {
  margin-top: 1.1rem;
  text-align: center;
}

.auth-footer p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.auth-footer a {
  color: #D4AF37;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.auth-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.pf-guest-card {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.pf-guest-icon,
.pf-guest-title { display: none; }

.pf-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.pf-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1E140F;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
}
.pf-avatar svg {
  width: 28px;
  height: 28px;
}

.pf-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.pf-badge {
  display: inline-block;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pf-badge-vip {
  font-size: 0.65rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  animation: vipPulse 2s ease-in-out infinite;
}

@keyframes vipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15); }
}

/* ─── Hero Card ────────────────────────────────────────────────────── */
.pf-hero {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
  padding: 0;
  margin-bottom: 1.25rem;
}

.pf-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.pf-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pf-hero-id {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.pf-hero-date {
  font-size: 0.72rem;
  color: #D1D5DB;
}

.pf-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.pf-hero-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #D4AF37;
}

.pf-hero-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  text-transform: capitalize;
}

.pf-order-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Action Grid ──────────────────────────────────────────────────── */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pf-grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  transition: background 0.2s;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 500;
}
.pf-grid-btn svg {
  width: 22px;
  height: 22px;
  color: var(--text-light);
  opacity: 0.8;
}
.pf-grid-btn:active {
  background: rgba(255, 255, 255, 0.1);
}
.pf-grid-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ─── Logout ────────────────────────────────────────────────────────── */
.pf-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: #FF8A80;
  transition: background 0.2s;
}
.pf-logout svg {
  width: 18px;
  height: 18px;
}
.pf-logout:active {
  background: rgba(255, 138, 128, 0.08);
}

/* ─── VIP Banner ──────────────────────────────────────────────────── */
.pf-vip-banner {
  margin: 0.75rem 0;
  border-radius: 0.75rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}
#pfMembresiaContent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
}
.pf-vip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.pf-vip-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.pf-vip-text strong {
  font-size: 0.78rem;
  color: #FFF8F0;
  font-weight: 600;
}
.pf-vip-text span {
  font-size: 0.68rem;
  color: var(--text-light);
}
.pf-vip-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  background: #D4AF37;
  border: none;
  border-radius: 999px;
  color: #1a110a;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pf-vip-btn:active {
  opacity: 0.8;
}

.hidden {
  display: none !important;
}

#splashScreen {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #1a110a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splashScreen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  text-align: center;
}

.splash-icon {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.splash-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.install-banner {
  position: fixed;
  bottom: calc(68px + 1.5rem + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--margin-x));
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: rgba(26, 17, 10, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  z-index: 95;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.install-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.3;
}

.install-text strong {
  font-size: 0.85rem;
  color: #ffffff;
}

.install-btn {
  padding: 0.4rem 0.9rem;
  background: var(--gold);
  color: #2b160a;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.install-btn:active {
  transform: scale(0.95);
}

.install-dismiss {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s;
}

.install-dismiss:active {
  background: rgba(255, 255, 255, 0.1);
}

.gradient-panes, .gradient-panaderia {
  background: linear-gradient(135deg, #D4A574, #B8895C);
}

.gradient-pasteles, .gradient-pasteleria {
  background: linear-gradient(135deg, #E8A0B4, #D4859A);
}

.gradient-cafeteria, .gradient-galleteria {
  background: linear-gradient(135deg, #A89080, #8B7565);
}

.gradient-especiales {
  background: linear-gradient(135deg, #C4A96A, #A88B4E);
}

@media (min-width: 768px) {
  #app {
    margin: 1rem auto;
    min-height: calc(100vh - 2rem);
    min-height: calc(100dvh - 2rem);
    border-radius: 2rem;
    overflow: hidden;
    padding-bottom: 0;
  }

  #bottomNav {
    bottom: 1.5rem;
    width: 90%;
    max-width: 420px;
  }
}

#editProfileModal .modal-inner {
  max-width: 400px;
  padding: 2rem 1.5rem;
}

.ep-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ep-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ep-actions .btn-primary,
.ep-actions .btn-gold {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

#editProfileModal .modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--text-light);
}

#historyModal .modal-inner {
  padding: 2rem 1.5rem;
}

#historyModal .modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: var(--text-light);
}

.history-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-id {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
}

.history-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
}

.history-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.history-status {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.history-status--pendiente {
  color: #FFC107;
}

.history-status--preparando {
  color: #64B5F6;
}

.history-status--listo {
  color: #81C784;
}

.history-status--entregado {
  color: #A1887F;
}

/* Push Banner Styles */
#pushBanner {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 17, 10, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.2);
  width: 90%;
  max-width: 400px;
  transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#pushBanner.show {
  top: 20px;
}

.pb-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pb-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pb-content strong {
  font-family: 'Poppins', sans-serif;
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.pb-content span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

.pb-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
}

/* ─── Order Tracker ─────────────────────────────────────── */
.order-tracker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  padding: 0 8px;
  cursor: pointer;
}
.tracker-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.15);
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.step svg {
  width: 18px;
  height: 18px;
  color: rgba(255,248,240,0.4);
  transition: color 0.35s ease;
}
.step.active {
  background: var(--gold, #8B1519);
  border-color: var(--gold, #8B1519);
  box-shadow: 0 0 0 3px rgba(139,21,25,0.25);
}
.step.active svg {
  color: #FFF8F0;
}
.step-line {
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  transition: background 0.35s ease;
}
.step-line.active {
  background: var(--gold, #8B1519);
}

/* ─── Order Details Modal ─────────────────────────────── */
.order-details-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.odm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.odm-card {
  position: relative;
  background: #1e130d;
  border: 1px solid rgba(255,248,240,0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: odmFadeIn 0.25s ease;
}
@keyframes odmFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.odm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.odm-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #FFF8F0;
  margin: 0;
}
.odm-close-btn {
  background: none;
  border: none;
  color: rgba(255,248,240,0.4);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.odm-body { margin-bottom: 1rem; }
.odm-id {
  font-size: 0.85rem;
  color: rgba(255,248,240,0.6);
  margin: 0 0 0.4rem;
}
.odm-status {
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFF8F0;
  margin: 0 0 0.5rem;
}
.odm-products {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}
.odm-products-title {
  color: #D4AF37;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.odm-products-list {
  max-height: 10rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.odm-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.83rem;
}
.odm-item-name {
  color: rgba(255,248,240,0.85);
}
.odm-item-qty {
  color: #D4AF37;
  font-weight: 600;
}
.odm-item-price {
  color: rgba(255,248,240,0.6);
  flex-shrink: 0;
}
.odm-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF8F0;
}
.odm-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.odm-dismiss-btn {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,248,240,0.7);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.odm-dismiss-btn:active { background: rgba(255,255,255,0.14); }
.odm-clear-btn {
  padding: 0.5rem 1rem;
  background: #8B1519;
  border: none;
  border-radius: 8px;
  color: #FFF8F0;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.odm-clear-btn:active { opacity: 0.7; }

/* ─── Guest Order Modal Items ─────────────────────────── */
.gom-header { margin-bottom: 1rem; }
.gom-status-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.gom-meta { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.gom-items { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.8rem; margin-bottom: 1rem; }
.gom-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}
.gom-item-name { flex: 1; }
.gom-item-qty { color: var(--gold-light); font-weight: 600; margin: 0 0.7rem; }
.gom-item-price { color: var(--text-muted); }
.gom-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(212,175,55,0.3);
  color: var(--gold-light);
}
.gom-close-btn {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}
.gom-delivered-banner {
  background: linear-gradient(135deg, #1a3a1a, #2d5a2d);
  border: 1px solid #4caf50;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.gom-delivered-banner strong { display: block; font-size: 1.1rem; color: #81c784; margin-bottom: 0.3rem; }

/* ─── Guest Order Modal ────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1rem;
}
.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-backdrop:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  background: rgba(35, 22, 15, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: gomScaleUp 0.3s ease;
}
@keyframes gomScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.5rem;
  flex-shrink: 0;
}
.modal-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-body {
  padding: 0.5rem 1.25rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.order-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Referido & Share ──────────────────────────────────── */
.pf-referido-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
}
.pf-referido-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #D4AF37;
  font-weight: 600;
  margin-bottom: 10px;
}
.pf-referido-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pf-referido-code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFF8F0;
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  flex: 1;
}
.pf-referido-copy-btn {
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Poppins', sans-serif;
}
.pf-referido-copy-btn:hover { background: rgba(212, 175, 55, 0.25); }
.pf-referido-share-btn {
  display: block;
  width: 100%;
  background: rgba(212, 175, 55, 0.12);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
  text-align: center;
}
.pf-referido-share-btn:hover { background: rgba(212, 175, 55, 0.2); }
.pf-referido-hint {
  font-size: 0.7rem;
  color: rgba(255,248,240,0.5);
  line-height: 1.4;
  margin: 0;
}

/* ─── Bonus / Primera Compra ────────────────────────────── */
.pf-bonus-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
}
.pf-bonus-icon { font-size: 1.2rem; flex-shrink: 0; }
.pf-bonus-text { display: flex; flex-direction: column; }
.pf-bonus-text strong {
  font-size: 0.82rem;
  color: #10b981;
}
.pf-bonus-text span {
  font-size: 0.68rem;
  color: rgba(255,248,240,0.5);
}

.pf-primera-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
}
.pf-primera-icon { font-size: 1.2rem; flex-shrink: 0; }
.pf-primera-text { display: flex; flex-direction: column; }
.pf-primera-text strong {
  font-size: 0.82rem;
  color: #60a5fa;
}
.pf-primera-text span {
  font-size: 0.68rem;
  color: rgba(255,248,240,0.5);
}
