/* Prisma Distribuidora — landing page */
:root {
  --navy: #1a2a56;
  --navy-900: #101b3b;
  --navy-700: #24376d;
  --orange: #f47b20;
  --orange-600: #e2680c;
  --ink: #141d33;
  --muted: #4b5670;
  --line: #dde2eb;
  --line-strong: #c3cad8;
  --soft: #f1f4f8;
  --paper: #ffffff;
  --on-navy: #e9edf6;
  --on-navy-muted: #b8c2dc;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 27, 59, .06), 0 8px 24px -12px rgba(16, 27, 59, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-variation-settings: "wdth" 88;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.75rem); }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.measure { max-width: 62ch; color: var(--muted); }
.nowrap { white-space: nowrap; }
abbr[title] { text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; cursor: help; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.15;
  text-decoration: none; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: var(--navy-900); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px -8px rgba(226, 104, 12, .7); }
.btn-primary:hover { background: var(--orange-600); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .95rem; }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--navy); }
.text-link { color: var(--navy); font-weight: 650; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--orange-600); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.4) blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s var(--ease), color .2s; }
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--orange); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.1rem);
  font-variation-settings: "wdth" 84;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.lead { margin-top: 22px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.terms {
  margin: 36px 0 0; padding: 20px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line-strong);
}
.terms > div { padding: 0 16px; border-left: 1px solid var(--line); }
.terms > div:first-child { padding-left: 0; border-left: 0; }
.terms dt { font-weight: 750; color: var(--navy); font-variation-settings: "wdth" 85; font-size: 1.08rem; line-height: 1.2; }
.terms dd { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }

.showcase { margin: 0; }
.showcase-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: clamp(14px, 2vw, 22px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px clamp(10px, 1.6vw, 20px);
}
.rail { position: relative; padding-bottom: 12px; border-bottom: 2px solid var(--soft); }
.rail:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.rail img { width: 100%; aspect-ratio: 12 / 5; object-fit: contain; }
.rail span { display: block; margin-top: 2px; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.showcase figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split h2 { margin-bottom: 20px; max-width: 18ch; }

.neutral { border-bottom: 1px solid var(--line); }
.materials { border-top: 2px solid var(--navy); padding-top: 18px; }
.materials h3 { font-size: 1rem; font-weight: 600; color: var(--muted); font-variation-settings: "wdth" 100; letter-spacing: 0; margin-bottom: 4px; }
.materials ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.materials li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 750; font-variation-settings: "wdth" 88; color: var(--navy); line-height: 1.2; }

/* ---------- catalog ---------- */
.catalog { background: var(--soft); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px 10px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.chip {
  flex: none; font: inherit; font-size: .95rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow); }
