/* TusComprasWeb · estilos */
:root {
  --navy: #0f2d55;
  --blue: #1b5fae;
  --blue-soft: #e8f0fb;
  --green: #2f9e2f;
  --green-dark: #23802a;
  --green-soft: #e9f7e6;
  --orange: #f28a1a;
  --ink: #172235;
  --muted: #5b6678;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f4f8fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 45, 85, .08);
  --shadow-lg: 0 24px 60px rgba(15, 45, 85, .16);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hint { color: var(--muted); font-size: .88rem; margin: .7em 0 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 14px;
}

/* Botones */
.btn {
  --b: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; transition: .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47, 158, 47, .28); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn--primary:disabled { background: #a7b3a7; box-shadow: none; cursor: not-allowed; transform: none; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 8px 16px; font-size: .92rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--muted); padding: 8px; border-radius: 8px; line-height: 1; }
.icon-btn:hover { background: var(--tint); color: var(--ink); }

/* Topbar */
.topbar { background: var(--navy); color: #cfdcf0; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar__right { display: flex; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5574b; box-shadow: 0 0 0 3px rgba(229, 87, 75, .25); flex: none; }
.status.is-open .dot { background: #4cd964; box-shadow: 0 0 0 3px rgba(76, 217, 100, .25); }
.status--inline { font-size: .9rem; font-weight: 700; color: #c0392b; }
.status--inline.is-open { color: var(--green-dark); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--tint); color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem;
  background: var(--blue-soft); color: var(--blue); border: 0; padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.cart-btn:hover { background: #dbe7f8; }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.badge[hidden] { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #e3eefc 0, transparent 60%), radial-gradient(800px 400px at -10% 110%, #eaf7e6 0, transparent 60%), #fbfdff; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 span { color: var(--blue); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 560px; margin: 26px 0 28px; }
.hero__search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 0 16px; background: transparent; outline: none; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.trust li { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--green); }
.trust strong { color: var(--navy); font-size: .95rem; }
.trust span { color: var(--muted); font-size: .85rem; }
.hero__media { position: relative; min-height: 440px; }
.hcard { position: absolute; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.hcard div { padding: 14px 18px 18px; display: flex; flex-direction: column; }
.hcard small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--orange); }
.hcard b { color: var(--navy); font-size: 1.1rem; }
.hcard span { color: var(--muted); font-size: .85rem; }
.hcard--toner { width: 62%; left: 0; top: 10px; transform: rotate(-3deg); }
.hcard--toner img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.hcard--resmas { width: 52%; right: 0; top: 90px; transform: rotate(3deg); }
.hcard--resmas img { aspect-ratio: 4/3; object-fit: cover; object-position: top; width: 100%; }

/* Secciones */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(135deg, var(--navy), #164a8a); color: #dbe6f6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { background: rgba(255, 255, 255, .12); color: #b8f0a8; }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Buscador */
.finder { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.finder__brands { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.finder__brands button {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.finder__brands button:hover { border-color: var(--blue); }
.finder__brands button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.finder__form { display: flex; gap: 10px; }
.finder__form input, .cart-form input, .cart-form select, .cart-form textarea {
  font: inherit; color: var(--ink); width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
}
.finder__form input:focus, .cart-form input:focus, .cart-form select:focus, .cart-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-soft); }
.finder__results { margin-top: 20px; }
.tlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.titem, .tcustom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.titem:hover { border-color: #c5d6ee; background: #fbfdff; }
.titem > div, .tcustom > div { display: flex; flex-direction: column; min-width: 0; }
.titem b, .tcustom b { color: var(--navy); }
.titem small, .tcustom small { color: var(--muted); font-size: .85rem; }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
.tcustom { background: #fff8ef; border-color: #f7d9b5; margin-bottom: 12px; }
.finder__help { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px; background: var(--green-soft); border-radius: 16px; }
.finder__help p { margin: 0; color: var(--muted); font-size: .92rem; }
.finder__help b { color: var(--navy); }
.finder__help .btn { margin-left: auto; }
.help-icon { font-size: 1.8rem; }

/* Resmas */
.resmas { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.resmas__img img { border-radius: 24px; box-shadow: var(--shadow-lg); max-height: 600px; width: auto; margin: 0 auto; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.qty-row__label { font-weight: 700; color: var(--navy); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.stepper button:hover { background: var(--tint); }
.stepper input { width: 56px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm button { width: 32px; height: 32px; }
.stepper--sm span { min-width: 26px; text-align: center; font-weight: 700; }

/* Servicios */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .2s; display: flex; flex-direction: column; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.svc p { color: var(--muted); flex: 1; }
.svc a { font-weight: 700; text-decoration: none; color: var(--green-dark); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 28px; }
.steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.steps p { margin: 0; color: #c3d3ea; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; background: #fff; }
.faq details[open] { box-shadow: var(--shadow); border-color: #cddbef; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); padding: 18px 30px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 26px 0 30px; }
.contact__list dt { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { margin: 4px 0 0; font-weight: 600; }
.contact__list a { text-decoration: none; font-weight: 700; }
.contact__map { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 380px; background: #e9eef4; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.footer { background: #0b2140; color: #9fb2cd; padding: 48px 0 110px; font-size: .92rem; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 48px; }
.footer img { background: #fff; border-radius: 12px; padding: 8px 12px; height: 60px; width: auto; margin-bottom: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; justify-content: flex-end; }
.footer nav a { color: #dbe6f6; text-decoration: none; font-weight: 600; }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; margin: 0; }

/* Flotantes */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
.wa-float:hover { transform: translateY(-2px); }
.cart-float {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; gap: 18px; align-items: center;
  font: inherit; font-weight: 600; cursor: pointer; background: var(--navy); color: #fff; border: 0; padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg); animation: up .3s ease;
}
.cart-float[hidden] { display: none; }
.cart-float span:last-child { color: #b8f0a8; font-weight: 700; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 20px); } }

/* Panel del pedido */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(9, 22, 42, .5); animation: fade .2s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; animation: slide .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.35rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer__foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); }
.cart-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.cart-item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-item__txt b { color: var(--navy); font-size: .95rem; }
.cart-item__txt small { color: var(--muted); font-size: .8rem; }
.cart-empty { color: var(--muted); background: var(--tint); border-radius: 14px; padding: 16px; }
.cart-form { display: grid; gap: 14px; margin-top: 18px; }
.cart-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.cart-form label[hidden] { display: none; }
.cart-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.cart-form legend { font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.cart-form .radio { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.cart-form .radio:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.cart-form .radio input { width: auto; accent-color: var(--green); }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 980px) {
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: block; }
  .header__actions { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__media { min-height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .resmas, .faq, .contact { grid-template-columns: 1fr; gap: 32px; }
  .resmas__img img { max-height: 420px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .tlist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .topbar__right span { display: none; }
  .topbar__right a { display: inline; }
  .topbar__in { font-size: .78rem; }
  .brand img { height: 44px; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 10px 12px; }
  .hero__search { flex-direction: column; border-radius: 20px; }
  .hero__search input { padding: 12px; }
  .hero__media { min-height: 360px; }
  .status .extra { display: none; }
  .finder { padding: 18px; border-radius: 20px; }
  .finder__form { flex-direction: column; }
  .finder__help { flex-direction: column; align-items: flex-start; }
  .finder__help .btn { margin-left: 0; }
  .titem { padding: 12px; }
  .tcustom { flex-direction: column; align-items: stretch; }
  .tcustom .btn { white-space: normal; }
  .contact__list { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .cart-float { left: 16px; right: 84px; transform: none; justify-content: space-between; padding: 14px 18px; }
  @keyframes up { from { opacity: 0; transform: translateY(20px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
