:root {
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --gray-700: #3d3d3d;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-200: #e8e8e8;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Topbar */
.topbar {
  background: var(--black); color: var(--white);
  font-size: 12px; letter-spacing: .06em; text-align: center;
  padding: 8px 16px;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 400; letter-spacing: .08em; font-size: 18px; }
.logo b { font-weight: 800; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--black); color: var(--white); border-radius: 10px;
  font-weight: 700; font-size: 22px; line-height: 1;
}
.search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--gray-100); border: 1px solid transparent;
  border-radius: 999px; padding: 0 18px; height: 44px; transition: .2s;
}
.search:focus-within { background: var(--white); border-color: var(--black); }
.search svg { color: var(--gray-500); flex-shrink: 0; }
.search input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--gray-200); transition: .2s;
}
.cart-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--black); color: var(--white); border: 2px solid var(--white);
  border-radius: 999px; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* Hero */
.hero { border-bottom: 1px solid var(--gray-200); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; padding: 88px 0 72px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.outline { color: var(--white); -webkit-text-stroke: 3px var(--black); paint-order: stroke fill; }
.hero-text { max-width: 520px; color: var(--gray-700); font-size: 17px; margin: 24px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--black); border-radius: var(--radius); overflow: hidden; }
.hero-stats div { padding: 24px 16px; text-align: center; }
.hero-stats div + div { border-left: 1px solid var(--black); }
.hero-stats strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hero-stats strong { height: 44px; display: flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; }
.stat-icon svg { width: 34px; height: 34px; stroke-width: 2; }
.delivery { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-700); }
.delivery svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-stats span { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .1em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--black); transition: .2s;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--white); color: var(--black); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--black); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .35; pointer-events: none; }

/* Catalog */
.catalog { padding: 72px 0; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.catalog-head h2 { font-size: 36px; letter-spacing: -.03em; font-weight: 800; }
select {
  font: inherit; font-size: 14px; height: 42px; padding: 0 36px 0 16px; border-radius: 999px;
  border: 1px solid var(--gray-300); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; cursor: pointer; color: var(--ink);
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 32px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; height: 38px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--gray-300); font-size: 14px; font-weight: 500; transition: .2s;
}
.chip:hover { border-color: var(--black); }
.chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card {
  border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; background: var(--white); transition: .25s; cursor: pointer;
}
.card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--gray-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--black); }
.tag.dark { background: var(--black); color: var(--white); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); }
.card-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.card-active { font-size: 13px; color: var(--gray-500); }
.card-use { font-size: 13px; color: var(--gray-700); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.card-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.card-price s { font-size: 13px; font-weight: 400; color: var(--gray-500); margin-left: 6px; }
.add-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: var(--white);
  display: grid; place-items: center; font-size: 22px; transition: .2s; border: 1.5px solid var(--black);
}
.add-btn:hover { background: var(--white); color: var(--black); }

.empty { text-align: center; padding: 80px 16px; border: 1.5px dashed var(--gray-300); border-radius: var(--radius); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 36px; font-weight: 700; }
.empty h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.empty p { color: var(--gray-500); }

/* Info */
.info { background: var(--black); color: var(--white); padding: 80px 0; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2a2a2a; border: 1px solid #2a2a2a; border-radius: var(--radius); overflow: hidden; }
.info-item { background: var(--black); padding: 32px 28px; }
.info-item .num { display: inline-block; font-size: 13px; font-weight: 700; border: 1px solid #555; border-radius: 999px; padding: 4px 12px; margin-bottom: 20px; }
.info-item h4 { font-size: 18px; margin-bottom: 8px; }
.info-item p { color: #a3a3a3; font-size: 14px; }

/* Footer */
.footer { background: var(--black); color: var(--white); border-top: 1px solid #2a2a2a; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; padding: 56px 0; }
.footer-text { max-width: 440px; color: #a3a3a3; font-size: 13px; margin-top: 16px; }
.logo-light .logo-mark { background: var(--white); color: var(--black); }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #737373; margin-bottom: 14px; }
.footer-cols a { display: block; font-size: 14px; margin-bottom: 8px; color: #d4d4d4; }
.footer-cols a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 20px 0; font-size: 12px; color: #737373; }

/* Modal */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 16px; animation: fade .2s;
}
.overlay[hidden] { display: none; }
.modal {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--white); border-radius: 20px; display: grid; grid-template-columns: 1fr 1.1fr;
  animation: pop .25s ease;
}
.modal-media { background: var(--gray-100); display: grid; place-items: center; padding: 32px; min-height: 360px; }
.modal-media img { max-height: 420px; object-fit: contain; }
.modal-body { padding: 40px 36px; }
.modal-body h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.active { color: var(--gray-500); margin-top: 6px; }
.price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.old { color: var(--gray-500); text-decoration: line-through; }
.badge { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--black); color: var(--white); }
.desc { color: var(--gray-700); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gray-200); margin: 24px 0 16px; overflow-x: auto; }
.tab { padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--black); border-color: var(--black); }
.tab-panel { min-height: 96px; font-size: 14px; color: var(--gray-700); }
.tab-panel ul { list-style: none; display: grid; gap: 8px; }
.tab-panel li { position: relative; padding-left: 20px; }
.tab-panel li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--black); }
.tab-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.tab-panel dt { color: var(--gray-500); }
.tab-panel dd { color: var(--ink); font-weight: 500; }
.buy-row { display: flex; gap: 12px; margin-top: 28px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--black); border-radius: 999px; height: 50px; }
.qty button { width: 44px; height: 100%; font-size: 20px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200); font-size: 24px; line-height: 1; z-index: 2;
}
.close:hover { background: var(--black); color: var(--white); }

/* Drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; animation: fade .2s; }
.drawer-overlay[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 95;
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 24px; border-bottom: 1px solid var(--gray-200); }
.drawer-head h3 { font-size: 20px; }
.drawer-head .close { top: 18px; right: 18px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-empty { text-align: center; color: var(--gray-500); padding: 64px 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.line img { width: 64px; height: 64px; object-fit: contain; background: var(--gray-100); border-radius: 10px; padding: 6px; }
.line h4 { font-size: 14px; line-height: 1.3; }
.line small { color: var(--gray-500); }
.line .mini-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.line .mini-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gray-300); }
.line .mini-qty button:hover { border-color: var(--black); }
.line .remove { font-size: 12px; color: var(--gray-500); text-decoration: underline; margin-top: 4px; }
.line strong { font-size: 15px; }
.drawer-foot { padding: 24px; border-top: 1px solid var(--gray-200); display: grid; gap: 14px; }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 16px; }
/* Venta al detalle */
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mode button {
  display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--gray-200); background: var(--white); transition: .15s;
}
.mode button:hover { border-color: var(--black); }
.mode button.active { border-color: var(--black); background: var(--black); color: var(--white); }
.mode b { font-size: 14px; font-weight: 700; }
.mode small { font-size: 12px; opacity: .7; }
.price-row .unit { font-size: 14px; color: var(--gray-500); }
.card-det { display: block; font-size: 12px; font-weight: 500; color: var(--gray-500); margin-top: 2px; }
.unit-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--black); margin-right: 4px; }
.unit-tag.det { background: var(--black); color: var(--white); }

/* Botón flotante de representante */
.rep-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  background: var(--black); color: var(--white); border: 1.5px solid var(--black);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: .2s;
}
.rep-btn:hover { background: var(--white); color: var(--black); }
.rep-btn svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rep-btn span { display: grid; line-height: 1.25; }
.rep-btn b { font-size: 14px; font-weight: 600; }
.rep-btn small { font-size: 11px; opacity: .7; }
@media (max-width: 600px) {
  .rep-btn { right: 14px; bottom: 14px; padding: 10px 16px 10px 12px; gap: 10px; }
  .rep-btn svg { width: 26px; height: 26px; }
  .rep-btn b { font-size: 13px; }
}
.free-ship { display: grid; gap: 8px; }
.free-ship p { font-size: 13px; color: var(--gray-700); }
.free-ship p b { color: var(--black); }
.free-bar { height: 6px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.free-bar span { display: block; height: 100%; width: 0; background: var(--black); border-radius: 999px; transition: width .3s; }
.co-free { font-size: 12px; color: var(--gray-500); margin-top: -4px; }
.note { font-size: 13px; background: var(--gray-100); padding: 10px 14px; border-radius: 10px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 200;
  background: var(--black); color: var(--white); padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; transition: transform .3s ease; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* Checkout */
.modal.checkout { display: block; width: min(640px, 100%); padding: 36px 32px 28px; }
.checkout h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.co-sub { color: var(--gray-500); font-size: 14px; margin: 8px 0 18px; }
.co-search { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--gray-300); border-radius: 12px; margin-bottom: 12px; }
.co-search:focus-within { border-color: var(--black); }
.co-search svg { color: var(--gray-500); flex-shrink: 0; }
.co-search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 14px; min-width: 0; background: none; color: var(--ink); }
.co-results { position: absolute; top: 48px; left: 0; right: 0; z-index: 1000; background: var(--white); border: 1px solid var(--black); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.co-results button { display: block; width: 100%; text-align: left; padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--gray-200); }
.co-results button:last-child { border-bottom: 0; }
.co-results button:hover { background: var(--gray-100); }
.map-wrap { position: relative; border: 1px solid var(--black); border-radius: 14px; overflow: hidden; }
#map { height: 320px; background: var(--gray-100); }
#map .leaflet-tile-pane { filter: grayscale(1) contrast(1.05); }
.locate-btn {
  position: absolute; left: 12px; bottom: 12px; z-index: 500; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; background: var(--black); color: var(--white);
  font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: .2s;
}
.locate-btn:hover { background: var(--ink); transform: translateY(-1px); }
.locate-btn svg { width: 18px; height: 18px; }
.map-status { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; background: var(--white); border: 1px solid var(--black); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pin { width: 34px; height: 34px; }
.pin span { position: relative; display: block; width: 34px; height: 34px; background: var(--black); border: 3px solid var(--white); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.pin span::after { content: ""; position: absolute; top: 9px; left: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.addr-box { display: flex; gap: 12px; align-items: flex-start; background: var(--gray-100); border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; }
.addr-box svg { flex-shrink: 0; margin-top: 2px; }
.addr-box strong { display: block; font-size: 13px; }
.addr-box span { font-size: 13px; color: var(--gray-700); }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-fields label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--gray-700); }
.co-fields .full { grid-column: 1 / -1; }
.co-fields input { height: 46px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: 12px; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink); outline: none; }
.co-fields input:focus { border-color: var(--black); }
.co-summary { display: grid; gap: 8px; border-top: 1px solid var(--gray-200); margin: 20px 0 16px; padding-top: 16px; font-size: 14px; }
.co-summary .row { display: flex; justify-content: space-between; color: var(--gray-700); }
.co-summary .total { color: var(--ink); font-size: 18px; padding-top: 4px; }
.co-summary small { font-size: 12px; color: var(--gray-500); }
.co-hint { text-align: center; font-size: 12px; color: var(--gray-500); margin-top: 10px; }
.co-done { text-align: center; padding: 16px 0 4px; }
.co-done .empty-icon { font-size: 30px; }
.co-receipt { text-align: left; background: var(--gray-100); border-radius: 12px; padding: 16px; margin: 4px 0 20px; font-size: 13px; display: grid; gap: 6px; }
.co-receipt a { text-decoration: underline; font-weight: 600; }
.btn-wa svg { width: 20px; height: 20px; }
.co-back { margin-top: 10px; }

