/* Fuentes (SIL Open Font License, ver assets/fonts/OFL*.txt) */
@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/fonts/roboto-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/fonts/roboto-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* tjprint3d.com - tema oscuro con acentos naranja.
   Lenguaje visual: la cama de impresión (rejilla de puntos), placas con una
   esquina chaflanada como el hexágono del logo, y líneas de capa como motivo. */
:root {
  --bg: #141517;
  --bg-deep: #0e0e0f;
  --surface: #1c1d1f;
  --surface-2: #242527;
  --field: #1f2022;
  --line: #303134;
  --line-2: #45464a;
  --text: #f3f3f3;
  --soft: #d6d6d8;
  --muted: #a9a9ae;
  --brand: #ec4a24;       /* naranja-rojo de la marca */
  --brand-bright: #ff5d2f;
  --brand-dark: #c93a18;
  --glow: rgba(236, 74, 36, 0.55);
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --ok: #4cc77f;
  --err: #ff6b5a;
  --cut: 18px;            /* tamaño del chaflán de las placas */
  --max: 1140px;
  --layers: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px);
  color-scheme: dark;
  font-family: var(--body);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; font-size: 1.06rem;
  overflow-x: clip; position: relative; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 240px 240px,
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 240px 240px,
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.6px) 0 0 / 24px 24px; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-bright); }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
h1, h2, h3 { line-height: 0.98; margin: 0 0 0.5em; font-family: var(--display); font-weight: 400;
  letter-spacing: 0.012em; text-transform: uppercase; color: #fff; }
h1, .title { font-size: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h3 { font-size: 1.9rem; }
/* Marca de capas bajo los títulos */
h1::after, h2::after { content: ""; display: block; width: 58px; height: 12px; margin-top: 14px;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0 / 58px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 5px / 38px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 10px / 18px 2px no-repeat; }
.hero h1::after, .no-rule::after { display: none; }
.eyebrow { color: var(--soft); font-size: 1.12rem; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 12px; height: 14px; flex: none; background: var(--brand);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 88px 0; position: relative; isolation: isolate; overflow-x: clip; }
.section-tight { padding-top: 48px; }
.section-alt { background: rgba(0, 0, 0, 0.32); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.lead { color: var(--soft); font-size: 1.22rem; margin: 0 0 26px; max-width: 60ch; line-height: 1.4; }
.center { text-align: center; }
.more { margin-top: 44px; }
.note { font-size: 0.95rem; margin-top: 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sec-head { margin-bottom: 44px; }
.sec-head .lead { margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.side-title { font-size: 2rem; margin: 0 0 18px; }

/* ---------- Encabezado ---------- */
.site-header { background: rgba(14, 14, 15, 0.9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: min(38vw, 420px);
  background: linear-gradient(90deg, var(--brand), transparent); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo img { height: 44px; width: auto; }
.logo span { font-family: var(--display); font-size: 1.8rem; letter-spacing: 0.02em; line-height: 1; }
.logo b { font-weight: 400; color: var(--brand); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--soft); text-decoration: none; font-size: 1.06rem; padding: 6px 11px; position: relative; border-radius: 4px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -15px; height: 2px; background: var(--brand); }
/* Cotizar destaca en el menú como acción principal */
.nav a[href="/cotizar"] { order: 99; margin-left: 12px; background: var(--brand); color: #fff; font-weight: 700; padding: 7px 16px; border-radius: 6px; }
.nav a[href="/cotizar"]:hover { background: var(--brand-bright); }
.nav a[href="/cotizar"][aria-current="page"]::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #fff; }
/* En móvil, "Cotizar" queda siempre a la vista junto al menú */
.header-actions { display: contents; }
.nav-cta { display: none; background: var(--brand); color: #fff; font-weight: 700; padding: 7px 14px; border-radius: 6px; text-decoration: none; }
.nav-cta:hover { background: var(--brand-bright); }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-actions { display: flex; align-items: center; gap: 14px; }
  .nav-cta { display: inline-block; }
  .nav a[href="/cotizar"] { display: none; }
  .nav { display: none; position: absolute; top: 69px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
         background: var(--bg-deep); padding: 12px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav a[href="/cotizar"] { margin: 8px 0 0; text-align: center; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
}

/* ---------- Botones (sin cambios de diseño) ---------- */
.btn { display: inline-block; padding: 11px 26px; border-radius: 8px; font-family: var(--display); font-size: 1.3rem;
  letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; text-align: center; line-height: 1.1;
  border: 2px solid transparent; cursor: pointer; color: #fff; transition: background 0.15s, box-shadow 0.15s, border-color 0.15s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 18px rgba(236, 74, 36, 0.35); }
.btn-primary:hover { background: var(--brand-bright); box-shadow: 0 4px 24px var(--glow); }
.btn-outline { border-color: var(--brand); color: #fff; background: rgba(0, 0, 0, 0.25); }
.btn-outline:hover { background: rgba(236, 74, 36, 0.14); box-shadow: 0 0 16px rgba(236, 74, 36, 0.35); }
.btn-pill { border-radius: 999px; font-family: var(--body); text-transform: none; font-size: 1.15rem; letter-spacing: 0;
  padding: 12px 26px; border: 2px solid rgba(236, 74, 36, 0.7); color: var(--brand-bright); background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 18px rgba(236, 74, 36, 0.3), inset 0 0 12px rgba(236, 74, 36, 0.12); }
.btn-pill:hover { box-shadow: 0 0 26px var(--glow), inset 0 0 12px rgba(236, 74, 36, 0.2); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-glow { font-family: var(--body); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1.3rem;
  padding: 14px 28px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #ff6a3a, var(--brand) 60%, var(--brand-dark));
  box-shadow: 0 0 0 1px rgba(255, 140, 100, 0.3) inset, 0 0 24px rgba(236, 74, 36, 0.55), 0 0 60px rgba(236, 74, 36, 0.2); }
.btn-glow:hover { background: linear-gradient(180deg, #ff7a4d, var(--brand-bright) 60%, var(--brand)); box-shadow: 0 0 34px var(--glow), 0 0 80px rgba(236, 74, 36, 0.3); }
.hw-btn { font-family: var(--body); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1.7rem;
  padding: 16px 48px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #ff6a3a, var(--brand) 60%, var(--brand-dark));
  box-shadow: 0 0 0 1px rgba(255, 140, 100, 0.35) inset, 0 0 30px rgba(236, 74, 36, 0.6), 0 0 70px rgba(236, 74, 36, 0.25); }
.hw-btn:hover { background: linear-gradient(180deg, #ff7a4d, var(--brand-bright) 60%, var(--brand)); box-shadow: 0 0 40px var(--glow), 0 0 90px rgba(236, 74, 36, 0.35); }

/* ---------- Placas (superficie con esquina chaflanada) ---------- */
.card { position: relative; padding: 26px; border-radius: 0;
  background: linear-gradient(225deg, transparent 12px, var(--line-2) 12px 13.4px, var(--surface) 13.4px);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.card p { color: var(--soft); }
.badge { display: inline-block; font-family: var(--body); font-size: 0.9rem; letter-spacing: 0; text-transform: none; vertical-align: middle;
  padding: 3px 9px; border-radius: 3px; color: #eee; background: rgba(20, 20, 22, 0.85); border: 1px solid #5a5a5e; }
.badge.hot { border-color: var(--brand); color: #fff; background: rgba(236, 74, 36, 0.22); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 38px; margin: 0 0 16px; color: var(--soft); font-size: 1.12rem; line-height: 1.38; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23ff5d2f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='15' cy='15' r='12.5'/%3E%3Cpath d='M9.5 15.5l3.8 3.8 7.4-8'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 40px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent); }
.page-head::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 30px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.page-head h1 { margin-bottom: 20px; }
.page-head .lead { margin: 0; }
.page-head-photo { padding: clamp(110px, 16vw, 200px) 0 44px; }
.ph-photo { position: absolute; z-index: -1; inset: 0; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-photo::after { content: ""; position: absolute; inset: 0;
  background: var(--layers), linear-gradient(0deg, var(--bg) 4%, rgba(20, 21, 23, 0.7) 45%, rgba(20, 21, 23, 0.25)); }
.page-head-photo h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }

/* ---------- Portada ---------- */
.hero { background: #0a0a0a; color: #fff; }
.hero-logo { width: 96px; height: auto; margin-bottom: 26px; filter: drop-shadow(0 10px 24px rgba(236, 74, 36, 0.3)); }
.hero-taller { position: relative; overflow: hidden; min-height: min(92vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  padding: 96px 0 0; border-bottom: 1px solid var(--line); }
.hero-taller .scene { position: absolute; inset: 0; z-index: -1; }
.hero-taller .scene-inner { position: absolute; inset: 0; }
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 70% center; }
.hero-taller .scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    var(--layers),
    linear-gradient(90deg, rgba(8, 8, 9, 0.95) 0%, rgba(8, 8, 9, 0.78) 34%, rgba(8, 8, 9, 0.1) 64%, transparent 80%),
    linear-gradient(0deg, rgba(8, 8, 9, 0.9), transparent 30%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; }
.hero-content > * { max-width: 560px; }
.hero-content h1 { position: relative; max-width: 720px; font-size: clamp(3.6rem, 10vw, 8.2rem); line-height: 0.86; margin-bottom: 26px;
  color: #fff; background: repeating-linear-gradient(180deg, #fff 0 0.075em, rgba(255, 255, 255, 0.62) 0.075em 0.09em);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.55)); }
.hero p { font-size: 1.22rem; max-width: 520px; color: var(--soft); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-content h1 { animation: print-up 1.5s steps(18, end) 0.15s both; }
  .hero-content h1::after { display: block; content: ""; position: absolute; left: -2%; right: -2%; height: 2px; margin: 0; width: auto;
    background: var(--brand-bright); box-shadow: 0 0 12px 2px var(--glow);
    animation: nozzle 1.5s steps(18, end) 0.15s both; }
}
@keyframes print-up { from { clip-path: inset(100% -5% -5% -5%); } to { clip-path: inset(-5% -5% -5% -5%); } }
@keyframes nozzle { 0% { top: 100%; opacity: 1; } 92% { top: 0; opacity: 1; } 100% { top: 0; opacity: 0; } }
/* Barra de especificaciones, como la ficha técnica de la impresora */
.spec-wrap { position: relative; z-index: 1; width: 100%; }
.spec-bar { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spec-bar div { padding: 18px 20px 20px; }
.spec-bar div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.spec-bar div:first-child { box-shadow: inset 0 2px 0 var(--brand); }
.spec-bar dt { color: var(--muted); font-size: 0.98rem; }
.spec-bar dd { margin: 2px 0 0; color: #fff; font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
@media (max-width: 820px) {
  .hero-logo { width: 84px; }
  .hero-taller { min-height: 0; display: block; padding: 290px 0 0; }
  .hero-taller .scene { bottom: auto; height: 400px; }
  .hero-taller .scene::after { background: var(--layers), linear-gradient(0deg, var(--bg) 0%, rgba(20, 21, 23, 0.6) 30%, transparent 60%); }
  .hero-taller .hero-logo { display: none; }
  .hero-content { padding-bottom: 36px; }
  .spec-bar { grid-template-columns: 1fr 1fr; background: var(--surface); }
  .spec-bar div:nth-child(3) { border-left: 0; }
  .spec-bar div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* Así de fácil: cada paso muestra un trozo de la interfaz real */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.how-step { position: relative; }
.how-step h3 { font-size: 2.1rem; margin: 0 0 8px; }
.how-step p { margin: 0; color: var(--soft); max-width: 32ch; }
.how-num { display: inline-grid; place-items: center; width: 38px; height: 42px; margin: 22px 0 14px; background: var(--brand); color: #fff;
  font-family: var(--display); font-size: 1.55rem; padding-top: 3px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
/* Trayectoria que une los números */
.how-step::after { content: ""; position: absolute; left: 50px; right: -14px; top: calc(196px + 22px + 21px); border-top: 2px dashed var(--line-2); }
.how-step:last-child::after { display: none; }
.how-step:first-child::after { border-top-style: solid; border-color: var(--brand); }
.mock { height: 196px; padding: 20px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.6px) 0 0 / 16px 16px, var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.mock-drop { width: 100%; max-width: 270px; border: 1.5px dashed var(--line-2); border-radius: 6px; padding: 14px 16px; text-align: center; background: rgba(0, 0, 0, 0.3); }
.mock-ico { width: 52px; height: 52px; color: #cfcfd3; margin: 0 auto 8px; display: block; }
.mock-file { display: flex; justify-content: space-between; gap: 10px; font-size: 0.95rem; margin-bottom: 8px; }
.mock-file b { color: #fff; font-weight: 700; }
.mock-file span { color: var(--muted); }
.mock-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-dark), var(--brand-bright)); }
.mock-config { width: 100%; max-width: 270px; display: grid; gap: 12px; }
.mock-pills { display: flex; gap: 6px; }
.mock-pills span { flex: 1; text-align: center; padding: 5px 0; font-size: 0.95rem; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }
.mock-pills .on { border-color: var(--brand); color: #fff; background: rgba(236, 74, 36, 0.18); }
.mock-dots { display: flex; gap: 8px; }
.mock-dots i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); }
.mock-dots .on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--brand); }
.mock-price { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 12px; background: #050505; box-shadow: inset 0 2px 0 var(--brand); }
.mock-price span { color: var(--muted); font-size: 0.95rem; }
.mock-price b { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--brand-bright); line-height: 1; }
.mock-track { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 230px; }
.mock-track li { position: relative; padding: 0 0 12px 26px; font-size: 1rem; color: rgba(255, 255, 255, 0.4); }
.mock-track li:last-child { padding-bottom: 0; }
.mock-track li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.mock-track li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 2px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.mock-track .done { color: #ececee; }
.mock-track .done::before { background: #e59a7f; border-color: #e59a7f; }
.mock-track .on { color: #fff; font-weight: 700; }
.mock-track .on::before { background: var(--brand-bright); border-color: var(--brand-bright); box-shadow: 0 0 8px var(--glow); }
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; gap: 44px; }
  .how-step::after { display: none; }
  .mock { height: 170px; }
}

/* Materiales en la portada: filas comparables con medidores */
.mat-list { display: grid; gap: 12px; }
.mat-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 330px); gap: 28px; align-items: center; text-decoration: none; color: inherit;
  padding: 12px 24px 12px 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background 0.2s;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.mat-row:hover, .mat-row:focus-visible { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand); outline: none; }
.mat-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mat-info h3 { font-size: 2.4rem; margin: 0 0 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mat-info p { margin: 0; color: var(--soft); }
.meters { margin: 0; display: grid; gap: 9px; }
.meters div { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.meters dt { color: var(--muted); font-size: 0.98rem; }
.meters dd { margin: 0; }
.m { display: block; height: 9px;
  background: linear-gradient(90deg, var(--brand) calc(var(--v) * 20%), var(--line-2) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%);
  mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%); }
@media (max-width: 900px) {
  .mat-row { grid-template-columns: 150px minmax(0, 1fr); padding-right: 18px; }
  .meters { grid-column: 1 / -1; padding: 0 0 8px 6px; }
}
@media (max-width: 520px) {
  .mat-row { grid-template-columns: 1fr; gap: 16px; padding: 0 0 18px; }
  .mat-row > :not(img) { padding: 0 18px; }
}

/* ¿Por qué? foto + lista */
.why-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.why-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-photo::after { content: ""; position: absolute; inset: 0; background: var(--layers), linear-gradient(0deg, rgba(20, 21, 23, 0.6), transparent 50%); }
.why-list { list-style: none; margin: 34px 0 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list svg { width: 46px; height: 46px; fill: none; stroke: var(--brand-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-list h3 { font-size: 2rem; margin: 0 0 4px; }
.why-list p { margin: 0; color: var(--soft); }
@media (max-width: 860px) {
  .why-in { grid-template-columns: 1fr; gap: 36px; }
  .why-photo { aspect-ratio: 16 / 10; }
}

/* Llamada final: una cama de impresión que lleva al cotizador */
.cta-sec { padding-top: 0; }
.cta-plate { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px 40px; text-decoration: none; color: inherit;
  border: 2px dashed var(--line-2); border-radius: 8px; transition: border-color 0.2s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1.6px) 0 0 / 20px 20px,
              radial-gradient(ellipse at 20% 50%, rgba(236, 74, 36, 0.16), transparent 60%), #17181a; }
.cta-plate:hover, .cta-plate:focus-visible { border-color: var(--brand); outline: none; }
.cta-ico { width: 84px; height: 84px; color: #d0d0d0; }
.cta-text strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: #fff; text-transform: uppercase; margin-bottom: 6px; }
.cta-text span { color: var(--soft); font-size: 1.15rem; }
@media (max-width: 720px) {
  .cta-plate { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; gap: 16px; }
  .cta-ico { margin: 0 auto; }
}

/* ---------- Catálogo ---------- */
.toolbar { position: sticky; top: 68px; z-index: 5; margin: 0 0 30px; background: rgba(20, 21, 23, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 0; }
.chip { font: inherit; font-size: 1.12rem; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; padding: 12px 18px; cursor: pointer; }
.chip:hover { color: #fff; }
.chip.active { color: #fff; border-bottom-color: var(--brand); }
.products { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.product[hidden] { display: none; }
.product-img { position: relative; overflow: hidden; background: #111; }
.product-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.product:hover .product-img img { transform: scale(1.04); }
.cat { position: absolute; left: 14px; bottom: 14px; font-size: 0.92rem; padding: 3px 10px; border-radius: 3px; color: #fff;
  background: rgba(10, 10, 11, 0.8); border: 1px solid rgba(255, 255, 255, 0.2); }
.product .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product h2 { font-size: 2rem; margin-bottom: 8px; }
.product h2::after { display: none; }
.product p { font-size: 1.02rem; color: var(--soft); margin: 0 0 18px; }
.product .buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.product .price { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: #fff; margin: 0; }
.price small { display: block; font-family: var(--body); font-size: 0.92rem; color: var(--muted); margin-top: 4px; }
.price small:first-child { margin: 0 0 4px; }
.product .buy .btn { padding: 9px 18px; flex: none; }
.custom-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 32px 28px; min-height: 320px;
  text-decoration: none; color: inherit; border: 2px dashed var(--line-2); border-radius: 6px; transition: border-color 0.2s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.6px) 0 0 / 20px 20px, #17181a; }
.custom-card:hover, .custom-card:focus-visible { border-color: var(--brand); outline: none; }
.custom-card svg { width: 70px; height: 70px; color: #d0d0d0; }
.custom-card strong { font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; text-transform: uppercase; color: #fff; }
.custom-card span { color: var(--soft); }

/* ---------- Formularios ---------- */
label { display: block; margin: 16px 0 6px; color: #f1f1f1; font-size: 1.05rem; }
label small { color: var(--muted); }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 4px;
  font: inherit; background: var(--field); color: var(--text); }
input::placeholder, textarea::placeholder { color: #75767b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(236, 74, 36, 0.2); }
select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23ec4a24' stroke-width='2'/%3E%3C/svg%3E") right 14px center no-repeat; }
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 14px; border-radius: 4px; margin-top: 16px; border: 1px solid; border-left-width: 3px; }
.alert.ok { background: rgba(76, 199, 127, 0.1); color: var(--ok); border-color: rgba(76, 199, 127, 0.35); border-left-color: var(--ok); }
.alert.err { background: rgba(255, 107, 90, 0.1); color: var(--err); border-color: rgba(255, 107, 90, 0.4); border-left-color: var(--err); }
.captcha { margin: 18px 0 0; min-height: 65px; }
.form-foot { font-size: 0.98rem; margin: 18px 0 0; }

/* ---------- Cotizador ---------- */
.page-head-quote { padding-bottom: 34px; }
.page-head-quote h1 { margin-bottom: 26px; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 1.1rem; }
.stepper li + li::before { content: ""; width: 44px; height: 0; border-top: 2px dashed var(--line-2); margin: 0 14px; }
.stepper span { display: inline-grid; place-items: center; width: 28px; height: 31px; background: var(--surface-2); color: #fff;
  font-family: var(--display); font-size: 1.2rem; padding-top: 2px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.stepper li:first-child span { background: var(--brand); }
@media (max-width: 620px) { .stepper { flex-direction: column; gap: 10px; } .stepper li + li::before { display: none; } }
.quote-layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.quote-side { position: sticky; top: 92px; }
@media (max-width: 920px) { .quote-layout { grid-template-columns: 1fr; } .quote-side { position: static; } }
.drop-panel { position: relative; border: 1.5px dashed var(--line-2); border-radius: 6px; padding: 18px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1.6px) 0 0 / 20px 20px,
    radial-gradient(ellipse at 50% 85%, rgba(236, 74, 36, 0.14), transparent 60%),
    #17181a;
  transition: border-color 0.2s, box-shadow 0.2s; min-height: 480px; display: flex; flex-direction: column; }
.drop-panel::before { content: ""; position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0 / 18px 2px, linear-gradient(var(--brand), var(--brand)) 0 0 / 2px 18px,
    linear-gradient(var(--brand), var(--brand)) 100% 0 / 18px 2px, linear-gradient(var(--brand), var(--brand)) 100% 0 / 2px 18px,
    linear-gradient(var(--brand), var(--brand)) 0 100% / 18px 2px, linear-gradient(var(--brand), var(--brand)) 0 100% / 2px 18px,
    linear-gradient(var(--brand), var(--brand)) 100% 100% / 18px 2px, linear-gradient(var(--brand), var(--brand)) 100% 100% / 2px 18px;
  background-repeat: no-repeat; opacity: 0.8; }
.drop-panel::after { content: "Cama 256 × 256 mm"; position: absolute; right: 20px; bottom: 16px; color: var(--muted); font-size: 0.9rem; pointer-events: none; }
.drop-panel.drag { border-color: var(--brand); box-shadow: 0 0 24px var(--glow); }
.dropzone { position: relative; text-align: center; cursor: pointer; padding: 6px 10px 10px; border-radius: 4px; color: #f1f1f1; }
.dropzone:focus-visible { outline: 2px solid var(--brand); }
.dropzone .icon { width: 84px; height: 84px; margin: 0 auto 12px; color: #d0d0d0; }
.dropzone strong { font-weight: 400; font-size: 1.25rem; display: block; line-height: 1.3; }
.dropzone small { display: block; color: var(--muted); font-size: 0.98rem; margin: 8px auto 0; line-height: 1.35; max-width: 42ch; }
.drop-panel:not(.has-model) .dropzone { margin: auto 0; }
.drop-panel.has-model .dropzone { display: flex; align-items: center; gap: 12px; text-align: left; padding: 4px 8px 12px; }
.drop-panel.has-model .dropzone .icon { width: 40px; height: 40px; margin: 0; flex: none; }
.drop-panel.has-model .dropzone strong { font-size: 1.05rem; }
.drop-panel.has-model .dropzone small { display: none; }
#viewer { position: relative; width: 100%; display: none; flex: 1; min-height: 240px; border-radius: 4px; overflow: hidden; cursor: grab; }
#viewer canvas { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); overflow: hidden; }
.stats div { padding: 14px 8px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.stats small { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 520px) { .stats strong { font-size: 0.95rem; } .stats small { font-size: 0.85rem; } }
.options { padding: 24px 24px 22px; }
.options .side-title { margin-bottom: 4px; }
.side-help { margin: 16px 0 0; font-size: 1rem; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatches button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 1rem; color: #eee;
  border: 1px solid var(--line-2); background: var(--field); border-radius: 4px; padding: 5px 11px 5px 7px; cursor: pointer; }
.color-swatches button:hover { border-color: var(--brand); }
.color-swatches .dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); flex: none; }
.color-swatches button.active { border-color: var(--brand); background: rgba(236, 74, 36, 0.14); }
.color-swatches button.active .dot { box-shadow: 0 0 0 2px var(--field), 0 0 0 3.5px var(--brand); }
.total-box { margin-top: 12px; color: #fff; padding: 22px 24px 24px;
  background: var(--layers), #050505;
  box-shadow: inset 0 0 0 1px rgba(236, 74, 36, 0.6), inset 0 3px 0 var(--brand);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.total-box .label { font-size: 1.15rem; color: var(--soft); }
.total-box .amount { font-family: var(--display); font-size: clamp(3.2rem, 7vw, 4.4rem); line-height: 1; color: var(--brand-bright); margin: 6px 0 8px; }
.total-box small { font-size: 1.02rem; color: #f1f1f1; }
.order-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; margin-top: 96px;
  padding-top: 56px; border-top: 1px solid var(--line); }
.order-title { margin: 0 0 28px; font-size: clamp(2.6rem, 4.6vw, 3.6rem); }
.order-form { padding: 22px 26px 26px; }
.order-form .form-row label { margin-top: 0; }
.order-form .form-row + .form-row { margin-top: 16px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 0; }
.form-actions small { font-size: 0.98rem; }
@media (max-width: 920px) { .order-wrap { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; } }

/* ---------- Materiales ---------- */
.lattice::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("/assets/img/materiales/fondo-giroide.webp") left top / min(34vw, 520px) auto no-repeat,
    url("/assets/img/materiales/fondo-radial.webp") right top / min(30vw, 460px) auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.3) 24%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.3) 76%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.3) 24%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.3) 76%, #000 100%);
  opacity: 0.55; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { color: var(--soft); text-decoration: none; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(20, 21, 23, 0.8); }
.jump a:hover { color: #fff; border-color: var(--brand); }
.tech-head, .tech-row { display: grid; grid-template-columns: 210px repeat(3, minmax(0, 1fr)); gap: 28px; }
.tech-head { padding: 0 24px 12px; color: var(--muted); font-size: 1rem; }
.tech-list { display: grid; gap: 12px; }
.tech-row { align-items: center; padding: 18px 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 96px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.tech-row:target { box-shadow: inset 0 0 0 1px var(--brand); }
.tech-name { display: flex; align-items: center; gap: 16px; }
.tech-name .cube { width: 74px; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.7)); flex: none; }
.tech-name h2 { font-size: 2.3rem; margin: 0; }
.tech-row p { margin: 0; color: var(--soft); line-height: 1.38; }
.tech-row .tag { display: none; }
.tech-row .warn { padding-left: 16px; border-left: 2px solid rgba(255, 120, 80, 0.7); }
.tech-row .warn p { color: #f1d2c8; }
.tag { display: inline-block; font-weight: 700; font-size: 0.95rem; padding: 1px 9px; border-radius: 3px; margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.tag-warn { border-color: rgba(255, 120, 80, 0.9); }
@media (max-width: 900px) {
  .tech-head { display: none; }
  .tech-row { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .tech-row .tag { display: inline-block; }
  .tech-row .warn { padding-left: 0; border-left: 0; }
}
.quality-panel { padding: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.quality-slider { display: grid; grid-template-columns: 110px 1fr 110px; gap: 18px; align-items: center; margin-bottom: 24px; }
.layer-thumb { width: 110px; height: auto; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.18); }
.slider-labels { display: flex; justify-content: space-between; font-size: 1.2rem; color: #f1f1f1; margin: 0 -18px 6px; }
.slider-labels span { width: 80px; text-align: center; }
.slider input[type=range] { --pos: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 16px; padding: 0; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 10px) right / calc(100% - var(--pos)) 100% no-repeat,
    linear-gradient(90deg, var(--brand-dark), var(--brand-bright)) left / var(--pos) 100% no-repeat,
    #232325;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 14px rgba(236, 74, 36, 0.25); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--brand-bright) 45%, var(--brand)); box-shadow: 0 0 0 3px rgba(236, 74, 36, 0.35), 0 0 18px var(--brand-bright); }
.slider input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--brand-bright) 45%, var(--brand)); box-shadow: 0 0 0 3px rgba(236, 74, 36, 0.35), 0 0 18px var(--brand-bright); }
.slider input[type=range]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.quality-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.quality-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 4px; cursor: pointer;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.quality-item.active { border-color: var(--brand); background: rgba(236, 74, 36, 0.1); }
.q-num { font-family: var(--display); font-size: 4rem; line-height: 0.85; color: var(--brand); }
.quality-item h3 { font-size: 2rem; margin: 0 0 2px; }
.quality-item p { margin: 0; color: var(--soft); }
@media (max-width: 760px) { .quality-grid { grid-template-columns: 1fr; } .quality-slider { grid-template-columns: 64px 1fr 64px; gap: 10px; } .layer-thumb { width: 64px; } .slider-labels { font-size: 1rem; margin: 0 -8px 6px; } .slider-labels span { width: 60px; } }

/* ---------- Cómo funciona ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.flow-photo { position: sticky; top: 100px; aspect-ratio: 844 / 1136; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.flow-photo img { width: 100%; height: 100%; object-fit: cover; }
.flow-photo::after { content: ""; position: absolute; inset: 0; background: var(--layers); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline li { counter-increment: t; position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center;
  padding: 0 0 44px 64px; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 44px; padding-top: 3px;
  background: var(--brand); color: #fff; font-family: var(--display); font-size: 1.6rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.timeline li::after { content: ""; position: absolute; left: 19px; top: 52px; bottom: 8px; border-left: 2px dashed var(--line-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.tl-icon { width: 120px; height: auto; overflow: visible; }
.tl-icon .g { stroke: #bfc0c5; }
.tl-icon .o { stroke: var(--brand-bright); }
.timeline h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--soft); font-size: 1.15rem; max-width: 40ch; }
.prep { margin-top: 56px; padding: 28px 30px; background: var(--layers), var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--brand);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.prep h2 { font-size: 2.2rem; margin: 0 0 20px; }
.prep .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.flow-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 40px 0 0; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow-photo { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .timeline li { grid-template-columns: 1fr; gap: 12px; padding-left: 60px; }
  .tl-icon { width: 96px; }
  .prep .checks { grid-template-columns: 1fr; }
}

/* ---------- Contacto y Mi pedido ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.split-track { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 860px) { .split, .split-track { grid-template-columns: 1fr; gap: 32px; } }
.channels { display: grid; gap: 12px; }
.channel { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px 20px; text-decoration: none; color: inherit;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background 0.2s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.channel:hover, .channel:focus-visible { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand); outline: none; }
.channel svg { width: 52px; height: 52px; padding: 13px; border-radius: 50%; fill: var(--brand-bright); background: rgba(236, 74, 36, 0.12); }
.channel-wa svg { fill: #25d366; background: rgba(37, 211, 102, 0.12); }
.channel strong { display: block; color: #fff; font-size: 1.18rem; }
.channel small { color: var(--muted); font-size: 1rem; }
.ct-form .form-row label { margin-top: 0; }
.ct-form .side-title { margin-bottom: 14px; }
.ct-form textarea { min-height: 170px; }
.ct-form p:last-of-type { margin: 22px 0 0; }
.pd-form p { margin: 24px 0 0; }
.pd-form p.form-foot { margin-top: 18px; }
.pd-form input { font-size: 1.15rem; }
.track-panel { padding: 6px 0 0; }
.pd-steps { list-style: none; margin: 0; padding: 0; }
.pd-steps li { position: relative; display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 0 0 26px; color: rgba(255, 255, 255, 0.45); }
.pd-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; border-left: 2px solid var(--line); }
.pd-steps li.done:not(:last-child)::after { border-color: rgba(229, 154, 127, 0.6); }
.pd-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 4px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pd-ico svg { width: 100%; height: 100%; }
.pd-txt b { display: block; font-size: 1.15rem; }
.pd-txt small { display: block; font-size: 1rem; color: inherit; opacity: 0.85; }
.pd-steps li.done { color: #ececee; }
.pd-steps li.done .pd-ico { color: #e59a7f; }
.pd-steps li.active { color: #fff; }
.pd-steps li.active .pd-ico { color: #fff; background: var(--brand); box-shadow: 0 0 14px var(--glow); }

/* ---------- Preguntas frecuentes y textos ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-side .stack { display: grid; gap: 10px; margin: 20px 0 0; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-side { position: static; } }
details { border-bottom: 1px solid var(--line); color: var(--soft); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; color: #fff; font-size: 1.2rem; padding: 20px 40px 20px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--brand-bright); }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--brand), var(--brand)) center / 16px 2px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2px 16px no-repeat;
  transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -4px 0 22px; max-width: 62ch; font-size: 1.1rem; }
.prose { max-width: 760px; }
.prose h2 { font-size: 2.2rem; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h2::after { display: none; }
.prose p { color: var(--soft); font-size: 1.12rem; max-width: 66ch; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th { background: #0a0a0a; color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.03em; border-bottom: 2px solid var(--brand); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td { color: var(--soft); }
.table-wrap { overflow-x: auto; border-radius: 4px; border: 1px solid var(--line); }
.nf { padding: 120px 0 80px; }
.nf-code { font-family: var(--display); font-size: clamp(8rem, 26vw, 16rem); line-height: 0.8; margin: 0 0 10px; color: transparent;
  -webkit-text-stroke: 2px var(--line-2); background: repeating-linear-gradient(180deg, rgba(236, 74, 36, 0.6) 0 2px, transparent 2px 8px);
  -webkit-background-clip: text; background-clip: text; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--bg-deep); color: var(--muted); padding: 56px 0 24px; margin-top: 56px; border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px); }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: var(--brand-bright); }
.site-footer strong { color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.03em; }
.site-footer .grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.site-footer .copy { text-align: center; font-size: 0.92rem; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-footer .copy a { color: var(--brand-bright); text-decoration: underline; text-underline-offset: 2px; }
.whatsapp { position: fixed; right: 18px; bottom: 18px; background: #25d366; color: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: grid; place-items: center; text-decoration: none; z-index: 30;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(37, 211, 102, 0.18); }
.whatsapp svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp:hover { transform: scale(1.06); }

/* ---------- Accesibilidad y uso en móvil ---------- */
/* Enlace "Saltar al contenido": aparece solo al llegar con el teclado */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 6px;
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Campos obligatorios */
.req { color: var(--brand-bright); font-weight: 700; }
.req-note, .pd-form p.req-note, .ct-form p.req-note { margin: -6px 0 14px; color: var(--muted); font-size: 0.98rem; }
/* Controles táctiles de al menos 44 px */
.nav-toggle { min-width: 44px; min-height: 44px; display: none; place-items: center; }
.nav-cta { min-height: 44px; display: none; align-items: center; }
.color-swatches button { min-height: 44px; }
.jump a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: inline-flex; }
}
/* Enlaces del pie: cada uno con 28 px de alto para no pulsar el de al lado */
.site-footer p a { display: inline-block; padding: 4px 0; }
.site-footer p { line-height: 1.5; }
/* El botón de WhatsApp no tapa el final de la página */
@media (max-width: 760px) { .site-footer { padding-bottom: 92px; } }

/* ---------- Cotizador: pasos que avanzan, aviso junto al botón ---------- */
.stepper li { transition: color 0.25s; }
.stepper li span { position: relative; transition: background-color 0.25s, color 0.25s, transform 0.25s; }
.stepper li + li::before { transition: border-color 0.3s; }
.stepper li:first-child span { background: var(--surface-2); }   /* el estado lo dan las clases */
.stepper li.active { color: #fff; font-weight: 700; }
.stepper li.active span { background: var(--brand); }
.stepper li.active span { transform: scale(1.15); }
.stepper li.done { color: var(--soft); }
.stepper li.done span { background: var(--brand-dark); color: transparent; }
.stepper li.done span::before { content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.stepper li.done + li::before, .stepper li.done + li.active::before { border-top-style: solid; border-color: var(--brand); }
/* Zona de carga: se resalta cuando falta el archivo */
.drop-panel.attn { border-color: var(--brand); border-style: solid; }
@media (prefers-reduced-motion: no-preference) {
  .drop-panel.attn { animation: attn 0.9s ease-out 2; }
}
@keyframes attn { 0% { box-shadow: 0 0 0 0 rgba(236, 74, 36, 0.6); } 100% { box-shadow: 0 0 0 14px rgba(236, 74, 36, 0); } }
/* Aviso de qué falta, pegado al botón de enviar */
.form-hint { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 14px; border-radius: 4px;
  color: #ffd2c6; background: rgba(236, 74, 36, 0.1); border: 1px solid rgba(236, 74, 36, 0.4); border-left: 3px solid var(--brand); }
.form-hint::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5d2f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Materiales: tarjetas de calidad usables con teclado ---------- */
.quality-item { transition: border-color 0.2s, background-color 0.2s; }
.quality-item:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.quality-item.active:hover { border-color: var(--brand); background: rgba(236, 74, 36, 0.1); }
.quality-item:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
