/* PyK Publicidad. Idea: el símbolo de la marca (la flecha que sube dentro del círculo amarillo)
   se instala en una valla a escala; el resto del sitio usa solo los tres colores del logo. */
:root {
  --ink: #0B0B0B;
  --ink-2: #1A1A1A;
  --paper: #FFFFFF;
  --ground: #F4F2EC;
  --line: #E4E1D8;
  --muted: #5E5A52;
  --muted-on-dark: #A8A49B;
  --line-on-dark: #2A2A2A;
  --yellow: #F2B705;
  --yellow-deep: #D9A200;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.kicker { font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow-deep); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); flex: none; }

/* Aviso de sitio en construcción */
.draft { background: var(--yellow); color: var(--ink); text-align: center; font-size: 0.8125rem; font-weight: 600; padding: 6px var(--gr) 6px var(--gl); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn .arr { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink-line { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-yellow:hover { background: #FFC81F; }
  .btn-yellow:hover .arr { transform: translate(2px, -2px); }
  .btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .dark .btn-line:hover, .hero .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .btn-ink:hover { background: var(--ink-2); }
  .btn-ink-line:hover { background: var(--ink); color: var(--yellow); }
}

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 11, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper); border-bottom: 1px solid var(--line-on-dark); padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 10px 12px; border-radius: 999px; color: #D9D6CE; transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--paper); background: var(--ink-2); } }
.nav .nav-cta { color: var(--ink); background: var(--yellow); margin-left: 6px; padding-inline: 18px; }
@media (hover: hover) and (pointer: fine) { .nav .nav-cta:hover { background: #FFC81F; color: var(--ink); } }
.quote-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; border: 1.5px solid #3A3A3A; background: transparent; color: var(--paper); font-weight: 600; font-size: 0.9375rem; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.quote-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .quote-pill:hover { border-color: var(--yellow); } }
.quote-pill b { min-width: 28px; height: 28px; border-radius: 999px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 0.8125rem; }
.quote-pill b.bump { animation: bump 400ms var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.25); } 100% { transform: scale(1); } }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--yellow); position: relative; flex: none; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 240ms var(--ease-out), top 240ms var(--ease-out); }
.menu-btn i:first-child { top: 19px; }
.menu-btn i:last-child { top: 27px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { background: var(--ink); color: var(--paper); padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto -10% -45% auto; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 183, 5, 0.16), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.75rem); font-weight: 900; font-stretch: 118%; line-height: 0.92; letter-spacing: -0.035em; margin-top: 22px; }
.hero h1 .hl { color: var(--yellow); }
.hero .lead { margin-top: 28px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: #D9D6CE; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { margin-top: 40px; display: grid; gap: 10px; color: var(--muted-on-dark); font-size: 0.9375rem; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--yellow); transform: translateY(-1px) rotate(45deg); }

/* Valla dibujada a escala 3:1 */
.billboard { margin: 0; justify-self: end; width: 100%; max-width: 640px; }
.bb-row { display: flex; gap: 12px; align-items: stretch; }
.bb-face { position: relative; flex: 1; aspect-ratio: 3 / 1; background: var(--paper); border: 6px solid #2C2C2C; border-radius: 4px; overflow: hidden; display: flex; align-items: center; padding: 0 7%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.bb-sun { position: relative; height: 82%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); overflow: hidden; flex: none; }
.bb-arrow { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--paper); }
.bb-text { margin-left: 7%; font-family: var(--display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; color: var(--ink); font-size: clamp(0.95rem, 2.4vw, 1.9rem); line-height: 0.95; letter-spacing: -0.02em; }
.bb-dim { color: var(--muted-on-dark); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.bb-dim-w { position: relative; height: 22px; margin: 0 calc(12px + 3.5ch) 10px 0; border-inline: 1px solid #555; }
.bb-dim-w::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #555; }
.bb-dim-w span { position: relative; display: block; width: max-content; margin-inline: auto; background: var(--ink); padding: 0 8px; line-height: 22px; }
.bb-dim-h { position: relative; width: 3.5ch; border-block: 1px solid #555; display: grid; place-items: center; }
.bb-dim-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #555; }
.bb-dim-h span { position: relative; background: var(--ink); writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 0; }
.bb-catwalk { height: 8px; margin: 0 calc(12px + 3.5ch) 0 -2%; background: repeating-linear-gradient(90deg, #3A3A3A 0 6px, transparent 6px 12px); border-top: 2px solid #3A3A3A; }
.bb-legs { display: flex; justify-content: space-around; margin-right: calc(12px + 3.5ch); height: clamp(80px, 12vw, 150px); }
.bb-legs i { width: clamp(14px, 1.8vw, 22px); background: linear-gradient(90deg, #2A2A2A, #3C3C3C 50%, #2A2A2A); }

/* La flecha sube al cargar: es la idea del logo */
@media (prefers-reduced-motion: no-preference) {
  .bb-arrow { animation: rise 1100ms var(--ease-out) 250ms both; }
  .hero h1, .hero .kicker, .hero .lead, .hero .actions, .hero .facts { animation: fade-up 800ms var(--ease-out) both; }
  .hero .kicker { animation-delay: 0ms; }
  .hero h1 { animation-delay: 60ms; }
  .hero .lead { animation-delay: 140ms; }
  .hero .actions { animation-delay: 200ms; }
  .hero .facts { animation-delay: 260ms; }
  .billboard { animation: fade-up 900ms var(--ease-out) 120ms both; }
}
@keyframes rise { from { transform: translateY(70%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Cinta de servicios */
.ticker { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; }
.ticker span { font-family: var(--display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.125rem, 2.4vw, 1.75rem); padding: 14px 0; display: flex; align-items: center; white-space: nowrap; }
.ticker span::after { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ink); margin: 0 0.9em; }
@media (prefers-reduced-motion: no-preference) { .ticker-track { animation: ticker 40s linear infinite; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 900; font-stretch: 115%; letter-spacing: -0.03em; line-height: 0.98; }
.head p:not(.kicker) { color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }
.dark { background: var(--ink); color: var(--paper); }
.dark .head p:not(.kicker) { color: var(--muted-on-dark); }

/* Servicios: filas que se abren */
.services { border-top: 2px solid var(--ink); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px); padding: clamp(20px, 2.6vw, 30px) 0; background: none; border: 0; text-align: left; }
.num { font-family: var(--display); font-weight: 700; font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2ch; transition: color 200ms ease; }
.svc-title { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(1.625rem, 4vw, 3.25rem); letter-spacing: -0.03em; line-height: 1; transition: transform 300ms var(--ease-out); }
.plus { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); position: relative; flex: none; transition: background-color 200ms ease, transform 300ms var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--ink); translate: -50% -50%; }
.plus::after { rotate: 90deg; transition: rotate 300ms var(--ease-out); }
.svc-head[aria-expanded="true"] .plus { background: var(--yellow); border-color: var(--yellow); transform: rotate(180deg); }
.svc-head[aria-expanded="true"] .plus::after { rotate: 0deg; }
.svc-head[aria-expanded="true"] .num { color: var(--yellow-deep); }
@media (hover: hover) and (pointer: fine) {
  .svc-head:hover .svc-title { transform: translateX(8px); }
  .svc-head:hover .plus { background: var(--yellow); border-color: var(--yellow); }
}
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease-out); }
.svc-head[aria-expanded="true"] + .svc-body { grid-template-rows: 1fr; }
.svc-inner { overflow: hidden; display: grid; gap: 18px; padding-left: calc(2ch + clamp(16px, 3vw, 40px)); }
.svc-inner > :last-child { margin-bottom: clamp(24px, 3vw, 36px); }
.svc-inner p { font-size: 1.125rem; max-width: 52ch; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.875rem; font-weight: 600; }
.link { justify-self: start; font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--yellow); padding-bottom: 2px; }

/* Medidas: herramienta */
.measure { background: var(--ground); }
.measure-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.measure .head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.measure-tool { background: var(--paper); border-radius: 20px; padding: clamp(18px, 2.5vw, 32px); border: 1px solid var(--line); }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sizes button { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 0.9375rem; padding: 0 8px; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.sizes button:active { transform: scale(0.97); }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sizes button:not([aria-checked="true"]):hover { border-color: var(--ink); } }
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.custom label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.custom input { font: inherit; font-size: 16px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; color: var(--ink); background: var(--paper); }
.custom input:focus { outline: none; border-color: var(--ink); }
.stage { position: relative; margin-top: 20px; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(#E9EEF2, #F7F7F4 70%); overflow: hidden; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: #D8D3C6; }
.scale-board { position: absolute; left: 8%; bottom: 12%; transition: width 500ms var(--ease-out), height 500ms var(--ease-out); }
.sb-face { position: absolute; left: 0; right: 0; top: 0; background: var(--yellow); border: 3px solid var(--ink); border-radius: 2px; transition: height 500ms var(--ease-out); }
.sb-face::after { content: ""; position: absolute; inset: 18% auto 18% 6%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); opacity: 0.9; }
.sb-pole { position: absolute; left: 50%; bottom: 0; width: 4%; min-width: 4px; translate: -50% 0; background: var(--ink); }
.person { position: absolute; bottom: 12%; fill: var(--ink); width: auto; transition: height 500ms var(--ease-out); }
.readout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.readout p { display: grid; }
.readout .big { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.readout .small { color: var(--muted); font-size: 0.9375rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.steps > li { padding: 28px clamp(16px, 2vw, 28px) 8px 0; display: grid; gap: 12px; align-content: start; position: relative; }
.steps > li + li { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.step-n { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.5rem; }
.steps > li h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 110%; margin-top: 8px; }
.steps p { color: var(--muted); }

/* Catálogo */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { background: var(--ground); border-radius: 20px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.product figure { margin: 0 0 12px; aspect-ratio: 1; border-radius: 14px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.product figure svg { width: 46%; height: auto; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product:hover figure svg { transform: translateY(-6px) scale(1.04); } }
.product h3 { font-size: 1.375rem; font-weight: 800; font-stretch: 108%; }
.product .spec { color: var(--muted); font-size: 0.9375rem; }
.product .btn { margin-top: 12px; width: 100%; min-height: 48px; font-size: 0.9375rem; padding: 0 14px; }
.product .btn[aria-pressed="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.fill-y { fill: var(--yellow); }
.fill-ink { fill: var(--ink); }
.stroke { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }

/* Portafolio */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gr)) 28px calc(-1 * var(--gl)); padding: 2px var(--gr) 2px var(--gl); overscroll-behavior-x: contain; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #3A3A3A; background: transparent; color: var(--paper); font-weight: 600; font-size: 0.9375rem; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { border-color: var(--paper); } }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work { margin: 0; display: grid; gap: 12px; }
.work.wide { grid-column: span 2; }
.work .ph { aspect-ratio: 4 / 3; border-radius: 16px; background: repeating-linear-gradient(135deg, #161616 0 14px, #1C1C1C 14px 28px); border: 1px dashed #3A3A3A; display: grid; place-items: center; }
.work.wide .ph { aspect-ratio: auto; height: 100%; min-height: 220px; }
.work .ph span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); border: 1px solid #3A3A3A; border-radius: 999px; padding: 6px 12px; }
.work figcaption { font-weight: 700; font-size: 1.0625rem; display: grid; }
.work figcaption span { font-weight: 400; color: var(--muted-on-dark); font-size: 0.9375rem; }
.work.enter { animation: fade-up 450ms var(--ease-out) both; }

/* Clientes */
.clients { border-bottom: 1px solid var(--line); }
.clients-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 36px; }
.clients ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.clients li { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
.clients li.more { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--muted); letter-spacing: 0; }

/* Cierre */
.cta { background: var(--yellow); color: var(--ink); padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-arrow { width: clamp(120px, 22vw, 300px); height: auto; fill: var(--ink); }
.cta h2 { font-size: clamp(2.25rem, 6vw, 5rem); font-weight: 900; font-stretch: 118%; letter-spacing: -0.035em; line-height: 0.95; max-width: 14ch; }
.cta p { margin-top: 20px; font-size: 1.125rem; max-width: 46ch; }
.cta .note { font-size: 0.875rem; opacity: 0.75; margin-top: 18px; }

/* Pie */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 72px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-grid img { height: 64px; width: auto; }
.footer-grid .about p { margin-top: 18px; max-width: 32ch; }
.footer-grid h4 { color: var(--paper); font-size: 1rem; font-weight: 800; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid li { font-size: 0.9375rem; padding: 3px 0; }
.legal { border-top: 1px solid var(--line-on-dark); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; font-size: 0.8125rem; }

/* Mi cotización (panel) */
.quote { position: fixed; inset: 0; z-index: 60; }
.quote-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 240ms ease; }
.quote-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; transform: translateX(100%); transition: transform 320ms var(--ease-out); }
.quote.open .quote-backdrop { opacity: 1; }
.quote.open .quote-panel { transform: none; }
.quote-head { display: flex; align-items: center; justify-content: space-between; }
.quote-head h2 { font-size: 1.75rem; font-weight: 900; font-stretch: 115%; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: none; font-size: 1.5rem; line-height: 1; }
.quote-list { display: grid; gap: 8px; overflow-y: auto; overscroll-behavior: contain; }
.quote-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ground); font-weight: 600; }
.quote-list button { flex: none; border: 0; background: none; color: var(--muted); font-size: 0.875rem; text-decoration: underline; min-height: 36px; }
.quote-empty { color: var(--muted); }
.quote-panel .btn { margin-top: auto; }

/* Aviso flotante */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 70; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); max-width: calc(100vw - 32px); text-align: center; animation: toast-in 260ms var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Aparición al hacer scroll (solo si hay JS y el usuario acepta movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav a:not(.nav-cta) { padding-inline: 9px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps > li:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Menú móvil ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .menu-btn { display: block; }
  .quote-pill { margin-left: auto; }
  .nav { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px)); background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px var(--gr) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gl); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 220ms ease, transform 280ms var(--ease-out), visibility 0s linear 280ms; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms ease, transform 280ms var(--ease-out), visibility 0s; }
  .nav a { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: 2rem; letter-spacing: -0.02em; color: var(--paper); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-on-dark); }
  .nav .nav-cta { margin: 24px 0 0; text-align: center; border-radius: 999px; font-size: 1.25rem; padding: 16px; border: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .billboard { justify-self: stretch; max-width: none; }
  .measure-grid { grid-template-columns: 1fr; }
  .measure .head { position: static; margin-bottom: 0; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-arrow { width: 96px; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .quote-pill .label { display: none; }
  .quote-pill { padding: 0 8px; border: 0; }
  .quote-pill b { min-width: 32px; height: 32px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .actions .btn { flex: 1 1 100%; }
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout .btn { width: 100%; }
  .svc-inner { padding-left: 0; }
  .plus { width: 40px; height: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps > li, .steps > li + li { padding-left: 0; border-left: 0; }
  .steps > li + li { border-top: 1px solid var(--line); margin-top: 8px; }
  .products { gap: 12px; }
  .product { padding: 14px; border-radius: 16px; }
  .product h3 { font-size: 1.125rem; }
  .product .btn { font-size: 0.8125rem; white-space: normal; text-align: center; line-height: 1.2; padding: 8px 10px; }
  .works { grid-template-columns: 1fr; }
  .work.wide { grid-column: auto; }
  .work.wide .ph { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