.card.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), var(--shadow); }
.card-img { padding: 10px 12px 0; }
.card-img img { width: 100%; aspect-ratio: 12 / 5; object-fit: contain; }
.card-img-viewport { display: block; position: relative; overflow: hidden; aspect-ratio: 12 / 5; }
.card-img-photo .card-img-viewport img {
  position: absolute;
  width: var(--photo-width, 100%);
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  left: var(--photo-left, 0%);
  top: var(--photo-top, 0%);
}
.card-body { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-ref { display: flex; flex-direction: column; }
.card-ref strong { font-size: 1.12rem; color: var(--navy); font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.card-ref span { font-size: .95rem; color: var(--ink); }
.card-meta { margin: 0; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; }
.step {
  font: inherit; font-weight: 700; font-size: 1.15rem; line-height: 1;
  height: 42px; min-width: 42px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy);
  transition: background-color .15s, border-color .15s, color .15s;
}
.step:hover { border-color: var(--navy); }
.step.plus:only-of-type, .step.plus span { font-size: .98rem; }
.stepper .step.plus { flex: 1; }
.card:not(.is-on) .step.plus { background: var(--soft); border-color: var(--line); }
.card:not(.is-on) .step.plus:hover { background: #fff; border-color: var(--navy); }
.card.is-on .step.plus { flex: 0 0 auto; background: var(--navy); border-color: var(--navy); color: #fff; }
.qty { min-width: 2.2ch; text-align: center; font-weight: 750; font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums; flex: 1; }

/* order panel */
.order { position: sticky; top: 92px; }
.order-inner { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.order h3 { font-size: 1.35rem; margin-bottom: 14px; }
.meter { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease), background-color .3s; }
.order.is-complete .meter span { background: var(--navy); }
.order-status { margin: 10px 0 14px; font-size: .93rem; color: var(--muted); min-height: 2.8em; }
.order-status strong { color: var(--navy); }
.order-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.order-table th, .order-table td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; border-bottom: 1.5px solid var(--navy); }
.order-table td:first-child { font-weight: 650; color: var(--navy); white-space: nowrap; }
.order-table .num { text-align: right; }
.order-table tbody { display: table-row-group; }
.order-table tfoot th, .order-table tfoot td { border-bottom: 0; padding-top: 10px; font-weight: 750; color: var(--navy); }
.order-table .empty td { color: var(--muted); font-weight: 400; font-style: normal; padding: 14px 4px; }
.order-table .empty td:first-child { color: var(--muted); font-weight: 400; white-space: normal; }
.fine { margin: 12px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ---------- accessories ---------- */
.acc-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.acc img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f6f6f8; }
.acc img.contain { object-fit: contain; padding: 6px; }
.acc > div { padding: 16px 18px 20px; }
.acc h3 { margin-bottom: 6px; }
.acc p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- lab ---------- */
.lab { background: var(--navy); color: var(--on-navy); padding: clamp(56px, 7vw, 96px) 0; }
.lab-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.lab h2 { color: #fff; max-width: 14ch; }
.lab p { color: var(--on-navy-muted); font-size: 1.1rem; max-width: 52ch; margin-bottom: 24px; }

/* ---------- steps ---------- */
#como-comprar h2 { margin-bottom: 36px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: s; padding-top: 22px; border-top: 2px solid var(--navy); position: relative; }
.steps li::before {
  content: counter(s);
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--orange); color: var(--navy-900);
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 8px; font-size: 1.3rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- faq ---------- */
.faq { background: var(--soft); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-aside { position: sticky; top: 100px; }
.faq-aside h2 { margin-bottom: 14px; }
.faq-aside p { color: var(--muted); margin-bottom: 22px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 6px; font-variation-settings: "wdth" 100; }
details { border-bottom: 1px solid var(--line-strong); }
details:first-of-type { border-top: 1px solid var(--line-strong); }
summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 650; font-size: 1.06rem; color: var(--ink); line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { color: var(--navy); }
details p { margin: -4px 0 20px; color: var(--muted); max-width: 60ch; }

/* ---------- closing ---------- */
.closing { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.closing h2 { margin-bottom: 18px; max-width: 20ch; }
.closing p { color: var(--muted); max-width: 52ch; margin-bottom: 26px; }
.tel { color: var(--navy); font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
.where { font-style: normal; border-top: 2px solid var(--navy); padding-top: 20px; }
.where h3 { margin-bottom: 12px; }
.where p { color: var(--ink); margin-bottom: 14px; }
.where .served { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-navy-muted); padding: 40px 0 calc(40px + var(--dock-h)); font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 24px; align-items: start; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0; }
.site-footer .copy { font-size: .82rem; }

/* ---------- dock (mobile + pedido) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: none; align-items: center; gap: 12px;
  background: var(--navy-900); color: #fff;
  border-radius: 14px; padding: 10px 10px 10px 16px;
  box-shadow: 0 12px 32px -8px rgba(16, 27, 59, .55);
  transition: transform .35s var(--ease), opacity .25s;
}
.dock-info { display: none; align-items: baseline; gap: 8px; font-size: .92rem; color: var(--on-navy-muted); min-width: 0; }
.dock-count { font-size: 1.4rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.dock .btn { margin-left: auto; --h: 46px; }
.dock.has-items .dock-info { display: flex; }
.dock.bump .dock-count { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: translateY(6px); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* desktop: dock only when there is an order and the panel is off-screen */
@media (min-width: 1025px) {
  .dock { left: auto; right: 24px; bottom: 24px; max-width: 460px; }
  .dock.has-items { display: flex; }
  .dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root { --dock-h: 76px; }
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; }
  .showcase { max-width: 640px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .order { position: static; }
  .dock { display: flex; }
  .dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .acc-list { grid-template-columns: 1fr 1fr; }
  .dock:not(.has-items) .btn { flex: 1; margin-left: 0; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .site-header .btn-sm span { display: none; }
  .site-header .btn-sm { padding: 0 12px; }
  .header-inner { min-height: 64px; }
  .hero-actions .btn { width: 100%; }
  .terms { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .terms > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .split, .lab-inner, .closing-grid, .footer-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 8px 12px 12px; }
  .card-ref strong { font-size: 1rem; }
  .card-ref span { font-size: .88rem; }
  .card-meta { font-size: .78rem; }
  .card-meta .line { display: none; }
  .step { height: 40px; min-width: 40px; padding: 0 8px; }
  .step.plus span { font-size: .9rem; }
  .steps { grid-template-columns: 1fr; }
  .acc-list { gap: 10px; }
  .acc > div { padding: 12px 12px 14px; }
  .acc h3 { font-size: 1.02rem; }
  .acc p { font-size: .88rem; }
  .brand img { height: 46px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
