/* === 01. VARIABLES GLOBALES === */
:root {
  --cream:  #f7efe9;
  --cream2: #efe2da;
  --paper:  #fffaf6;
  --ink:    #351515;
  --wine:   #681d2b;
  --wine2:  #811b38;
  --plum:   #38213a;
  --rose:   #b67b82;
  --blush:  #e5c3bd;
  --gold:   #b78c56;
  --black:  #100d0e;
  --muted:  #765b57;
  --line:   rgba(104, 29, 43, .24);
  --shadow: 0 22px 70px rgba(61, 19, 26, .14);
  --green:  #1f8f5f;
}

/* === 02. RESET Y BASE === */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; overflow-x: hidden; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a      { color: inherit; text-decoration: none; }
img    { max-width: 100%; display: block; }

.wrap        { max-width: 1220px; margin: auto; padding: 0 24px; }
.serif, h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.kicker, .eyebrow  { font-size: 11px; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow           { color: #9a5a59; }
.dark .eyebrow     { color: #d1a98d; }

/* === 03. BOTONES === */
.btn {
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  padding: 13px 19px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: .18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover         { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(104, 29, 43, .12); }
.btn:focus-visible,
.iconbtn:focus-visible,
.catbtn:focus-visible,
.payopt:focus-visible,
.cart-fab:focus-visible,
.wa-fab:focus-visible,
.back-to-top:focus-visible,
.mob-link:focus-visible,
.toast-undo:focus-visible,
.navlinks a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}
.btn.wine          { background: var(--wine);  color: #fff;      border-color: var(--wine); }
.btn.black         { background: var(--black); color: white;     border-color: var(--black); }
.btn.gold          { background: var(--gold);  color: #20100d;   border-color: var(--gold); }
.btn.ghost-light   { border-color: #c9ab9d;    color: #f8eee8; }
.btn.full          { width: 100%; }

/* === 04. NAVEGACIÓN === */
nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 239, 233, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav      { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand    { font-family: Georgia, "Times New Roman", serif; font-size: 26px; letter-spacing: .08em; color: var(--wine); }
.navlinks { display: flex; gap: 18px; align-items: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6c4845; }
.navlinks a { transition: color .18s; position: relative; padding: 4px 0; }
.navlinks a.active { color: var(--wine); font-weight: 700; }
.navlinks a.active::after { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--wine); border-radius: 2px; }
.navtools { display: flex; gap: 9px; align-items: center; }
.iconbtn  { border: 1px solid var(--line); background: rgba(255, 255, 255, .36); border-radius: 999px; padding: 10px 14px; color: var(--wine); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .18s, background .18s, box-shadow .18s; font-size: 13px; }
.iconbtn:hover { background: rgba(255, 255, 255, .7); transform: translateY(-1px); }
.badge    { position: absolute; right: -5px; top: -6px; background: var(--wine); color: white; font: bold 10px Arial; border-radius: 20px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; transition: transform .2s ease; }
.badge.badge-bump { animation: badgeBounce .4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes badgeBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.45); background: var(--gold); color: #20100d; }
  100% { transform: scale(1); }
}

.menu-toggle { display: none; font-size: 16px; width: 40px; height: 40px; }
.mobile-menu {
  display: none;
  background: rgba(247, 239, 233, .98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(61, 19, 26, .12);
}
.mobile-menu.open { display: block; animation: slideDown .2s ease-out; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 12px 0 16px;
  gap: 4px;
}
.mob-link {
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 700;
  border-radius: 12px;
  transition: background .15s;
}
.mob-link:hover, .mob-link:active { background: rgba(104, 29, 43, .08); }
.mob-link.active { background: rgba(104, 29, 43, .12); color: var(--wine); font-weight: 800; }

/* === 05. PROMO BANNER === */
.promo { background: var(--wine); color: #fff5ef; padding: 13px 0; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* === 06. HERO === */
.hero { padding: 70px 0 88px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(104, 29, 43, .18); border-radius: 28px; pointer-events: none; }
.hero-grid    { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero h1      { font-size: clamp(67px, 9vw, 118px); line-height: .82; letter-spacing: -.045em; color: var(--wine); margin: 14px 0 0; }
.hero .tag    { margin-top: 25px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #743a3b; }
.hero p       { font-size: 18px; color: #674a46; max-width: 640px; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.hero-photo   { padding: 9px; border: 1px solid #bd8b80; border-radius: 48% 48% 24px 24px / 20% 20% 24px 24px; background: #f9f0e9; box-shadow: var(--shadow); position: relative; }
.hero-photo img   { height: 535px; width: 100%; object-fit: cover; border-radius: 48% 48% 18px 18px / 20% 20% 18px 18px; }
.hero-photo::after { content: "☾  ✦  ✧  ✦  ☽"; position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); letter-spacing: 10px; color: var(--wine); white-space: nowrap; }

/* === 07. SECCIONES GENERALES === */
section       { padding: 82px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: end; margin-bottom: 34px; }
h2            { font-size: clamp(44px, 6vw, 76px); line-height: .97; color: var(--wine); margin: 5px 0 0; }
.section-copy { color: #745751; max-width: 540px; justify-self: end; }

.dark           { background: var(--black); color: #f5e9e1; border-color: rgba(255, 255, 255, .08); }
.dark h2,
.dark h3        { color: #f6e7df; }
.dark .section-copy { color: #c8b6ae; }

/* === 08. CATÁLOGO: LAYOUT Y SIDEBAR (PC) === */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 94px;
  background: rgba(255, 250, 246, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 14px;
  box-shadow: 0 10px 30px rgba(104, 29, 43, 0.05);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(104, 29, 43, 0.12);
}

.sidebar-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: var(--wine);
  font-weight: 700;
}

.sidebar-count {
  font-size: 11px;
  background: #eedbd6;
  color: var(--wine);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.categorybar {
  margin: 0;
}

.category-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 29, 43, 0.2) transparent;
}

.category-pills::-webkit-scrollbar {
  width: 4px;
}
.category-pills::-webkit-scrollbar-thumb {
  background: rgba(104, 29, 43, 0.2);
  border-radius: 4px;
}

.catbtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #694442;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.catbtn:hover {
  background: rgba(104, 29, 43, 0.06);
  color: var(--wine);
  transform: translateX(2px);
}

.catbtn.active {
  background: var(--wine);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--wine);
  box-shadow: 0 4px 14px rgba(104, 29, 43, 0.18);
}

.catbtn .cat-count {
  font-size: 10px;
  opacity: 0.75;
  margin-left: 6px;
  background: rgba(104, 29, 43, 0.08);
  padding: 1px 6px;
  border-radius: 999px;
}

.catbtn.active .cat-count {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.category-select-wrap {
  display: none;
  position: relative;
  width: 100%;
}
.category-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fffaf6;
  border: 1px solid #d6b9b2;
  border-radius: 16px;
  padding: 13px 40px 13px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wine);
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 14px rgba(104, 29, 43, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.category-select:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(104, 29, 43, 0.12);
}
.category-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wine);
  font-size: 18px;
  pointer-events: none;
}

.catalog-main {
  min-width: 0;
}

.searchbar       { display: flex; gap: 10px; margin-bottom: 18px; }
.searchbar input { flex: 1; border: 1px solid #d6b9b2; background: #fffaf6; border-radius: 16px; padding: 13px 15px; outline: none; }

/* === 09. CATÁLOGO: GRILLA Y TARJETAS === */
.catalog-grid-wrap { position: relative; width: 100%; }
.swipe-hint { display: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .34);
  border-radius: 18px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.card:hover    { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(61, 19, 26, .11); }
.card.card-added { animation: cardPulse .45s cubic-bezier(0.165, 0.84, 0.44, 1); }
@keyframes cardPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.03); box-shadow: 0 0 0 3px rgba(104, 29, 43, 0.35), 0 14px 40px rgba(61, 19, 26, 0.2); }
  100% { transform: scale(1); }
}
.btn.btn-bump { animation: btnPulse .3s ease; }
@keyframes btnPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}
.card::before  { content: "✦"; position: absolute; right: 13px; top: 11px; color: #b78476; font-size: 11px; }
.card h3       { font-size: 19px; color: var(--wine); margin: 3px 18px 7px 0; line-height: 1.1; }
.card .cat     { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #9a6963; margin-bottom: 5px; }
.card .btn     { width: 100%; font-size: 10px; padding: 10px 12px; }

/* Combos (fondo bordó) */.card.combo-card {
  background: var(--wine);
  border-color: var(--wine);
  color: #fdf5f5;
  padding-top: 35px; }
.card.combo-card::before {
  content: "COMBO";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .2em;
  text-align: center;
  padding: 6px 0;
}
.card.combo-card h3 { color: #fff; }
.card.combo-card .cat { color: #d8b8bc; }
.card.combo-card .card-desc {
  color: #fdf5f5;
  display: block; 
  -webkit-line-clamp: unset; 
}
.card.combo-card .readmore-btn { display: none; }
.card.combo-card .pricepill {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.card.combo-card .btn {
  background: #fdf5f5;
  color: var(--wine);
  border-color: #fdf5f5;
}
.card.combo-card .btn.black {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

/* Descripción expandible */.card-desc {
  font-size: 12px;
  color: #765b57;
  line-height: 1.5;
  margin: 0 0 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-desc.open    { display: block; -webkit-line-clamp: unset; }
.readmore-btn      { border: 0; background: none; color: var(--wine); font-size: 11px; padding: 3px 0 9px; text-align: left; opacity: .7; letter-spacing: .03em; }
.readmore-btn:hover { opacity: 1; }

.prices    { display: flex; gap: 5px; flex-wrap: wrap; margin: auto 0 10px; }
.pricepill { padding: 4px 8px; border: 1px solid #dec5bd; border-radius: 999px; font-size: 10px; background: #fffaf7; }

/* === 10. PASOS DE COMPRA (DARK) === */
.darkcards  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.darkcard   { border: 1px solid rgba(183, 140, 86, .25); background: linear-gradient(180deg, #1d1518, #120e10); padding: 22px; border-radius: 20px; }
.darkcard h3 { font-size: 26px; }
.darkcard p  { color: #c6b5ae; font-size: 13px; }

/* === 11. BOTONES FLOTANTES (FABS & TOP) === */
.cart-fab        { position: fixed; right: 22px; bottom: 84px; z-index: 91; background: var(--wine); color: white; border: 0; border-radius: 999px; padding: 14px 18px; box-shadow: 0 8px 24px rgba(70, 20, 28, .28); font-weight: 700; transition: transform 0.2s; }
.cart-fab:hover  { transform: scale(1.05); }
.cart-fab .badge { background: var(--gold); color: #22120f; }
.wa-fab          { position: fixed; right: 22px; bottom: 24px; z-index: 92; background: #1f9f63; color: white; border-radius: 999px; padding: 14px 18px; box-shadow: 0 8px 24px rgba(23, 111, 74, .24); font-weight: 700; display: flex; align-items: center; gap: 9px; transition: transform 0.2s; }
.wa-fab:hover    { transform: scale(1.05); }

.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fffaf6;
  border: 1px solid var(--line);
  color: var(--wine);
  box-shadow: 0 4px 18px rgba(61, 19, 26, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s, color .2s;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
  transform: translateY(-2px);
}

/* === 12. CARRITO LATERAL (DRAWER) === */
.drawer         { position: fixed; inset: 0; z-index: 110; background: rgba(13, 9, 10, .62); display: none; }
.drawer.show    { display: block; }
.drawer-panel   { position: absolute; right: 0; top: 0; bottom: 0; width: min(480px, 100%); background: #fff8f3; padding: 26px; overflow: auto; box-shadow: -25px 0 70px rgba(0, 0, 0, .22); }
.drawer-head    { display: flex; justify-content: space-between; align-items: center; }
.drawer h3      { font-size: 38px; color: var(--wine); margin: 0; }
.close          { border: 0; background: none; font-size: 28px; color: var(--wine); }

.cartline        { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 13px 0; }
.cartline strong { font-family: Georgia, serif; font-weight: 400; }
.remove          { border: 0; background: none; color: #a66a66; font-size: 18px; }

.currency        { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
.currency button { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 8px 10px; font-size: 11px; }
.currency button.active { background: var(--wine); color: white; border-color: var(--wine); }

.sumrow          { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; color: #775854; }
.sumrow.discount { color: #8b2741; }
.sumrow.total    { font-size: 23px; color: var(--wine); padding-top: 13px; border-top: 1px solid var(--line); margin-top: 8px; }
.promo-note      { font-size: 12px; background: #f2dfdf; border: 1px solid #ddbbbb; padding: 10px; border-radius: 13px; margin: 12px 0; }

/* === 13. CHECKOUT & PAGO === */
.checkout { display: grid; grid-template-columns: 1fr .9fr; gap: 20px; }
.panel    { border: 1px solid var(--line); border-radius: 25px; background: #fff9f5; padding: 25px; }
.panel h3 { font-size: 34px; color: var(--wine); margin: 0 0 15px; }

.formgrid   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field      { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label   { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7d5752; }
.field input,
.field select,
.field textarea { border: 1px solid #d7bdb5; border-radius: 13px; background: #fffdfa; padding: 12px; color: #3a1817; outline: none; transition: border-color .18s, box-shadow .18s; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.searchbar input:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(104, 29, 43, 0.16);
}
.field textarea { min-height: 90px; resize: vertical; }

/* Validación de formulario */.field.has-error input,
.field.has-error textarea,
.input-error {
  border-color: #b82c3c !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(184, 44, 60, .14) !important;
}
.field-error {
  font-size: 11px;
  color: #b82c3c;
  font-weight: 700;
  margin-top: 2px;
}
label.has-error {
  color: #b82c3c !important;
}
label.has-error input[type="checkbox"] {
  outline: 2px solid #b82c3c;
  outline-offset: 2px;
}

/* Estados vacío / éxito */
.checkout-empty   { display: none; width: 100%; }
.checkout-empty-panel { text-align: center; padding: 48px 24px; max-width: 540px; margin: 0 auto; }
.checkout-empty-icon  { font-size: 42px; margin-bottom: 14px; }
.checkout-empty-title { font-size: 26px; margin-bottom: 10px; }
.checkout-empty-text  { color: #745751; max-width: 420px; margin: 0 auto 24px; font-size: 14px; line-height: 1.6; }

.checkout-success { display: none; width: 100%; max-width: 780px; margin: 0 auto; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.success-card     { text-align: center; padding: 40px 30px; position: relative; }
.success-badge    { display: inline-block; background: var(--wine); color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; font-weight: 700; }
.success-title    { font-size: 32px; margin: 12px 0 6px; }
.success-subtitle { color: #745751; margin: 0 auto 20px; font-size: 15px; max-width: 520px; }
.success-steps    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; text-align: left; }
.step-box         { border: 1px solid var(--line); background: #fffaf7; border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.step-num         { background: var(--wine); color: white; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: bold; font-size: 13px; flex-shrink: 0; }
.step-box strong  { color: var(--wine); font-size: 14px; display: block; margin-bottom: 4px; }
.step-box p       { margin: 0; font-size: 12px; color: #745751; line-height: 1.45; }

.order-summary-box {
  background: #fbf1ec;
  border: 1px dashed #d6b8b0;
  border-radius: 18px;
  padding: 22px;
  margin: 24px 0;
  text-align: left;
}
.order-summary-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(104, 29, 43, 0.15); padding-bottom: 10px; margin-bottom: 12px; }
.order-summary-header b { font-family: Georgia, serif; font-size: 18px; color: var(--wine); }
.order-summary-date { font-size: 12px; color: #745751; margin-left: 6px; }
.order-summary-tag { background: #e8d0cb; color: var(--wine); font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.order-client-info { font-size: 12px; color: #745751; margin-bottom: 14px; line-height: 1.6; background: rgba(255,255,255,0.4); padding: 10px 14px; border-radius: 12px; }
.order-summary-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.order-summary-line { display: flex; justify-content: space-between; font-size: 13px; color: #583c39; }
.order-summary-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; color: var(--wine); border-top: 1px solid rgba(104, 29, 43, 0.15); padding-top: 10px; margin-top: 6px; }

#summaryIgRow,
#summaryMailRow,
#summaryNotesRow { display: none; }

.terms-label { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: #72534e; cursor: pointer; }
.terms-label a { text-decoration: underline; color: var(--wine); font-weight: 700; }
#submitProof { margin-top: 15px; }
.checkout-totals { margin-top: 10px; }
#checkoutDiscountRow,
#cartDiscountRow { display: none; }
#openCartFromCheckout { margin-top: 12px; }
#clearCart { margin-top: 8px; }

.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

.paymethods      { display: grid; gap: 9px; }
.payopt          { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 14px; text-align: left; }
.payopt.active   { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(104, 29, 43, .08); }
.payopt b        { display: block; color: var(--wine); }
.payopt small    { color: #846660; }

.payment-info { margin-top: 14px; padding: 15px; border-radius: 16px; background: #f2e3dd; color: #66433f; font-size: 13px; }
.copyrow      { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.copymini     { border: 0; background: none; color: var(--wine); font-weight: 700; }

.currency-indicator {
  font-size: 11px;
  letter-spacing: .02em;
  color: #794d46;
  background: #f6e9e4;
  border-left: 3px solid var(--wine);
  padding: 8px 12px;
  border-radius: 0 12px 12px 0;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.currency-indicator b { color: var(--wine); }

/* === 14. CÍRCULO PILAR (FIDELIDAD) === */
.loyalty-grid         { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.loyalty-main         { background: var(--plum); color: #fff4ed; border-radius: 28px; padding: 34px; position: relative; overflow: hidden; }
.loyalty-main::after  { content: "☾"; position: absolute; right: 20px; top: -22px; font: 160px Georgia; color: rgba(255, 255, 255, .06); }
.loyalty-main .eyebrow { color: #dcbf9c; }
.loyalty-main h3      { font-size: 46px; margin: 0; }
.loyalty-main p       { color: #e6d5da; }
.loyalty-main .accountbox { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); }
.loyalty-main .accountbox p { color: #eadbdc; }
.levelchips           { display: flex; gap: 8px; flex-wrap: wrap; }
.levelchips span      { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 10px; font-size: 11px; }

.rewards      { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reward       { border: 1px solid var(--line); background: #fffaf6; border-radius: 16px; padding: 14px; }
.reward b     { color: var(--wine); font-family: Georgia, serif; font-size: 22px; }
.reward span  { display: block; color: #72544e; font-size: 12px; }
.accountbox   { border: 1px solid var(--line); background: #fffaf6; border-radius: 22px; padding: 20px; margin-top: 12px; }
.accountbox p { font-size: 13px; color: #755752; }
.accountbox-title { color: var(--wine); font-weight: 700; display: block; margin-bottom: 6px; }

/* === 15. POLÍTICAS & CONDICIONES === */
.agenda-desc  { color: #755953; }
.policygrid   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.policy       { padding: 18px 22px; border-top: 1px solid var(--line); border-radius: 12px; transition: background 0.2s; }
.policy:hover { background: rgba(255, 255, 255, 0.4); }
.policy summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; font-family: Georgia, serif; font-size: 20px; color: var(--wine); margin: 0; outline: none; }
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: "+"; font-size: 24px; font-weight: normal; line-height: 1; transition: transform 0.2s; }
.policy[open] summary::after { transform: rotate(45deg); }
.policy[open] summary { margin-bottom: 12px; }
.policy p     { margin: 0; color: #755853; font-size: 13px; line-height: 1.6; }
.policy h3    { font-size: 23px; color: var(--wine); margin: 0 0 7px; }

/* === 16. CONTACTO === */
.contactsec    { background: var(--black); color: #f6e8e0; }
.contactgrid   { display: grid; grid-template-columns: 1fr .8fr; gap: 30px; align-items: center; }
.contactsec h2 { color: #f4dfd4; }
.contactsec p  { color: #c7b4ad; }
.contactphoto  { border-radius: 28px; overflow: hidden; border: 1px solid rgba(183, 140, 86, .35); }
.contactphoto img { width: 100%; height: 420px; object-fit: cover; }
.contact-phone-note { font-size: 12px; margin-top: 18px; }

.socials   { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.socials a { border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 10px 13px; font-size: 12px; }

/* === 17. FOOTER === */
footer  { padding: 28px 0; color: #7d605b; font-size: 11px; }
.footer { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* === 18. AVISOS & NOTAS === */
.notice { padding: 12px; border-radius: 14px; background: #f0e0da; color: #6d4944; font-size: 12px; margin: 12px 0; }
.catalog-empty { grid-column: 1 / -1; }
.cart-empty-notice { text-align: center; padding: 24px 12px; }

/* === 19. NOTIFICACIONES TOAST === */
.toast      { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%) translateY(20px); background: #211517; color: #fff; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; z-index: 200; transition: .2s; font-size: 13px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); white-space: nowrap; }
.toast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.toast-undo { background: var(--gold); color: #20100d; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: transform .15s, background .15s; }
.toast-undo:hover { transform: scale(1.05); background: #cba068; }

/* === 20. RESPONSIVE: DESKTOP MEDIANO === */
@media (max-width: 1200px) {
  .catalog-layout { grid-template-columns: 240px 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* === 21. RESPONSIVE: TABLET (<= 960px) === */
@media (max-width: 960px) {
  .navlinks     { display: none; }
  .menu-toggle  { display: inline-flex; }
  .hero-grid, .section-head, .checkout, .loyalty-grid, .contactgrid { grid-template-columns: 1fr; }
  .section-copy { justify-self: start; }
  .catalog-layout { display: block; }
  .catalog-sidebar {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-bottom: 18px;
  }
  .sidebar-header { display: none; }
  .category-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
    overflow-y: visible;
  }
  .catbtn {
    width: auto;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 8px 12px;
  }
  .grid         { grid-template-columns: repeat(2, 1fr); }
  .darkcards    { grid-template-columns: repeat(2, 1fr); }
}

/* === 22. RESPONSIVE: MÓVIL (<= 620px) === */
@media (max-width: 620px) {
  .wrap                { padding: 0 16px; }
  .hero                { padding-top: 40px; }
  .hero h1             { font-size: 54px; }
  .hero p              { font-size: 16px; }
  .hero-photo img      { height: 320px; }
  section              { padding: 45px 0; }
  .section-head        { gap: 12px; margin-bottom: 24px; }
  h2                   { font-size: 38px; }
  
  .category-pills { display: none; }
  .category-select-wrap { display: block; }

  .catalog-grid-wrap { overflow-x: clip; }
  .catalog-grid-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: -16px;
    bottom: 20px;
    width: 38px;
    background: linear-gradient(to right, rgba(247, 239, 233, 0), rgba(247, 239, 233, 0.95));
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.3s;
  }
  .swipe-hint {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9a6963;
    font-weight: 600;
    margin-top: -6px;
    margin-bottom: 12px;
    padding-right: 4px;
    transition: opacity .3s ease;
  }

  .grid { 
    display: flex; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    gap: 15px; 
    padding-bottom: 20px; 
    margin-right: -16px; padding-right: 16px;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
  }
  .grid::-webkit-scrollbar { display: none; }
  .grid .card { 
    flex: 0 0 auto;
    width: 78vw;       max-width: 280px;  scroll-snap-align: start; padding: 14px;
    box-sizing: border-box;
  }
  
  .grid .card h3 { font-size: 16px; margin-bottom: 2px; line-height: 1.1; }
  .grid .card .cat { font-size: 9px; margin-bottom: 4px; }
  .grid .card-desc { font-size: 11px; margin-bottom: 4px; -webkit-line-clamp: 2; }
  .grid .readmore-btn { font-size: 10px; padding: 2px 0 6px; }
  .grid .prices { margin: auto 0 8px; gap: 4px; }
  .grid .pricepill { font-size: 10px; padding: 4px 6px; white-space: nowrap; }
  .grid .card .btn { padding: 9px; font-size: 9px; white-space: normal; } .card.combo-card { padding-top: 28px; } .card.combo-card::before { font-size: 9px; padding: 4px 0; }
  .card.combo-card .card-desc { display: -webkit-box; -webkit-line-clamp: 2; }
  .card.combo-card .card-desc.open { display: block; -webkit-line-clamp: unset; }
  .card.combo-card .readmore-btn { display: inline-block; color: #fdf5f5; opacity: 0.8; }
  .card.combo-card .readmore-btn:hover { opacity: 1; }

  .darkcards, .rewards, .policygrid, .formgrid, .success-steps { grid-template-columns: 1fr; }
  .success-actions .btn { width: 100%; }
  .field.full          { grid-column: auto; }
  .cart-fab, .wa-fab   { right: 14px; }
  .cart-fab            { bottom: 84px; }
  .wa-fab              { font-size: 13px; bottom: 20px; }
  .account-label       { display: none; }
}

