/* catalogo.sistemasvalgi.com — página comercial de los catálogos para WhatsApp, con la identidad de Sistemas Valgi.
   Estilos propios: no comparte archivos con los catálogos de clientes (cada uno tiene los suyos). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url("fuentes/plus-jakarta-sans.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500 700; font-display: swap; src: url("fuentes/space-grotesk.woff2") format("woff2"); }

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --accent: #5b7cff;
  --accent-2: #8b5cf6;
  --accent-soft: #a5b4ff;
  --grad-fill: linear-gradient(120deg, var(--accent), var(--accent-2));
  --bg: #0a0c13;
  --bg-2: #0e111a;
  --surface: #131725;
  --surface-2: #1a1f31;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .17);
  --text: #c9cfdc;
  --muted: #8d96ab;
  --heading: #ffffff;
  --wa: #25d366;
  --wa-bubble: #dcf8c6;
  --container: 1160px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2 { margin: 0; color: var(--heading); font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.ic { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(91 124 255 / .4); color: #fff; }
.head { max-width: 640px; }
.head p { margin-top: 14px; font-size: 17px; color: var(--muted); text-wrap: pretty; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), filter 200ms ease, border-color 200ms ease, background 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--wa { color: #fff; background: var(--grad-fill); box-shadow: 0 12px 30px -14px var(--accent); }
.btn--wa .ic { box-sizing: content-box; width: 16px; height: 16px; padding: 5px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.btn--ghost { color: var(--heading); border-color: var(--border-strong); }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn--wa:hover { filter: brightness(1.1); }
  .btn--ghost:hover { border-color: var(--accent); background: rgb(91 124 255 / .08); }
}

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); }
.logo-mark { width: 34px; height: 34px; }
.lm-a { fill: var(--accent); }
.lm-b { fill: var(--accent-2); opacity: .88; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.logo-text strong i { font-style: normal; color: var(--accent-2); }
.logo-text small { margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.top-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--heading); transition: border-color 200ms ease; }
.top-wa .ic { color: var(--wa); }
@media (hover: hover) and (pointer: fine) { .top-wa:hover { border-color: var(--accent); } }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; top: -10%; right: -15%; width: 75%; height: 130%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(91 124 255 / .24), transparent), radial-gradient(closest-side at 65% 70%, rgb(139 92 246 / .2), transparent);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.038em; }
.hl { color: var(--accent-soft); }
.lead { margin-top: 22px; max-width: 46ch; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-price { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hero-price b { margin-right: 4px; font: 700 20px/1 var(--font-display); letter-spacing: -.02em; color: var(--heading); }

/* Escenario: celular con el catálogo y el mensaje que llega a WhatsApp */
.stage { position: relative; justify-self: center; width: min(100%, 420px); padding: 0 0 150px 70px; }
.phone { position: relative; width: 290px; padding: 10px; border: 1px solid var(--border-strong); border-radius: 42px; background: #05060a; box-shadow: 0 50px 90px -30px rgb(0 0 0 / .9), 0 18px 40px -20px rgb(0 0 0 / .8); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 999px; background: #05060a; z-index: 2; }
.screen { position: relative; border-radius: 32px; overflow: hidden; background: #f8f7f4; color: #1d1d1f; font-size: 11px; line-height: 1.3; }
.s-top { display: flex; align-items: center; justify-content: space-between; padding: 44px 14px 10px; }
.s-brand { display: flex; align-items: center; gap: 7px; font: 700 14px/1 var(--font-display); letter-spacing: -.02em; }
.s-brand i { width: 20px; height: 20px; border-radius: 6px; background: #ff7a59; }
.s-cart { position: relative; display: grid; place-items: center; width: 30px; height: 30px; }
.s-cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-cart b { position: absolute; top: -2px; right: -4px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #c43f25; color: #fff; font-size: 10px; }
.s-cart b.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }
.s-chips { display: flex; gap: 6px; padding: 2px 14px 10px; overflow: hidden; }
.s-chips span { flex-shrink: 0; padding: 5px 10px; border-radius: 999px; background: #ecebe6; font-weight: 600; font-size: 10px; }
.s-chips .on { background: #1d1d1f; color: #fff; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.s-item { position: relative; }
.s-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; }
.s-img--a { background: #ffe3d8; color: #e0623f; }
.s-img--b { background: #dfe6ff; color: #4d63d6; }
.s-img svg { width: 58%; height: 58%; fill: currentColor; }
.s-item p { margin-top: 6px; font-weight: 600; font-size: 10.5px; }
.s-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.s-row b { font-size: 11px; }
.s-add { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d1d1f; color: #fff; font-size: 14px; line-height: 1; }
/* Toque en "+" */
.s-item.is-tap .s-add { animation: tap 600ms var(--ease-out); }
.s-item.is-tap .s-img { animation: lift 600ms var(--ease-out); }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgb(255 122 89 / .6); background: #ff7a59; } 30% { transform: scale(.82); } 100% { box-shadow: 0 0 0 12px rgb(255 122 89 / 0); } }
@keyframes lift { 35% { transform: translateY(-3px); } }
.s-send { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px; padding: 11px; border-radius: 12px; background: #15803d; color: #fff; font-weight: 700; font-size: 11.5px; transition: transform 200ms var(--ease-out); }
.s-send svg { width: 15px; height: 15px; fill: currentColor; }
.stage.is-sending .s-send { transform: scale(.95); }

.chat {
  position: absolute; left: 0; bottom: 0; z-index: 3; width: 250px; padding: 12px; border-radius: 16px;
  background: #efeae2; color: #111b21; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7);
  opacity: 0; transform: translateY(16px) scale(.96); filter: blur(4px);
  transition: opacity 300ms ease, transform 500ms var(--ease-out), filter 300ms ease;
}
.stage.is-sent .chat { opacity: 1; transform: none; filter: none; }
.chat-head { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; }
.chat-head b { display: block; font-size: 13px; line-height: 1.2; }
.chat-head small { display: block; font-size: 11px; color: #54656f; }
.chat-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wa); color: #fff; }
.chat-av svg { width: 17px; height: 17px; fill: currentColor; }
.chat-msg { padding: 9px 10px 6px; border-radius: 4px 10px 10px 10px; background: var(--wa-bubble); font-size: 12px; line-height: 1.5; }
.chat-msg strong { display: block; margin-top: 2px; }
.chat-msg small { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 10px; color: #667781; }
.chat-msg small svg { width: 15px; height: 10px; fill: none; stroke: #53bdeb; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Rubros ---------- */
.range { padding-block: 96px 88px; }
.shelf {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  width: min(100% - 32px, var(--container)); margin: 48px auto 0;
}
.mini { --c: #ff7a59; --c-soft: #ffe3d8; }
.mini--almacen { --c: #2f9e5b; --c-soft: #dcf2e3; }
.mini--ferre { --c: #e09a14; --c-soft: #fcefd2; }
.mini--cosme { --c: #c2577a; --c-soft: #f8dde6; }
.mini-screen { padding: 12px; border-radius: 20px; background: #f8f7f4; color: #1d1d1f; border: 6px solid #05060a; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .8); transition: transform 300ms var(--ease-out); }
.mini-top { display: flex; align-items: center; gap: 7px; padding: 2px 2px 10px; font: 700 12px/1 var(--font-display); }
.mini-top i { width: 16px; height: 16px; border-radius: 5px; background: var(--c); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-grid div { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--c-soft); color: var(--c); }
.mini-grid svg { width: 56%; height: 56%; fill: currentColor; }
.mini > p { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.mini > p b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--heading); letter-spacing: -.01em; }
@media (hover: hover) and (pointer: fine) { .mini:hover .mini-screen { transform: translateY(-4px) rotate(-1deg); } }

/* ---------- Comparación ---------- */
.versus { padding-block: 88px; background: var(--bg-2); border-block: 1px solid var(--border); }
.vs-table { width: 100%; margin-top: 44px; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.vs-table th, .vs-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.vs-table thead th { font: 700 13px/1.3 var(--font); letter-spacing: .02em; color: var(--muted); }
.vs-table tbody th { width: 18%; font: 700 15px/1.4 var(--font-display); color: var(--heading); }
.vs-table tbody td:nth-child(2) { color: var(--muted); }
.vs-table thead th:last-child { border-radius: 12px 12px 0 0; color: var(--heading); }
.vs-table td:last-child, .vs-table thead th:last-child { width: 41%; background: rgb(91 124 255 / .07); color: var(--heading); }
.vs-table tbody td:last-child { font-weight: 600; }
.vs-table tbody tr:last-child td:last-child { border-radius: 0 0 12px 12px; border-bottom: 0; }

/* ---------- Qué incluye y precio ---------- */
.offer { padding-block: 96px; }
.offer-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.checks { display: grid; gap: 22px; margin-top: 36px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; color: var(--muted); }
.checks svg { width: 24px; height: 24px; margin-top: 1px; fill: var(--accent-soft); }
.checks b { display: block; font-size: 16.5px; color: var(--heading); }
.price-card { padding: 36px 32px; border: 1px solid var(--border-strong); border-radius: 20px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9); }
.pc-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.pc-amount { margin-top: 6px; font: 700 clamp(52px, 6vw, 68px)/1 var(--font-display); letter-spacing: -.045em; color: var(--heading); font-variant-numeric: tabular-nums; }
.pc-alt { margin: 10px 0 28px; font-size: 16px; color: var(--text); }
.pc-alt b { color: var(--heading); }
.pc-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Preguntas ---------- */
.faq { padding-block: 88px; border-top: 1px solid var(--border); }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; color: var(--heading); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 250ms var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { padding: 0 32px 22px 0; color: var(--muted); }
.faq-list a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cierre ---------- */
.close { position: relative; overflow: hidden; padding-block: 96px; border-top: 1px solid var(--border); text-align: center; }
.close::before { content: ""; position: absolute; inset: 20% 15% -60%; pointer-events: none; background: radial-gradient(closest-side, rgb(91 124 255 / .22), transparent); }
.close-in { position: relative; display: grid; justify-items: center; gap: 28px; }
.close h2 { max-width: 16ch; font-size: clamp(32px, 4.4vw, 54px); }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
.foot a { color: var(--heading); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 56px; padding-block: 48px 64px; }
  .stage { justify-self: center; }
  .shelf { grid-template-columns: repeat(4, 220px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 20px; width: 100%; margin-top: 36px; scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .mini { scroll-snap-align: center; }
  .offer-in, .faq-in { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .range, .versus, .offer, .faq, .close { padding-block: 64px; }
  .vs-table thead { display: none; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: auto; }
  .vs-table tr { padding: 16px 0; border-bottom: 1px solid var(--border); }
  .vs-table th, .vs-table td { padding: 0; border: 0; background: none; }
  .vs-table tbody th { width: auto; margin-bottom: 8px; }
  .vs-table td:last-child { width: auto; }
  .vs-table td:nth-child(2)::before { content: "WhatsApp: "; font-weight: 700; }
  .vs-table td:last-child { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: rgb(91 124 255 / .1); }
  .vs-table tbody tr:last-child td:last-child { border-radius: 10px; }
  .vs-table td:last-child::before { content: "Tu catálogo: "; color: var(--accent-soft); }
  .price-card { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .top-wa span { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .stage { padding-left: 0; padding-bottom: 150px; }
  .phone { margin-inline: auto; }
  .chat { left: 50%; margin-left: -125px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chat, .mini-screen, .s-send { transition: none; }
  .s-item.is-tap .s-add, .s-item.is-tap .s-img, .s-cart b.bump { animation: none; }
}
