:root {
  --bg: #0b0b0d;
  --panel: #141418;
  --panel-2: #1b1b21;
  --line: #2a2a31;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --red: #e0242f;
  --red-dark: #b81a24;
  --wsp: #25d366;
  --wsp-dark: #1ebe5b;
  --radius: 14px;
  --font-title: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 13, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-family: var(--font-title); font-size: 28px; letter-spacing: 0.04em; text-decoration: none; line-height: 1; }
.logo span { color: var(--red); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-wsp { background: var(--wsp); color: #06210f; }
.btn-wsp:hover { background: var(--wsp-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
}
.kicker { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(52px, 11vw, 112px); line-height: 0.95; text-transform: uppercase; margin: 14px 0 20px; }
.hero h1 span { color: var(--red); }
.lead { max-width: 560px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.tags li { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(32px, 5vw, 44px); letter-spacing: 0.03em; text-transform: uppercase; }
.h2 span { color: var(--red); }
.sub { color: var(--muted); margin-top: 6px; }

/* ---------- Filtros ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip small { opacity: 0.7; margin-left: 4px; font-size: 12px; }

/* ---------- Catálogo ---------- */
.grupo { margin-top: 36px; }
.grupo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.grupo-head h3 { font-family: var(--font-title); font-weight: 400; font-size: 26px; letter-spacing: 0.03em; text-transform: uppercase; }
.badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; align-self: center; }
.grupo-head p { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.card { display: block; text-align: left; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.cover { aspect-ratio: 1 / 1; background: #101014; display: flex; align-items: center; justify-content: center; }
.cover img, .cover svg, .cover canvas { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card-name { font-weight: 700; font-size: 16px; }
.card-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-cta { color: var(--red); font-size: 13px; font-weight: 700; margin-top: 8px; }
.vacio { color: var(--muted); padding: 40px 0; }

/* ---------- Precios ---------- */
.precios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.precio { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.precio h3 { font-size: 18px; font-weight: 700; }
.precio p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.precio .monto { font-family: var(--font-title); font-size: 48px; line-height: 1; color: var(--red); margin-top: 16px; }
.nota { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- Pasos ---------- */
.pasos { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pasos li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-title); font-size: 18px; }
.pasos h3 { font-size: 18px; margin: 14px 0 6px; }
.pasos p { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 96px; background: var(--panel); }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-text { color: var(--muted); margin-top: 10px; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px; }
.copy { color: var(--muted); font-size: 12px; margin-top: 28px; }

.float-wsp { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--wsp); color: #06210f; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.float-wsp svg { width: 30px; height: 30px; }
.float-wsp:hover { background: var(--wsp-dark); }

/* ---------- Visor ---------- */
dialog { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0; border-radius: 18px; width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.visor-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; cursor: pointer; }
.cerrar:hover { border-color: var(--text); }
.cerrar svg { width: 20px; height: 20px; }
.visor-img { background: #101014; min-height: 320px; display: flex; align-items: center; justify-content: center; transition: opacity 0.15s; }
.visor-img.cargando { opacity: 0.55; }
.visor-img img, .visor-img svg, .visor-img canvas { width: 100%; height: 100%; max-height: calc(100dvh - 26px); object-fit: contain; }
.visor-info { padding: 28px 26px 26px; display: flex; flex-direction: column; }
.visor-info h3 { font-family: var(--font-title); font-weight: 400; font-size: 32px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; margin: 6px 0 8px; padding-right: 40px; }
.visor-desc { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 20px; }
.color-nombre { font-weight: 700; font-size: 15px; text-align: right; }

.seg { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 14px; font-weight: 700; cursor: pointer; }
.seg button:hover { border-color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; max-height: 270px; overflow: auto; padding: 4px; margin-left: -4px; }
.sw { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); cursor: pointer; flex: none; }
.sw:hover { transform: scale(1.1); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--red); }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 20px; }
.desde { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .visor-grid { grid-template-columns: 1fr; }
  .visor-img { min-height: 0; aspect-ratio: 1 / 1; }
  .visor-info { padding: 20px 18px 22px; }
  .swatches { max-height: none; overflow: visible; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- clientes (fotos 9:16) ---------- */
.clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.cliente { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #101014; border: 1px solid var(--line); color: #fff; text-decoration: none; }
a.cliente:hover { border-color: var(--red); }
.cliente-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cliente-foto.ini { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #1c1c22, #101014); color: var(--red); font-family: var(--font-title); font-size: 64px; letter-spacing: 0.04em; }
.cliente-pie { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 16px 16px; background: linear-gradient(to top, rgba(0,0,0,.88), transparent); }
.cliente-nombre { font-weight: 700; font-size: 16px; }
.cliente-detalle { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }
@media (max-width: 640px) { .clientes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cliente-foto.ini { font-size: 44px; } .cliente-pie { padding: 40px 12px 12px; } .cliente-nombre { font-size: 14px; } }