@media (max-width: 600px) {
  .modal.checkout { padding: 28px 18px 22px; }
  .co-fields { grid-template-columns: 1fr; }
  #map { height: 280px; }
}

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-media { min-height: 240px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .logo { margin-right: auto; }
  .info-grid { grid-template-columns: 1fr; }
  .catalog-head h2 { font-size: 28px; }
  .modal-body { padding: 28px 20px; }
  .buy-row { flex-direction: column; }
  .qty { justify-content: space-between; }
  .footer-cols { gap: 40px; }
}

/* ---------- Celular: catálogo de 2 en 2 ---------- */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 12px; }
  .card:hover { transform: none; box-shadow: none; }
  .card-tags { top: 8px; left: 8px; }
  .tag { font-size: 9px; padding: 3px 7px; }
  .card-body { padding: 10px 10px 12px; gap: 3px; }
  .card-cat { font-size: 9px; letter-spacing: .1em; }
  .card-name { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-active, .card-use { display: none; }
  .card-foot { padding-top: 8px; gap: 6px; align-items: flex-end; }
  .card-price { font-size: 16px; line-height: 1.2; }
  .card-price s { display: block; margin-left: 0; font-size: 11px; }
  .card-det { font-size: 11px; }
  .add-btn { width: 34px; height: 34px; font-size: 19px; flex-shrink: 0; }
}

/* ---------- Ficha y checkout: se ajustan a cualquier pantalla ---------- */
.modal > * { min-width: 0; }
.mode button { min-width: 0; }
.mode small { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .modal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .overlay { padding: 0; place-items: end center; }
  .modal {
    width: 100%; max-height: 92vh; max-height: 92dvh;
    border-radius: 20px 20px 0 0; animation: sheet .25s ease;
  }
  .modal-media { min-height: 0; padding: 20px 16px; }
  .modal-media img { max-height: 190px; width: auto; }
  .modal-body { padding: 20px 16px 24px; }
  .modal-body h3 { font-size: 22px; padding-right: 8px; }
  .price { font-size: 24px; }
  .price-row { margin: 14px 0; }
  .mode { gap: 8px; margin-top: 14px; }
  .mode button { padding: 10px 11px; border-radius: 12px; }
  .mode b { font-size: 13px; }
  .mode small { font-size: 11px; }
  .desc { font-size: 14px; }
  .tabs { margin: 18px 0 12px; }
  .tab { padding: 10px 9px; font-size: 13px; }
  .buy-row { margin-top: 20px; }
  .close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 22px; }
  .modal.checkout { max-height: 94vh; max-height: 94dvh; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
