:root {
  --green-950: #052e16;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #08762d;
  --green-600: #159447;
  --green-100: #dcfce7;
  --yellow-500: #f2c500;
  --yellow-400: #facc15;
  --yellow-100: #fef3c7;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7faf8;
  --card: #ffffff;
  --danger: #b91c1c;
  --shadow: 0 20px 70px rgba(15, 23, 42, .10);
  --radius: 24px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-strip { background: var(--green-950); color: #fff; font-size: 14px; }
.top-strip__inner { min-height: 38px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-grid { min-height: 84px; display: grid; grid-template-columns: 230px 1fr auto; gap: 24px; align-items: center; }
.brand img { width: 210px; }
.main-nav { display: flex; gap: 8px; align-items: center; justify-content: center; }
.main-nav a { padding: 10px 13px; border-radius: 999px; color: #334155; font-weight: 700; font-size: 15px; }
.main-nav a:hover { background: var(--green-100); color: var(--green-800); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.header-cart-btn {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--yellow-500);
  color: var(--green-950);
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(242, 197, 0, .28);
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.header-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(242, 197, 0, .36);
}
.header-cart-btn__icon { font-size: 17px; line-height: 1; }

.whatsapp-mini, .floating-wa, .btn-whatsapp { background: #128c4a; color: #fff; }
.whatsapp-mini { border-radius: 999px; padding: 11px 16px; font-weight: 900; box-shadow: 0 10px 25px rgba(18,140,74,.18); }
.whatsapp-mini::before, .floating-wa::before { content: ""; display:none; }
.btn-whatsapp::before { content: none !important; display:none !important; }
.menu-toggle { display: none; border: 0; background: var(--green-100); color: var(--green-900); border-radius: 14px; padding: 10px 13px; font-weight: 900; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 16px 16px; background: #fff; }
.mobile-nav a, .mobile-nav button { display: block; width: 100%; padding: 12px; border-radius: 12px; text-align: left; }
.mobile-nav.is-open { display: block; }
.hero { background: radial-gradient(circle at top right, rgba(250,204,21,.28), transparent 32%), linear-gradient(180deg, #ffffff 0%, #edfdf2 100%); padding: 54px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--yellow-500); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 5vw, 68px); line-height: .96; letter-spacing: -0.055em; margin: 14px 0 20px; color: var(--green-950); }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.04em; margin: 10px 0 12px; }
h3 { font-size: 20px; line-height: 1.12; margin-bottom: 8px; }
.hero-copy p { color: #334155; font-size: 18px; max-width: 650px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.btn { border: 0; border-radius: 999px; padding: 13px 18px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow-500); color: var(--green-950); box-shadow: 0 12px 30px rgba(242,197,0,.24); }
.btn-dark { background: var(--green-950); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--green-900); }
.btn-outline.danger { color: var(--danger); }
.full { width: 100%; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; }
.trust-row div, .metric { background: #fff; border: 1px solid rgba(6, 95, 70, .13); border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.trust-row strong { display: block; font-size: 26px; color: var(--green-700); line-height: 1; }
.trust-row span { color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-visual { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(6,95,70,.12); }
.quick-search { position: sticky; top: 84px; z-index: 25; padding: 12px 0; background: rgba(247,250,248,.9); backdrop-filter: blur(16px); border-block: 1px solid rgba(226,232,240,.8); }
.quick-search__box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px; display: grid; grid-template-columns: 1.5fr .75fr .75fr auto; gap: 10px; align-items: end; box-shadow: 0 10px 40px rgba(15,23,42,.07); }
.search-control span, .select-control span, .editor-box label { display: block; font-size: 12px; font-weight: 900; color: var(--muted); margin: 0 0 6px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 13px; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(21,148,71,.12); }
.section { padding: 62px 0; }
.section-soft { background: #eefbf2; }
.section-head, .catalog-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head p, .catalog-head p { color: var(--muted); max-width: 560px; margin-bottom: 0; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 10px 40px rgba(15,23,42,.06); min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.category-card:hover { border-color: rgba(8,118,45,.34); transform: translateY(-2px); }
.category-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--green-100); font-size: 23px; }
.category-card strong { font-size: 17px; }
.category-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.category-card__text { display: flex; flex-direction: column; gap: 3px; }
.category-card__text strong { color: var(--text); }
.category-card__meta { display: block; }
.catalog-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.feature-chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 8px; }
.chip { border: 1px solid rgba(8,118,45,.18); background: #fff; color: var(--green-900); padding: 10px 13px; border-radius: 999px; font-weight: 900; white-space: nowrap; }
.chip.is-active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; box-shadow: 0 12px 45px rgba(15,23,42,.07); }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 24px 70px rgba(15,23,42,.12); }
.product-media { background: #f8fafc; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.category-label { color: var(--green-700); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 12px; color: var(--green-800); background: var(--green-100); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.warning { color: #92400e; background: #fef3c7; }
.stock.off { color: #991b1b; background: #fee2e2; }
.product-title { font-size: 19px; margin: 0; }
.product-description { color: var(--muted); font-size: 14px; margin: 0; min-height: 43px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.price { font-size: 24px; font-weight: 950; color: var(--green-950); letter-spacing: -0.04em; }
.badge { display: inline-flex; align-items: center; align-self: flex-start; background: var(--yellow-100); color: #713f12; border: 1px solid #fde68a; border-radius: 999px; padding: 5px 9px; font-weight: 900; font-size: 12px; }
.financing { color: #475569; font-size: 13px; font-weight: 700; }
.card-actions { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 14px; min-height: 44px; font-weight: 900; color: var(--green-900); }
.empty-state { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.split-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.split-section p { color: #475569; font-size: 18px; }
.bullet-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.bullet-list span { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px; font-weight: 800; color: var(--green-900); }
.finance-card { background: linear-gradient(135deg, var(--green-950), var(--green-700)); color: #fff; border-radius: 30px; padding: 28px; box-shadow: var(--shadow); }
.finance-card h3 { font-size: 34px; letter-spacing: -.04em; }
.finance-card p { color: rgba(255,255,255,.84); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 10px 35px rgba(15,23,42,.06); }
.step-card strong { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow-500); color: var(--green-950); font-size: 23px; margin-bottom: 18px; }
.step-card p { color: var(--muted); margin-bottom: 0; }
.site-footer { background: var(--green-950); color: #fff; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; }
.footer-logo { background: #fff; border-radius: 18px; padding: 10px; width: 210px; margin-bottom: 16px; }
.site-footer p { color: rgba(255,255,255,.72); }
.plain-link { border: 0; background: none; padding: 0; color: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.floating-wa { position: fixed; right: 18px; bottom: 18px; z-index: 35; padding: 15px 18px; border-radius: 999px; font-weight: 950; box-shadow: 0 18px 40px rgba(18,140,74,.35); }
.editor-modal { border: 0; padding: 0; background: transparent; width: min(960px, calc(100% - 24px)); }
.editor-modal::backdrop { background: rgba(15,23,42,.62); backdrop-filter: blur(4px); }
.modal-card { position: relative; background: #fff; border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; width: 42px; height: 42px; border-radius: 14px; background: #f1f5f9; color: var(--ink); font-size: 28px; line-height: 1; }
.modal-product { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: start; }
.modal-product img { border-radius: 22px; border: 1px solid var(--line); background: #f8fafc; }
.side-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(430px, 92vw); background: #fff; transform: translateX(105%); transition: transform .2s ease; box-shadow: -20px 0 60px rgba(15,23,42,.2); display: flex; flex-direction: column; }
.side-panel.is-open { transform: translateX(0); }
.side-panel__head, .side-panel__foot { padding: 18px; border-bottom: 1px solid var(--line); }
.side-panel__head { display: flex; justify-content: space-between; align-items: start; }
.side-panel__foot { border-top: 1px solid var(--line); border-bottom: 0; margin-top: auto; display: grid; gap: 10px; }
.panel-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,.46); }
.consult-items { padding: 18px; overflow: auto; display: grid; gap: 12px; }
.consult-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.consult-item img { width: 68px; height: 54px; object-fit: cover; border-radius: 12px; background: #f8fafc; }
.consult-item h3 { font-size: 15px; margin: 0; }
.consult-item p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.editor-modal { width: min(1180px, calc(100% - 22px)); max-height: 92vh; }
.editor-shell { background: #fff; border-radius: 28px; padding: 22px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow); }
.editor-head { position: relative; padding-right: 56px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.editor-head p { color: var(--muted); margin: 0; }
.editor-grid {display: grid;grid-template-columns: 1.2fr 0.85fr;gap: 16px;align-items: start;}
.editor-box { border: 1px solid var(--line); border-radius: 22px; padding: 16px; background: #fbfffc; display: grid; gap: 12px; }
.editor-box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-products { display: grid; gap: 8px; max-height: 440px; overflow: auto; }
.editor-product-row { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 10px; text-align: left; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.editor-product-row.is-active { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(21,148,71,.12); }
.editor-product-row img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; background: #f8fafc; }
.editor-product-row span { display: block; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.file-label { cursor: pointer; }
.inline-file { display: inline-flex !important; align-items: center; justify-content: center; background: #fff; border: 1px dashed var(--green-700); color: var(--green-800) !important; padding: 12px; border-radius: 14px; font-weight: 900 !important; }
.form-checks { display: flex; gap: 16px; flex-wrap: wrap; }
.form-checks label { color: var(--ink); font-size: 14px; display: flex; gap: 8px; align-items: center; }
@media (max-width: 980px) {
  .header-grid { grid-template-columns: 190px 1fr auto; }
  .brand img { width: 180px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split-section { grid-template-columns: 1fr; }
  .quick-search { top: 78px; }
  .quick-search__box { grid-template-columns: 1fr 1fr; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .top-strip__inner { justify-content: flex-start; gap: 12px; padding: 8px 0; }
  .header-grid { min-height: 74px; grid-template-columns: 1fr auto; }
  .brand img { width: 168px; }
  .whatsapp-mini { display: none; }
  .hero { padding-top: 32px; }
  h1 { font-size: 40px; }
  .hero-copy p { font-size: 16px; }
  .trust-row, .steps-grid, .footer-grid, .bullet-list { grid-template-columns: 1fr; }
  .quick-search { position: static; }
  .quick-search__box, .category-grid, .product-grid { grid-template-columns: 1fr; }
  .section-head, .catalog-head { display: block; }
  .catalog-actions { justify-content: flex-start; margin-top: 14px; }
  .modal-product { grid-template-columns: 1fr; }
  .product-card { border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .floating-wa { left: 14px; right: 14px; justify-content: center; text-align: center; }
}

/* Ajustes Bootstrap 5: se conserva la identidad visual original y se usan utilities/layout de BS5 */
.hero-grid.row,
.split-section.row,
.trust-row.row,
.quick-search__box.row,
.bullet-list.row,
.steps-grid.row,
.footer-grid.row { display: flex; }

.quick-search__box.row { margin-left: auto; margin-right: auto; }
.quick-search__box .btn { min-height: 51px; }

.trust-row.row > div { min-width: 0; }
.bullet-list.row > span { display: block; }
.steps-grid.row > .step-card { height: auto; }
.footer-grid.row > div { min-width: 0; }

.btn:focus-visible,
.chip:focus-visible,
.icon-btn:focus-visible,
.plain-link:focus-visible {
  outline: 3px solid rgba(245, 193, 24, .55);
  outline-offset: 3px;
}

.form-control, .form-select {
  border-radius: 14px;
  border-color: var(--line);
}

@media (max-width: 980px) {
  .quick-search__box.row,
  .hero-grid.row,
  .split-section.row,
  .steps-grid.row,
  .footer-grid.row { display: flex; }
}

/* Responsive final + popup detalle + carrito Bootstrap 5 */
.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}
.product-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-title {
  min-height: 42px;
}
.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-add-btn {
  font-size: 22px;
  line-height: 1;
}
.product-detail-modal .modal-dialog {
  padding: 12px;
}
.product-detail-modal .modal-content {
  border: 0;
}
.product-detail-modal .modal-body {
  overflow: hidden;
  border-radius: 28px;
}
.modal-product {
  min-height: 420px;
}
.modal-product img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.modal-product > div {
  padding: 8px 6px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-product h2 {
  margin-bottom: 4px;
}
.modal-product .price {
  font-size: clamp(30px, 4vw, 46px);
}
.consult-offcanvas {
  width: min(440px, 94vw) !important;
  border-left: 0;
  box-shadow: -20px 0 60px rgba(15,23,42,.2);
}
.consult-offcanvas .offcanvas-body {
  min-height: 0;
}
.consult-items {
  flex: 1;
}
.cart-empty {
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 0;
}
.consult-item {
  transition: transform .18s ease, border-color .18s ease;
}
.consult-item:hover {
  transform: translateY(-1px);
  border-color: rgba(8,118,45,.25);
}
@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-search__box.row > label,
  .quick-search__box.row > button { width: 100%; }
  .quick-search__box.row { gap: 12px; }
  .modal-product img { min-height: 300px; }
}
@media (max-width: 575px) {
  .container { width: min(100% - 20px, 1180px); }
  .top-strip { font-size: 12px; }
  .top-strip__inner span { width: 100%; }
  .site-header { position: sticky; }
  .header-grid { gap: 10px; }
  .brand img { width: 145px; }
  .hero { padding: 24px 0 26px; }
  h1 { font-size: 34px; letter-spacing: -0.04em; }
  h2 { font-size: 28px; }
  .hero-cta .btn,
  .catalog-actions .btn,
  .card-actions .btn { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-media { aspect-ratio: 16 / 11; }
  .product-title { min-height: auto; }
  .product-description { min-height: auto; }
  .card-actions { grid-template-columns: 1fr 52px; }
  .modal-card { border-radius: 0; min-height: 100vh; padding: 18px; }
  .product-detail-modal .modal-dialog { padding: 0; margin: 0; }
  .product-detail-modal .modal-body { border-radius: 0; }
  .modal-product { display: block; min-height: auto; }
  .modal-product img { min-height: 240px; max-height: 340px; margin-bottom: 18px; }
  .modal-product > div { padding: 0; }
  .modal-product .hero-cta .btn { width: 100%; }
  .consult-offcanvas { width: 100% !important; }
  .consult-item { grid-template-columns: 58px 1fr 42px; }
  .consult-item img { width: 58px; height: 50px; }
  .floating-wa { bottom: 12px; }
}

/* Ajustes responsive para botones de detalle y carrito */
.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}
.card-actions .btn,
.card-actions .icon-btn {
  min-width: 0;
  width: 100%;
  white-space: nowrap;
}
.product-body > .plain-link[data-open-product] {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
}
.product-detail-modal .modal-content {
  max-height: calc(100vh - 24px);
  overflow: hidden;
}
.product-detail-modal .modal-body {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
.modal-product .hero-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}
.modal-product .hero-cta .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
}
.consult-offcanvas .offcanvas-body {
  height: calc(100vh - 96px);
  overflow: hidden;
}
.consult-items {
  overflow-y: auto;
  padding: 18px;
}
.side-panel__foot {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.side-panel__foot .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 575px) {
  .card-actions {
    grid-template-columns: 1fr;
  }
  .card-actions .cart-add-btn {
    min-height: 48px;
    font-size: 17px;
  }
  .card-actions .cart-add-btn::after {
    content: " Agregar al carrito";
    font-size: 15px;
    line-height: 1.2;
  }
  .product-body > .plain-link[data-open-product] {
    min-height: 48px;
  }
  .product-detail-modal .modal-content,
  .product-detail-modal .modal-body {
    max-height: 100vh;
  }
  .product-detail-modal .modal-body {
    padding-bottom: 16px !important;
  }
  .modal-product .hero-cta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 10px;
  }
  .modal-product img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 36vh;
    object-fit: contain;
  }
  .modal-close {
    position: fixed;
    z-index: 10;
  }
  .consult-offcanvas .offcanvas-body {
    height: calc(100dvh - 92px);
  }
  .consult-items {
    padding: 14px;
  }
  .consult-item {
    grid-template-columns: 64px minmax(0, 1fr) 42px !important;
    gap: 10px;
  }
  .consult-item h3,
  .consult-item p {
    overflow-wrap: anywhere;
  }
  .side-panel__foot {
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .floating-wa {
    max-width: calc(100vw - 24px);
  }
}

/* Panel admin con login */
.admin-nav-link{
  border:0;
  background:transparent;
  color:inherit;
  font-weight:800;
  padding:0;
}
.admin-login{
  display:grid;
  min-height:52vh;
  place-items:center;
  padding:clamp(1rem, 4vw, 3rem);
}
.admin-login-card{
  width:min(100%, 440px);
  padding:clamp(1.25rem, 4vw, 2rem);
  border-radius:28px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15, 23, 42, .14);
  border:1px solid rgba(15, 23, 42, .08);
}
.admin-login-card label{
  display:grid;
  gap:.45rem;
  margin-top:1rem;
  font-weight:800;
  color:#182033;
}
.admin-login-card input{
  width:100%;
  border:1px solid rgba(15, 23, 42, .16);
  border-radius:16px;
  padding:.85rem 1rem;
  font:inherit;
  background:#f8fafc;
}
.admin-error{
  margin:.9rem 0 0;
  color:#b91c1c;
  font-weight:800;
}
.admin-logout{
  white-space:nowrap;
}
@media (max-width: 767.98px){
  .admin-login{padding:1rem; min-height:60vh;}
  .editor-head{align-items:flex-start;}
  .editor-head .admin-logout{width:100%;}
}

/* CorrecciÃ³n panel admin: apertura segura y responsive */
body.admin-modal-open{overflow:hidden;}
.editor-modal[open], .editor-modal.is-open{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, .65);
  z-index: 2000;
  overflow-y: auto;
}
.editor-modal::backdrop{background: rgba(15, 23, 42, .65);}
.editor-modal .editor-shell{
  width: min(1180px, calc(100% - 24px));
  margin: 1rem auto;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
@media (max-width: 768px){
  .editor-modal .editor-shell{
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    max-height: none;
  }
  .editor-head{gap: .75rem; align-items: flex-start;}
  .editor-head > .d-flex{width: 100%; justify-content: space-between;}
  .admin-login-card{width: 100%;}
  .editor-actions .btn,
  .editor-box__head .btn{width:100%;}
}

/* Estado activo/inactivo en listado del panel */
.editor-product-row{
  grid-template-columns: 42px 1fr auto;
  cursor:pointer;
}
.editor-product-row.is-inactive{
  opacity:.72;
  background:#f8fafc;
}
.editor-product-row.is-inactive img{
  filter:grayscale(1);
}
.admin-state{
  display:inline-flex!important;
  width:max-content;
  margin-top:5px;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px!important;
  font-weight:800;
}
.admin-state.on{background:#dcfce7;color:#166534;}
.admin-state.off{background:#fee2e2;color:#991b1b;}
.admin-state-btn{white-space:nowrap;}
@media (max-width: 576px){
  .editor-product-row{grid-template-columns: 42px 1fr;}
  .admin-state-btn{grid-column:1 / -1; width:100%;}
}

/* Precios por forma de pago */
.payment-options{
  display:grid;
  gap:8px;
  margin:10px 0 14px;
}
.payment-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  padding:9px 12px;
  border:1px solid var(--line, #e5e7eb);
  border-radius:14px;
  background:#fff;
}
.payment-option__label{
  min-width:0;
  font-size:.86rem;
  font-weight:800;
  color:#242424;
  white-space:nowrap;
}
.payment-option__discount{
  color:#15803d;
  font-weight:900;
  margin-left:3px;
}
.payment-option__price{
  flex:0 0 auto;
  font-size:1rem;
  line-height:1;
  font-weight:900;
  color:#a94f58;
  white-space:nowrap;
}
.card-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
}
.card-actions .btn{
  width:100%;
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.payment-options--modal{max-width:560px;}

/* Responsive de tarjetas, precios y botones */
@media (max-width: 1199.98px){
  .payment-option{padding:8px 10px; gap:7px;}
  .payment-option__label{font-size:.79rem;}
  .payment-option__price{font-size:.92rem;}
}
@media (max-width: 575.98px){
  .payment-option{padding:9px 10px;}
  .payment-option__label{font-size:.78rem;}
  .payment-option__price{font-size:.9rem;}
  .card-actions{grid-template-columns:1fr 1fr;}
  .card-actions .btn{min-height:46px; padding:.7rem .45rem; font-size:.91rem;}
  .card-actions .cart-add-btn::after{content:none!important;}
}
@media (max-width: 360px){
  .payment-option__label{font-size:.72rem;}
  .payment-option__price{font-size:.82rem;}
  .payment-option{gap:5px; padding-inline:8px;}
}

/* Formulario admin responsive */
.admin-page .form-grid select,
.admin-page .form-grid input,
.admin-page textarea,
.admin-page input[type="text"],
.admin-page input[type="number"]{
  width:100%;
  min-width:0;
}
@media (max-width: 767.98px){
  .admin-page .site-header .container{flex-wrap:wrap; gap:12px;}
  .admin-page .site-header .brand img{max-width:150px;}
  .admin-page .site-header .d-flex{width:100%;}
  .admin-page .site-header .btn{flex:1 1 0;}
  .admin-full-grid{grid-template-columns:1fr!important;}
  .editor-box{min-width:0;}
  .editor-actions{display:grid; grid-template-columns:1fr;}
}


/* Ajustes finales de tarjetas públicas */
.product-top{
  min-height:28px;
}
.product-top .category-label{
  max-width:100%;
}
.card-actions{
  align-items:stretch;
}
.card-actions .btn{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width: 420px){
  .card-actions{grid-template-columns:1fr;}
  .card-actions .btn{width:100%; min-height:44px;}
}
@media (max-width: 340px){
  .payment-option{padding:8px 7px;}
  .payment-option__label{font-size:.68rem;}
  .payment-option__price{font-size:.78rem;}
}


/* Limpieza definitiva de datos retirados del catálogo público */
.product-card .stock,
.product-card .badge,
.product-detail-modal .stock,
.product-detail-modal .badge {
  display: none !important;
}

/* Evita íconos, caracteres o pseudo-elementos heredados en botones de consulta */
.product-card .btn-whatsapp::before,
.product-card .btn-whatsapp::after,
.product-detail-modal .btn-whatsapp::before,
.product-detail-modal .btn-whatsapp::after {
  content: none !important;
  display: none !important;
}

.product-card .card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  gap: 10px;
  width: 100%;
}
.product-card .card-actions .btn {
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.payment-option {
  min-width: 0;
}
.payment-option__label,
.payment-option__price {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .product-card .card-actions {
    grid-template-columns: 1fr;
  }
  .product-card .card-actions .btn {
    min-height: 44px;
  }
  .payment-option {
    padding-inline: 10px;
    gap: 6px;
  }
  .payment-option__label,
  .payment-option__discount,
  .payment-option__price {
    font-size: .82rem !important;
  }
}


/* Tarjetas públicas simplificadas: sin descripción ni leyenda de financiación */
.product-card .product-description,
.product-card .financing {
  display: none !important;
}

/* Mantiene una composición pareja y responsive luego de retirar esos textos */
.product-card .product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card .price-row {
  margin-top: 2px;
}
.product-card .payment-options {
  margin-top: 0;
}
.product-card .card-actions {
  margin-top: 2px;
}

@media (max-width: 575.98px) {
  .product-card .product-body {
    gap: 10px;
  }
}


/* Corrección modal de detalle Bootstrap 5 */
.product-detail-modal.modal {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  background: transparent;
}
.product-detail-modal .modal-dialog {
  width: min(960px, calc(100% - 24px));
  max-width: 960px;
  margin: 1.75rem auto;
  padding: 0;
}
.product-detail-modal .modal-content {
  width: 100%;
  margin: 0 auto;
}
.product-detail-modal .modal-close {
  z-index: 1080;
  cursor: pointer;
}
@media (max-width: 575.98px) {
  .product-detail-modal .modal-dialog {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
  }
}


/* Carrusel de categorías exclusivo para vista mobile */
.category-carousel-shell { position: relative; }
.category-carousel-btn {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green-800);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
  align-items: center;
  justify-content: center;
  font-size: 27px;
  line-height: 1;
  transform: translateY(-50%);
}
.category-carousel-btn--prev { left: -7px; }
.category-carousel-btn--next { right: -7px; }

@media (max-width: 640px) {
  #categorias { padding-top: 34px; padding-bottom: 34px; overflow: hidden; }
  #categorias .section-head { margin-bottom: 14px; }
  #categorias .section-head p { display: none; }
  #categorias .section-head h3 { margin-bottom: 0; }

  .category-carousel-shell { margin-inline: -2px; }
  .category-carousel-btn { display: flex; }
  .category-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 34px 12px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card {
    flex: 0 0 min(72vw, 245px);
    min-height: 82px;
    padding: 14px 16px;
    border-radius: 18px;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    column-gap: 12px;
    text-align: left;
  }
  .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 20px;
    flex-shrink: 0;
  }
  .category-card__text {
    min-width: 0;
    gap: 2px;
  }
  .category-card strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
  }
  .category-card__meta {
    display: block;
    font-size: 12px !important;
    line-height: 1.25;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .category-card { flex-basis: 76vw; }
}

/* Carrito fijo en el encabezado y filtros simplificados */
.catalog-head { align-items: flex-start; }
.feature-chips { overflow: visible; }

@media (max-width: 640px) {
  .header-actions { gap: 7px; }
  .header-cart-btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .header-cart-btn__icon { font-size: 15px; }
}

@media (max-width: 380px) {
  .header-cart-btn { padding-inline: 10px; }
  .header-cart-btn__icon { display: none; }
}

/* Hero tipo banner Ofertón */
.hero-oferton {
  padding: 18px 0 28px;
  background: #fffaf0;
}
.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 32px;
  align-items: center;
  min-height: 350px;
  padding: clamp(28px, 4vw, 54px);
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg, #045b35 0%, #0d7440 52%, #26984f 100%);
  box-shadow: 0 20px 50px rgba(6, 95, 70, .17);
  position: relative;
}
.hero-banner::before,
.hero-banner::after {
  content: "»»";
  position: absolute;
  color: #f4c900;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  opacity: .95;
}
.hero-banner::before { left: 24px; top: 20px; transform: rotate(180deg); }
.hero-banner::after { right: 24px; top: 20px; }
.hero-banner__copy { position: relative; z-index: 1; padding-top: 22px; }
.hero-banner__eyebrow {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid rgba(244, 201, 0, .5);
  border-radius: 999px;
  color: #ffe676;
  background: rgba(255,255,255,.07);
  font-weight: 800;
  font-size: 14px;
}
.hero-banner h1 {
  margin: 18px 0 8px;
  font-size: clamp(56px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -4px;
  font-weight: 950;
  color: #fff;
}
.hero-banner h1 strong { color: #f7c900; font-weight: 950; }
.hero-banner p { max-width: 680px; margin: 18px 0 22px; color: #fff; font-size: clamp(17px, 2vw, 23px); line-height: 1.35; }
.hero-banner .hero-cta { margin: 0; }
.hero-banner .btn { min-height: 50px; border-radius: 16px; padding-inline: 24px; }
.hero-wa-btn { color: #064e3b !important; font-weight: 800; }
.hero-banner__visual { display: flex; justify-content: center; align-items: center; min-width: 0; }
.hero-visual-pill {
  width: 100%;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.11);
  text-align: center;
  font-size: 17px;
}
.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}
.hero-benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  text-align: left;
}
.hero-benefit__icon {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #075d3a;
  font-size: 23px;
}
.hero-benefit strong { display: block; color: #075d3a; font-size: 17px; }
.hero-benefit small { display: block; color: #6b7280; font-size: 14px; }

/* Consulta siempre a la derecha y contador */
.header-actions { margin-left: auto; }
.header-cart-btn { order: 3; position: relative; }
.whatsapp-mini { order: 2; }
.menu-toggle { order: 4; }
.header-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #064e3b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.header-cart-count.is-empty { opacity: .72; }

@media (max-width: 991.98px) {
  .hero-banner { grid-template-columns: 1fr; min-height: auto; }
  .hero-banner__visual { display: none; }
  .hero-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
  .hero-oferton { padding-top: 10px; }
  .hero-banner { padding: 58px 20px 28px; border-radius: 0 0 24px 24px; }
  .hero-banner::before, .hero-banner::after { font-size: 38px; top: 16px; }
  .hero-banner h1 { font-size: clamp(46px, 18vw, 68px); letter-spacing: -2px; }
  .hero-banner p { font-size: 16px; }
  .hero-banner .btn { width: 100%; }
  .hero-benefits { grid-template-columns: 1fr; gap: 10px; }
  .hero-benefit { min-height: 88px; justify-content: flex-start; }
  .header-cart-btn { padding: 9px 10px; }
  .header-cart-btn > span:nth-child(2) { display: none; }
  .header-cart-count { min-width: 22px; height: 22px; }
}


/* Ajustes finales: beneficios con íconos SVG y tarjetas más compactas */
.hero-benefit__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-benefit > div { min-width: 0; }
.hero-benefit strong {
  white-space: nowrap;
  font-size: clamp(14px, 1.05vw, 17px);
}
.hero-benefit small { white-space: nowrap; }

.product-media { aspect-ratio: 4 / 2.75; }
.product-body { padding: 12px 14px 13px; gap: 8px; }
.product-title { min-height: 0; font-size: 17px; line-height: 1.25; }
.price-row { padding-top: 8px; }
.price { font-size: 22px; }
.payment-options { gap: 7px; margin: 5px 0 8px; }
.payment-option { padding: 8px 10px; border-radius: 13px; }
.product-card .card-actions { gap: 8px; margin-top: 0; }
.product-card .card-actions .btn {
  min-height: 40px;
  padding: 7px 10px;
  font-size: .92rem;
  border-radius: 14px;
}
.product-card .plain-link {
  min-height: 38px;
  padding: 7px 10px;
  margin-top: 0;
  font-size: .9rem;
}

@media (max-width: 1199.98px) {
  .hero-benefit { gap: 10px; padding: 16px 13px; }
  .hero-benefit__icon { flex-basis: 44px; width: 44px; height: 44px; }
  .hero-benefit strong { font-size: 14px; }
  .hero-benefit small { font-size: 12px; }
}

@media (max-width: 575.98px) {
  .hero-benefit strong { white-space: normal; }
  .hero-benefit small { white-space: normal; }
  .product-media { aspect-ratio: 4 / 2.6; }
  .product-body { padding: 11px 12px 12px; gap: 7px; }
  .product-title { font-size: 16px; }
  .price { font-size: 21px; }
  .product-card .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card .card-actions .btn {
    min-height: 38px;
    padding: 6px 8px;
    font-size: .86rem;
  }
}

@media (max-width: 360px) {
  .product-card .card-actions { grid-template-columns: 1fr; }
}

/* =========================================================
   Versión final 2026-08-11
   Ajustes según especificación funcional final
   ========================================================= */

/* Buscador protagonista */
.quick-search{
  padding-top: 28px;
  padding-bottom: 22px;
  background:#fff;
}
.quick-search__box{
  box-shadow:0 12px 36px rgba(15, 23, 42, .08);
}
.search-control input{
  min-height:58px;
  font-size:1rem;
}

/* Estados editables de producto: solo aparecen si el admin los activa */
.product-media,
.modal-product__media{position:relative;}
.product-statuses{
  position:absolute;
  z-index:3;
  top:10px;
  left:10px;
  right:10px;
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  pointer-events:none;
}
.product-status{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  font-size:.67rem;
  line-height:1;
  font-weight:900;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.65);
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}
.product-status--offer{background:#ffcf00;color:#14321f;}
.product-status--new{background:#e9f8ef;color:#08783d;}
.product-status--chosen{background:#fff;color:#775300;}
.product-status--featured{background:#075f3c;color:#fff;}

/* Financiación: etiqueta breve en tarjeta, detalle se conversa por WhatsApp */
.financing-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:4px 9px;
  border-radius:999px;
  background:#eef8f1;
  color:#08783d;
  font-size:.72rem;
  font-weight:800;
  white-space:nowrap;
}

/* Mi consulta, no carrito */
.header-cart-btn{
  white-space:nowrap;
}
.header-cart-count{
  min-width:22px;
  height:22px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:.76rem;
  font-weight:900;
}
.header-cart-count.is-empty{opacity:.65;}
.consult-offcanvas .offcanvas-body{min-height:0;}
.consult-items{overflow-y:auto;}

/* Detalle más sólido y centrado */
.modal-product{
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);
  gap:28px;
  align-items:center;
}
.modal-product__media img{
  display:block;
  width:100%;
  max-height:520px;
  object-fit:contain;
}
.modal-product__info{min-width:0;}
.modal-mobile-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.modal-mobile-actions .btn{width:100%;}

/* Categorías: tarjetas simples en escritorio */
.category-card.is-active{
  border-color:#11834d;
  box-shadow:0 0 0 2px rgba(17,131,77,.08);
}

/* Admin: los cuatro estados editables */
.product-status-checks{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
}
.product-status-checks label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
}
.admin-product-flags{
  display:flex!important;
  flex-wrap:wrap;
  gap:4px;
  margin-top:5px;
}
.admin-product-flags span{
  display:inline-flex;
  padding:2px 6px;
  border-radius:999px;
  background:#eef8f1;
  color:#08783d;
  font-size:10px;
  font-weight:800;
}

/* Vista mobile: categorías tipo chips horizontales */
@media (max-width:640px){
  #categorias{
    padding-top:24px;
    padding-bottom:24px;
  }
  #categorias .section-head{
    margin-bottom:10px;
  }
  .category-carousel-btn{
    width:34px;
    height:34px;
    font-size:23px;
  }
  .category-grid{
    gap:8px;
    padding:4px 30px 8px;
  }
  .category-card{
    flex:0 0 auto;
    width:auto;
    min-height:48px;
    padding:8px 13px;
    border-radius:999px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .category-icon{
    width:30px;
    height:30px;
    border-radius:50%;
    font-size:15px;
  }
  .category-card__text{
    display:block;
  }
  .category-card strong{
    font-size:.87rem;
    white-space:nowrap;
  }
  .category-card__meta{
    display:none!important;
  }

  /* Botones sticky en ficha de producto */
  .product-detail-modal .modal-content{
    min-height:100dvh;
  }
  .product-detail-modal .modal-body{
    padding-bottom:82px!important;
  }
  .modal-product{
    grid-template-columns:1fr;
    gap:14px;
    align-items:start;
  }
  .modal-product__media img{
    max-height:310px;
  }
  .modal-mobile-actions{
    position:fixed;
    z-index:1090;
    left:0;
    right:0;
    bottom:0;
    grid-template-columns:1fr 1fr;
    margin:0;
    padding:10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background:rgba(255,255,255,.97);
    border-top:1px solid #e5e7eb;
    box-shadow:0 -8px 24px rgba(15,23,42,.08);
  }
  .modal-mobile-actions .btn{
    min-height:44px;
    padding:.62rem .55rem;
    font-size:.9rem;
  }
  .product-statuses{
    top:8px;
    left:8px;
    right:8px;
  }

  .product-status-checks{
    grid-template-columns:1fr;
  }
}

@media (max-width:420px){
  .header-cart-btn span:not(.header-cart-count):not(.header-cart-btn__icon){
    display:none;
  }
  .header-cart-btn__icon{display:inline!important;}
  .product-card .card-actions{
    grid-template-columns:1fr 1fr;
  }
  .product-card .card-actions .btn{
    min-height:40px;
    padding:.55rem .35rem;
    font-size:.82rem;
  }
  .product-detail-link{
    min-height:38px;
    font-size:.82rem;
  }
}

/* Neutraliza textos heredados de versiones anteriores */
.product-card .cart-add-btn::before,
.product-card .cart-add-btn::after{
  content:none!important;
  display:none!important;
}
@media (max-width:640px){
  .product-page-detail{padding-bottom:82px;}
}


/* === PRECIOS VERSION 2026-08-11: tarjeta tipo retail === */
.product-card{border-radius:18px;}
.product-card .product-media{aspect-ratio:1/1;min-height:0;background:#fff;}
.product-card .product-media img{width:100%;height:100%;object-fit:contain;padding:10px;}
.product-card .product-body{padding:12px 14px 14px;gap:7px;}
.product-card .category-label{display:none!important;}
.product-card .product-title{font-size:.98rem;line-height:1.3;font-weight:500;margin:0 0 4px;color:#4b5563;min-height:0;}
.product-price-block{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 9px;width:100%;}
.product-list-price{font-size:1.35rem;line-height:1.15;font-weight:800;color:#2b2b2b;white-space:nowrap;}
.product-cash-price{font-size:.98rem;line-height:1.25;font-weight:800;color:#2b2b2b;}
.product-cash-price span{font-weight:700;}
.product-cash-discount{font-size:.78rem;font-weight:800;color:#1f2937;margin-left:auto;margin-right:auto;line-height:1;}
.product-installments{font-size:.88rem;color:#111827;margin-top:6px;line-height:1.25;}
.product-installments strong{font-weight:500;margin-right:8px;}
.product-installments span{font-size:.82rem;}
.product-installments--consult{font-weight:700;color:#4b5563;}
.product-card .payment-options,.product-card .financing-badge,.product-card .price-row{display:none!important;}
.product-card .card-actions{margin-top:auto;grid-template-columns:1fr 1fr;gap:7px;}
.product-card .card-actions .btn{min-height:38px;padding:.48rem .55rem;font-size:.84rem;border-radius:999px;}
.product-card .plain-link{font-size:.82rem;padding:.45rem 0;margin-top:2px;}
.product-price-block--modal{max-width:560px;margin:10px 0 18px;gap:7px;}
.product-price-block--modal .product-list-price{font-size:2rem;color:var(--green-dark,#064e3b);}
.product-price-block--modal .product-cash-price{font-size:1.2rem;}
.product-price-block--modal .product-cash-discount{margin-left:0;margin-right:0;font-size:.9rem;color:#16803a;}
.product-price-block--modal .product-installments{font-size:1rem;}
.admin-price-help{display:block;color:#64748b;font-size:.76rem;line-height:1.25;margin-top:5px;font-weight:500;}
@media(max-width:575.98px){
  .product-card .product-body{padding:10px 11px 12px;}
  .product-card .product-title{font-size:.92rem;}
  .product-list-price{font-size:1.2rem;}
  .product-cash-price{font-size:.88rem;}
  .product-cash-discount{font-size:.72rem;}
  .product-installments{font-size:.8rem;}
  .product-card .card-actions{grid-template-columns:1fr 1fr!important;}
  .product-card .card-actions .btn{min-height:36px;font-size:.78rem;padding:.42rem .3rem;}
}


/* === PRECIOS ALINEADOS A TABLAS articulos / articulo_imagenes 2026-08-12 === */
.product-price-block{display:grid!important;gap:6px!important;width:100%;margin:4px 0 10px!important;}
.product-price-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:7px 9px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;font-size:.86rem;line-height:1.15;}
.product-price-row span{color:#475569;font-weight:650;white-space:nowrap;}
.product-price-row strong{color:#0b5137;font-size:.95rem;font-weight:800;white-space:nowrap;text-align:right;}
.product-price-row--cash{background:#f2faf5;border-color:#cfe7d8;}
.product-price-row--cash span,.product-price-row--cash strong{color:#075f3c;}
.product-price-block--modal{max-width:560px!important;gap:8px!important;}
.product-price-block--modal .product-price-row{padding:10px 12px;font-size:1rem;}
.product-price-block--modal .product-price-row strong{font-size:1.08rem;}
.product-list-price,.product-cash-price,.product-cash-discount,.product-installments{display:none!important;}
@media(max-width:575.98px){
  .product-price-row{padding:6px 8px;font-size:.78rem;gap:6px;}
  .product-price-row strong{font-size:.82rem;}
  .product-price-block--modal .product-price-row{font-size:.9rem;padding:8px 10px;}
  .product-price-block--modal .product-price-row strong{font-size:.95rem;}
}

/* =========================================================
   Admin: buscador, paginación y cards de igual altura
   ========================================================= */
@media (min-width: 992px){
  .admin-equal-grid{
    align-items: stretch;
  }
  .admin-equal-grid .admin-panel-card{
    height: 720px;
    min-height: 720px;
    max-height: 720px;
  }
  .admin-list-card,
  .admin-form-card{
    display:flex;
    flex-direction:column;
    min-width:0;
  }
  .admin-form-card{
    overflow-y:auto;
  }
}

.admin-list-tools{
  display:grid;
  gap:6px;
}
.admin-search-label{
  margin:0!important;
  font-size:12px!important;
  font-weight:900!important;
  color:var(--muted)!important;
}
.admin-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:stretch;
}
.admin-search-row input{
  width:100%;
  min-width:0;
  min-height:44px;
  padding:10px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  color:var(--ink);
  outline:none;
}
.admin-search-row input:focus{
  border-color:var(--green-600);
  box-shadow:0 0 0 3px rgba(21,148,71,.12);
}
.admin-search-clear{
  min-height:44px;
  padding-inline:14px;
}
.admin-list-card .editor-products{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  align-content:start;
  padding-right:3px;
}
.admin-pagination{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding-top:10px;
  margin-top:auto;
  border-top:1px solid var(--line);
}
.admin-page-numbers{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  min-width:0;
}
.admin-page-number{
  display:inline-grid;
  place-items:center;
  min-width:34px;
  height:34px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--green-900);
  font-weight:800;
}
.admin-page-number:hover,
.admin-page-number.is-active{
  border-color:var(--green-700);
  background:var(--green-700);
  color:#fff;
}
.admin-page-btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

@media (max-width: 991.98px){
  .admin-equal-grid .admin-panel-card{
    height:auto;
    min-height:0;
    max-height:none;
  }
  .admin-list-card .editor-products{
    max-height:520px;
  }
}

@media (max-width: 575.98px){
  .admin-search-row{
    grid-template-columns:1fr;
  }
  .admin-search-clear{
    width:100%;
  }
  .admin-pagination{
    grid-template-columns:1fr 1fr;
  }
  .admin-page-numbers{
    grid-column:1 / -1;
    grid-row:1;
    flex-wrap:wrap;
  }
  .admin-pagination [data-admin-prev],
  .admin-pagination [data-admin-next]{
    width:100%;
  }
}


/* =========================================================
   Admin limpio 2026-08-13
   Sin scroll interno y sin alturas fijas en las cards
   ========================================================= */
.admin-page .admin-full-grid{
  align-items:stretch;
}
.admin-page .admin-panel-card,
.admin-page .admin-list-card,
.admin-page .admin-form-card{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
.admin-page .admin-list-card .editor-products{
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding-right:0!important;
}
.admin-page .admin-pagination{
  margin-top:10px!important;
}
@media (min-width:992px){
  .admin-page .admin-equal-grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr);
    align-items:stretch;
  }
  .admin-page .admin-equal-grid .admin-panel-card{
    height:100%!important;
  }
}
@media (max-width:991.98px){
  .admin-page .admin-equal-grid{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   Admin compacto: 5 artículos por página y sin scroll general
   ========================================================= */
.admin-page .admin-main{
  padding-top:1.6rem;
  padding-bottom:1.25rem;
}
.admin-page .admin-title-wrap{
  margin-bottom:1rem;
}
.admin-page .admin-title-wrap h1{
  margin:0;
}
.admin-page #pDescription{
  min-height:72px;
}
@media (min-width:992px){
  .admin-page .editor-box{
    padding:16px;
  }
  .admin-page .editor-box__head{
    margin-bottom:10px;
  }
  .admin-page .admin-list-tools{
    gap:4px;
  }
  .admin-page .editor-product{
    padding:9px 10px;
  }
  .admin-page .admin-pagination{
    padding-top:7px;
    margin-top:7px!important;
  }
}
@media (max-width:991.98px){
  .admin-page .admin-main{
    padding-top:1rem;
  }
}

/* Ajuste título del detalle de producto */
.modal-product #modalTitle {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 4px 0 10px;
}

@media (max-width: 767.98px) {
  .modal-product #modalTitle {
    font-size: 1.55rem;
    line-height: 1.1;
  }
}
