/* ARTCUT · estilos compartidos */
:root { --rojo: #B8070D; --rojo-osc: #8A0509; --negro: #111111; --gris-bg: #F5F4F2; --borde: #E2E0DC; --texto: #141414; --suave: #555555; --ok: #1E6B35; --error: #B00610; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texto); background: #fff; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--rojo); } a:hover { color: var(--rojo-osc); }
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; margin: 0; }
p { margin: 0; }
button { font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.on-dark :focus-visible, header :focus-visible, footer :focus-visible { outline-color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 150px; }

/* barra superior + header */
.topbar { background: var(--rojo); color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 10px 16px; }
.topbar .corto { display: none; }
.sticky { position: sticky; top: 0; z-index: 40; }
.site-header { background: var(--negro); color: #fff; }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: #fff; text-decoration: none; }
.nav a:hover { text-decoration: underline; color: #fff; }
.nav .comprar { background: var(--rojo); padding: 0 16px; min-height: 44px; border-radius: 10px; display: inline-flex; align-items: center; font-weight: 800; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; border: 1px solid #444; color: #fff; background: transparent; cursor: pointer; position: relative; text-decoration: none; flex-shrink: 0; }
.icon-btn:hover { color: #fff; border-color: #777; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.menu-btn { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-movil { border-top: 1px solid #333; padding: 8px 24px 16px; display: flex; flex-direction: column; }
.menu-movil a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; padding: 12px 0; min-height: 44px; border-bottom: 1px solid #2a2a2a; }
.menu-movil a:last-child { border-bottom: 0; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; padding: 14px 22px; min-height: 48px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer; text-align: center; }
.btn-rojo { background: var(--rojo); color: #fff; } .btn-rojo:hover { background: var(--rojo-osc); color: #fff; }
.btn-negro { background: var(--negro); color: #fff; } .btn-negro:hover { background: #333; color: #fff; }
.btn-blanco { background: #fff; color: var(--negro); } .btn-blanco:hover { background: #eee; color: var(--negro); }
.btn-borde { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-gris { background: #fff; color: var(--texto); border: 1px solid #CFCCC7; }
.btn-mp { background: #0077B6; color: #fff; } .btn-mp:hover { background: #005f91; color: #fff; }
.btn-lg { font-size: 17px; padding: 16px 26px; min-height: 52px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.pill { font-weight: 700; font-size: 15px; padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; background: transparent; color: #fff; border: 2px solid #555; }
.pill[aria-pressed="true"] { background: #fff; color: var(--negro); border-color: #fff; }
.light .pill { color: var(--texto); border-color: #CFCCC7; background: #fff; }
.light .pill[aria-pressed="true"] { background: var(--negro); color: #fff; border-color: var(--negro); }

/* secciones */
.eyebrow { font-size: 14px; font-weight: 700; color: var(--rojo); letter-spacing: 1px; text-transform: uppercase; }
.h2 { font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.8px; }
.lead { font-size: 17px; line-height: 1.6; color: #444; }
.sec { padding: 88px 0; }
.sec-gris { background: var(--gris-bg); }
.card { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 22px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.ph { background: var(--gris-bg); display: flex; align-items: center; justify-content: center; color: #6b6b6b; font-size: 14px; font-weight: 600; text-align: center; padding: 16px; }
.ph-dark { border: 2px dashed #5a5a5a; border-radius: 16px; color: #bdbdbd; background: #1e1e1e; }

/* producto (tarjeta) */
.prod-card { border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.prod-card.destacado { border: 2px solid var(--negro); }
.prod-card .foto { aspect-ratio: 4 / 3; position: relative; overflow: hidden; flex-shrink: 0; }
.prod-card .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.prod-card .info { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.prod-card h3 { font-size: 20px; font-weight: 800; }
.prod-card .desc { font-size: 15px; color: var(--suave); flex-grow: 1; }

/* tabla de precios */
.tabla-wrap { background: #fff; border: 1px solid var(--borde); border-radius: 14px; overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th { background: var(--negro); color: #fff; text-align: left; padding: 12px 12px; font-weight: 700; font-size: 14px; line-height: 1.25; }
.price-table td { padding: 12px 12px; border-top: 1px solid var(--borde); line-height: 1.3; }
.price-table th:first-child, .price-table td:first-child { padding-left: 18px; }
.price-table th:last-child, .price-table td:last-child { padding-right: 18px; }
.price-table .num { text-align: right; }
.price-table tr.on { background: #FDECEC; }

/* calculadora (oscura) */
.calc { background: var(--negro); color: #fff; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.calc h3 { font-size: 26px; font-weight: 800; }
.calc .lbl { font-size: 15px; font-weight: 600; color: #e0e0e0; }
.calc .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.calc .tot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc .tot > div { background: #1e1e1e; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.calc .tot span:first-child { font-size: 14px; color: #bdbdbd; }
.calc .tot b { font-family: Archivo, sans-serif; font-size: clamp(22px, 6.4vw, 30px); font-weight: 800; }
.calc .notas { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #e0e0e0; }
.calc input[type="number"], .calc input[type="text"] { font-size: 18px; font-weight: 600; padding: 10px 14px; border-radius: 10px; border: 2px solid #444; background: #1e1e1e; color: #fff; min-height: 50px; width: 100%; }
.ok-txt { color: #7CE0A3; font-weight: 700; } .warn-txt { color: #FFB4B4; font-weight: 600; }
.chip { background: #1E3A2A; color: #CFF5DD; border-radius: 10px; padding: 12px 14px; font-size: 15px; }

/* formularios (claros) */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--suave); line-height: 1.4; }
.field input, .field select, .field textarea { padding: 10px 12px; border: 1px solid #CFCCC7; border-radius: 8px; min-height: 46px; background: #fff; width: 100%; }
.field .err { font-size: 14px; font-weight: 600; color: var(--error); }
input[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--error) !important; background: #FFF8F8 !important; }
.calc input[aria-invalid="true"] { border-color: #FF8A8A !important; background: #1e1e1e !important; }
.alerta { background: #FDECEC; color: #8A0509; border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.aviso-ok { background: #E6F4EA; color: var(--ok); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; }

/* autocompletar ciudad */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; color: var(--texto); border: 1px solid #CFCCC7; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); margin: 0; padding: 4px; list-style: none; max-height: 300px; overflow-y: auto; }
.ac-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; min-height: 44px; align-items: center; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: #F2F0EC; }
.ac-list li small { color: var(--suave); }
.ac-list .vacio { cursor: default; color: var(--suave); font-size: 14px; }

/* opción de radio grande (envío, pago) */
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #CFCCC7; cursor: pointer; min-height: 60px; text-align: left; width: 100%; }
.opt[aria-checked="true"] { border: 2px solid var(--rojo); background: #FFF8F8; }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8a8a8a; flex-shrink: 0; }
.opt[aria-checked="true"] .dot { border: 6px solid var(--rojo); }
.opt .t { font-weight: 700; } .opt .d { font-size: 14px; color: var(--suave); }
.opt .p { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* footer y WhatsApp */
.site-footer { background: var(--negro); color: #d6d6d6; }
.site-footer .cols { max-width: 1200px; margin: 0 auto; padding: 56px 24px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer a { color: #d6d6d6; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 220px; font-size: 15px; }
.site-footer .col b { color: #fff; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #0E7A4E; text-decoration: none; font-weight: 800; font-size: 16px; padding: 10px 20px 10px 12px; min-height: 52px; border-radius: 999px; border: 2px solid #25D366; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float img { width: 30px; height: 30px; display: block; }
body.con-barra .wa-float { bottom: 92px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 64px 0; }
  .topbar .largo { display: none; } .topbar .corto { display: inline; }
  .site-header .bar { padding: 10px 16px; gap: 10px; }
  .logo img { height: 38px; }
  .nav a:not(.comprar) { display: none; }
  .nav .comprar { padding: 0 12px; }
  .menu-btn { display: inline-flex; }
  .calc { padding: 24px 18px; }
  .wa-float { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; right: 16px; bottom: 16px; }
  .wa-float span { display: none; }
  body.con-barra .wa-float { bottom: 84px; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; padding: 12px 16px; border-top: 1px solid var(--borde); }
  .price-table td { border-top: 0; padding: 0; font-size: 15px; text-align: left; }
  .price-table td:nth-child(1) { order: 1; font-size: 17px; font-weight: 700; }
  .price-table td:nth-child(3) { order: 2; text-align: right; font-size: 17px; font-weight: 700; }
  .price-table td:nth-child(4) { order: 3; color: var(--suave); }
  .price-table td:nth-child(4)::after { content: " c/u"; }
  .price-table td:nth-child(2) { order: 4; text-align: right; font-size: 14px; color: var(--rojo); font-weight: 700; }
  .price-table td:nth-child(2)::before { content: "Ahorrás "; font-weight: 400; color: var(--suave); }
  .price-table td:nth-child(5) { order: 5; grid-column: 1 / -1; font-size: 13px; color: var(--suave); }
  .price-table td[data-v="—"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.ig-link { display: inline-flex; align-items: center; gap: 8px; }
