/* Trazo Mayorista — hoja de estilos principal */
:root {
  --teal-950: #072630;
  --teal-900: #0B3A4A;
  --teal-800: #0C4A5C;
  --teal-700: #0E5A6E;
  --teal-600: #137A8F;
  --teal-100: #D6ECEF;
  --teal-50: #EAF5F6;
  --yellow: #F5B82E;
  --yellow-600: #DB9E14;
  --yellow-100: #FDF0CF;
  --red: #E5533D;
  --red-100: #FBE3DE;
  --green: #1E8E5A;
  --green-100: #DDF2E7;
  --ink: #15232C;
  --ink-2: #3A4750;
  --muted: #66737C;
  --line: #E6E0D4;
  --line-2: #EFEAE0;
  --paper: #FAF7F1;
  --surface: #FFFFFF;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(21, 35, 44, .06), 0 1px 1px rgba(21, 35, 44, .04);
  --shadow: 0 10px 30px -12px rgba(11, 58, 74, .25), 0 2px 6px rgba(21, 35, 44, .05);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ico { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(14, 90, 110, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 90, 110, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Botones y formularios ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 14.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: .15s ease;
  background: var(--teal-700); color: #fff;
}
.btn:hover { background: var(--teal-800); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-yellow { background: var(--yellow); color: var(--teal-950); }
.btn-yellow:hover { background: var(--yellow-600); color: var(--teal-950); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: var(--teal-600); color: var(--teal-700); }
.btn-white { background: #fff; color: var(--teal-900); }
.btn-white:hover { background: var(--yellow-100); color: var(--teal-900); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #c94430; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-700); cursor: pointer; font-weight: 600; }

label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: 500 15px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(19, 122, 143, .14); }
.input.is-invalid { border-color: var(--red); }
.field { margin-bottom: 16px; }
.field .err { color: var(--red); font-size: 12.5px; margin-top: 5px; font-weight: 600; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--teal-700); }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-ok { background: var(--green-100); border-color: #b9e3cb; color: #145c3b; }
.alert-err { background: var(--red-100); border-color: #f4c3b9; color: #9b2c1b; }
.alert-info { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-900); }
.alert-warn { background: var(--yellow-100); border-color: #f6dc9b; color: #7a5506; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--green-100); color: #156c44; }
.badge-err { background: var(--red-100); color: #a8331f; }
.badge-warn { background: var(--yellow-100); color: #8a5f05; }
.badge-info { background: var(--teal-50); color: var(--teal-800); }
.badge-gray { background: #EEF0F1; color: #4c5a63; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Encabezado ---------- */
.topbar { background: var(--teal-950); color: #cfe3e7; font-size: 12.5px; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; height: 36px; overflow-x: auto; scrollbar-width: none; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .ico { color: var(--yellow); }
.topbar .push { margin-left: auto; }
.topbar a { color: #fff; font-weight: 600; }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .wrap { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-size: 25px; font-weight: 800; letter-spacing: -.04em; }
.brand-name small { font-size: 9.5px; font-weight: 800; letter-spacing: .32em; color: var(--teal-700); margin-top: 4px; }
.search { flex: 1; max-width: 560px; position: relative; }
.search .input { height: 46px; border-radius: 999px; padding-left: 46px; background: var(--paper); border-color: transparent; }
.search .input:focus { background: #fff; }
.search .ico { position: absolute; left: 16px; top: 13px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hlink { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 14px; }
.hlink:hover { background: var(--paper); color: var(--teal-700); }
.cart-btn { position: relative; background: var(--teal-700); color: #fff; }
.cart-btn:hover { background: var(--teal-800); color: #fff; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--teal-950); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav .wrap { display: flex; flex-wrap: wrap; gap: 2px; min-height: 48px; align-items: center; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 900px) { .catnav .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.catnav a { white-space: nowrap; padding: 7px 10px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.catnav a:hover, .catnav a.on { background: var(--teal-50); color: var(--teal-800); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--teal-800); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-style: normal; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; color: var(--teal-700); }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .3em; background: var(--yellow); opacity: .55; z-index: -1; border-radius: 3px; transform: rotate(-1deg); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-art { position: relative; height: 440px; }
.hero-art .tile { position: absolute; width: 210px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-art .tile .pimg { width: 100%; height: auto; }
.hero-art .tile figcaption { padding: 10px 14px; font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; }
.hero-art .t1 { left: 4%; top: 6%; transform: rotate(-5deg); }
.hero-art .t2 { right: 2%; top: 0; transform: rotate(4deg); }
.hero-art .t3 { left: 22%; bottom: 0; transform: rotate(2deg); z-index: 2; }
.hero-art .t4 { right: 6%; bottom: 8%; transform: rotate(-3deg); width: 180px; }
.route-chip { position: absolute; left: 0; bottom: 40%; z-index: 3; background: var(--teal-900); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.route-chip .ico { color: var(--yellow); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head p { margin: 0; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 8px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: .2s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); border-color: var(--teal-100); }
.cat-card .pimg { width: 100%; height: auto; aspect-ratio: 200/120; object-fit: cover; }
.cat-card div { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat-card b { font-size: 15px; }
.cat-card span { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prop { padding: 22px; display: flex; gap: 14px; border-right: 1px solid var(--line-2); }
.prop:last-child { border-right: 0; }
.prop .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); flex: none; }
.prop b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.prop span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 800 13px var(--mono); color: var(--teal-600); background: var(--teal-50); padding: 4px 8px; border-radius: 6px; }
.step b { display: block; margin: 14px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.band { background: var(--teal-900); color: #dcecef; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 46, .35), transparent 70%); }
.band form { display: flex; gap: 10px; position: relative; z-index: 1; }
.band .input { border-color: transparent; height: 52px; border-radius: 999px; font-family: var(--mono); text-transform: uppercase; }

/* ---------- Productos ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.p-card:hover { box-shadow: var(--shadow); border-color: var(--teal-100); }
.p-card .media { display: block; position: relative; }
.p-card .media .pimg, .p-card .media img { width: 100%; aspect-ratio: 200/150; object-fit: cover; height: auto; }
.p-card .tag { position: absolute; left: 12px; top: 12px; }
.p-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.p-card .cat { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); }
.p-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 5px 0 3px; line-height: 1.35; }
.p-card h3 a { color: var(--ink); }
.p-card h3 a:hover { color: var(--teal-700); }
.p-card .unit { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.p-card .price-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.tier-hint { font-size: 11.5px; font-weight: 700; color: var(--green); background: var(--green-100); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.add-form { display: flex; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 40px; background: #fff; flex: none; }
.qty button { width: 34px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { color: var(--teal-700); background: var(--paper); }
.qty input { width: 46px; border: 0; text-align: center; font: 700 14px var(--font); color: var(--ink); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; }
.add-form .btn { flex: 1; height: 40px; padding: 0 12px; font-size: 13.5px; }

/* Catálogo */
.page-head { padding-top: 34px; padding-bottom: 10px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--teal-700); }
.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-bottom: 60px; }
.sidebar { position: sticky; top: 96px; align-self: start; }
.side-list { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.side-list a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.side-list a:hover, .side-list a.on { background: var(--teal-50); color: var(--teal-800); }
.side-list span { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.side-note { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--yellow-100); font-size: 13px; color: #6b4b06; }
.side-note b { display: block; margin-bottom: 4px; color: #4f3703; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar select { width: auto; height: 40px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-2); }
.pager .on { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty .ico { margin: 0 auto 10px; color: var(--teal-600); }

/* Ficha de producto */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 10px 0 60px; }
.pd-media { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; align-self: start; position: sticky; top: 96px; }
.pd-media .pimg, .pd-media img { width: 100%; height: auto; aspect-ratio: 200/160; object-fit: cover; }
.pd h1 { font-size: clamp(26px, 3vw, 36px); }
.pd .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pd .meta b { color: var(--ink-2); }
.pd .desc { color: var(--ink-2); font-size: 15.5px; }
.tiers { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.tiers th, .tiers td { padding: 12px 16px; text-align: left; font-size: 14px; }
.tiers th { background: var(--paper); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tiers td { border-top: 1px solid var(--line-2); }
.tiers tr.on td { background: var(--teal-50); font-weight: 700; }
.tiers .save { color: var(--green); font-weight: 700; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-box .qty { height: 52px; }
.buy-box .qty input { width: 64px; font-size: 16px; }
.buy-box .live { flex: 1; min-width: 150px; }
.buy-box .live b { display: block; font-size: 24px; letter-spacing: -.03em; }
.buy-box .live span { font-size: 12.5px; color: var(--muted); }
.ship-note { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed var(--teal-100); background: var(--teal-50); color: var(--teal-900); font-size: 13.5px; }

/* ---------- Carrito / checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 60px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.cart-line:first-child { border-top: 0; }
.cart-line .thumb { width: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.cart-line .thumb .pimg, .cart-line .thumb img { width: 100%; height: auto; aspect-ratio: 200/160; object-fit: cover; }
.cart-line .name { font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.cart-line .sub { font-size: 12.5px; color: var(--muted); }
.cart-line .lt { text-align: right; min-width: 96px; }
.cart-line .lt b { display: block; font-size: 16px; }
.cart-line .rm { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; margin-top: 4px; }
.cart-line .rm:hover { color: var(--red); }
.summary { position: sticky; top: 96px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.sum-row .ok { color: var(--green); font-weight: 700; }
.mini-lines { max-height: 260px; overflow: auto; margin: 6px 0 12px; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.mini-line span { color: var(--ink-2); }
.secure-box { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-900); font-size: 14px; }
.secure-box .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-700); color: #fff; display: grid; place-items: center; flex: none; }
.dest-box { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--yellow-100); color: #5e4205; font-size: 13.5px; }
.form-section { padding: 22px; border-top: 1px solid var(--line-2); }
.form-section:first-child { border-top: 0; }
.form-section h3 { font-size: 16px; margin-bottom: 16px; }
.form-section h3 i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-700); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ---------- Pedido y rastreo ---------- */
.status-hero { text-align: center; padding: 44px 24px 30px; }
.status-hero .ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.status-hero .ring.ok { background: var(--green-100); color: var(--green); }
.status-hero .ring.err { background: var(--red-100); color: var(--red); }
.status-hero .ring.wait { background: var(--yellow-100); color: var(--yellow-600); }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.kv div { padding: 16px 20px; border-right: 1px solid var(--line-2); }
.kv div:last-child { border-right: 0; }
.kv span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.kv b { font-size: 15px; word-break: break-word; }
.tn-big { font: 700 22px var(--mono); letter-spacing: .06em; color: var(--ink); }

.track-search { display: flex; gap: 10px; max-width: 620px; }
.track-search .input { height: 54px; border-radius: 999px; padding-left: 22px; font-family: var(--mono); font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
.track-search .btn { height: 54px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding: 24px; }
.track-head .eta b { font-size: 26px; letter-spacing: -.03em; display: block; }
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 24px 26px; position: relative; }
.stepper .st { text-align: center; position: relative; font-size: 12px; font-weight: 700; color: var(--muted); }
.stepper .st::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 4px; background: var(--line); z-index: 0; }
.stepper .st:first-child::before { display: none; }
.stepper .st.done::before, .stepper .st.cur::before { background: var(--teal-600); }
.stepper .dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto 8px; position: relative; z-index: 1; color: #fff; }
.stepper .st.done .dot { background: var(--teal-600); border-color: var(--teal-600); }
.stepper .st.cur .dot { border-color: var(--teal-600); background: var(--yellow); box-shadow: 0 0 0 6px rgba(245, 184, 46, .25); }
.stepper .st.done, .stepper .st.cur { color: var(--ink); }
.route { padding: 0 24px 24px; }
.route svg { width: 100%; height: auto; }
.progress { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-600), var(--yellow)); border-radius: 999px; transition: width 1s ease; }
.events { list-style: none; margin: 0; padding: 6px 24px 24px; }
.events li { display: grid; grid-template-columns: 150px 22px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.events li .when { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600; padding-top: 1px; }
.events li .pt { position: relative; }
.events li .pt::before { content: ""; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 4px var(--teal-50); }
.events li .pt::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: -14px; width: 2px; background: var(--line); }
.events li:last-child .pt::after { display: none; }
.events li:first-child .pt::before { background: var(--yellow); box-shadow: 0 0 0 5px rgba(245, 184, 46, .3); }
.events li.future { opacity: .45; }
.events li.future .pt::before { background: #fff; border: 2px solid var(--line); box-shadow: none; }
.events b { display: block; font-size: 14.5px; }
.events span { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-950); color: #a9c3c9; margin-top: 40px; font-size: 14px; }
.footer .wrap { padding-top: 50px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0; }
.footer a { color: #cfe3e7; }
.footer a:hover { color: var(--yellow); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand-name small { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.pay-chips { display: flex; gap: 8px; }
.pay-chips span { padding: 4px 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; background: var(--teal-950); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 380px; font-size: 14px; font-weight: 600; transform: translateY(20px); opacity: 0; transition: .25s ease; pointer-events: none; }
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast .ico { color: var(--yellow); }
.toast a { color: var(--yellow); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .p-grid, .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .props { grid-template-columns: repeat(2, 1fr); }
  .prop:nth-child(2) { border-right: 0; }
  .prop:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-art { height: 330px; }
  .hero-art .tile { width: 160px; }
  .hero-art .t4 { width: 140px; }
  .cat-layout, .two-col, .pd { grid-template-columns: 1fr; }
  .sidebar, .summary, .pd-media { position: static; }
  .side-list { display: flex; overflow-x: auto; gap: 4px; }
  .side-list a { white-space: nowrap; }
  .side-note { display: none; }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .kv div:nth-child(2) { border-right: 0; }
  .kv div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hlink .lbl { display: none; }
  .p-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-card .body { padding: 12px; }
  .add-form { flex-direction: column; }
  .add-form .qty { width: 100%; justify-content: space-between; }
  .props, .steps { grid-template-columns: 1fr; }
  .prop { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .row, .row-3 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line .thumb { width: 64px; }
  .cart-line .qty, .cart-line .lt { grid-column: 2; justify-self: start; text-align: left; }
  .stepper { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .stepper .st:nth-child(4)::before { display: none; }
  .events li { grid-template-columns: 22px 1fr; }
  .events li .when { grid-column: 2; grid-row: 2; text-align: left; }
  .track-search { flex-direction: column; }
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .band form { flex-direction: column; }
}

/* ---------- Selector de idioma ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-right: 4px; }
.lang-switch a { min-width: 34px; height: 28px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.lang-switch a:hover { color: var(--teal-700); background: #fff; }
.lang-switch a.on { background: var(--teal-700); color: #fff; }
.lang-switch-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); margin-right: 0; }
.lang-switch-dark a { color: #cfe3e7; }
.lang-switch-dark a:hover { background: rgba(255, 255, 255, .1); color: var(--yellow); }
.lang-switch-dark a.on { background: var(--yellow); color: var(--teal-950); }
.footer-end { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 680px) {
  .lang-switch a { min-width: 30px; padding: 0 7px; }
}

/* Marcas de tarjeta aceptadas */
.card-logos { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-logos img { width: 44px; height: 28px; display: block; border-radius: 5px; box-shadow: 0 1px 2px rgba(21, 35, 44, .08); }
.card-logos.center { justify-content: center; margin-top: 14px; }
.card-logos.on-dark img { box-shadow: none; }

/* Fotos de producto */
.hero-art .tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cat-card img { width: 100%; aspect-ratio: 200 / 120; object-fit: cover; display: block; }
.prod-pick img { width: 70px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* Métodos de pago y formulario de tarjeta */
.pay-methods { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; margin: 0; font-weight: 500; }
.pay-opt:has(input:checked) { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(19, 122, 143, .1); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--teal-700); flex: none; }
.pay-opt-body { display: flex; flex-direction: column; flex: 1; gap: 2px; color: var(--ink); }
.pay-logos { display: inline-flex; gap: 6px; flex: none; }
.pay-logos img { width: 40px; height: 26px; }
.pay-panel { padding: 4px 4px 8px; }
.pay-panel[hidden] { display: none; }
.card-num { position: relative; }
.card-num .input { padding-right: 64px; letter-spacing: .06em; }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; color: var(--teal-700); }
