/* =========================================================
   Solución Solar — styles
   ========================================================= */
/* ---- Light theme (default) ---- */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --line: rgba(16, 19, 27, 0.08);
  --line-2: rgba(16, 19, 27, 0.14);
  --text: #10131b;
  --muted: #5d6475;
  --sun: #f5c800;
  --sun-2: #ffa600;
  --sun-ink: #9a7300;
  --sky: #3b5bff;
  --green: #0f9f6e;
  --red: #e5484d;
  --violet: #7c5cf0;
  --paper: #efece4;
  --ink: #10131b;
  --hover: rgba(16, 19, 27, 0.05);
  --tint: rgba(16, 19, 27, 0.025);
  --glass: rgba(255, 255, 255, 0.78);
  --calc-bg: linear-gradient(160deg, #ffffff, #faf6e6);
  --footer: #ecebe5;
  --map-filter: none;
  --orb-a: 0.35;
  --orb-b: 0.12;
  --shadow: rgba(16, 19, 27, 0.18);
  color-scheme: light;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 22px;
  --nav-h: 72px;
}

/* ---- Dark theme ---- */
:root[data-theme="dark"] {
  --bg: #07090f;
  --surface: #0e121c;
  --surface-2: #141927;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f6;
  --muted: #8b93a7;
  --sun-ink: #f5c800;
  --sky: #4d74ff;
  --green: #34d399;
  --red: #ff6b6b;
  --violet: #a78bfa;
  --paper: #f5f3ee;
  --hover: rgba(255, 255, 255, 0.06);
  --tint: rgba(255, 255, 255, 0.03);
  --glass: rgba(10, 13, 21, 0.75);
  --calc-bg: linear-gradient(160deg, #161c2c, #0d111b);
  --footer: #05070c;
  --map-filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.9);
  --orb-a: 0.45;
  --orb-b: 0.35;
  --shadow: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Components that always sit on top of the dark illustrations keep dark tokens */
.art-toggle, .kelvin__badge, .modal__x {
  --text: #eef1f6; --muted: #a3abbe; --line-2: rgba(255, 255, 255, 0.14); --hover: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* Theme switch: circular reveal via View Transitions */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

.theme-btn .i { position: absolute; transition: transform 400ms var(--ease-out), opacity 250ms ease, filter 250ms ease; }
/* light mode shows the moon (switch to dark); dark mode shows the sun */
.theme-btn .theme-btn__sun { transform: rotate(90deg) scale(0.6); opacity: 0; filter: blur(3px); }
:root[data-theme="dark"] .theme-btn .theme-btn__moon { transform: rotate(-90deg) scale(0.6); opacity: 0; filter: blur(3px); }
:root[data-theme="dark"] .theme-btn .theme-btn__sun { transform: none; opacity: 1; filter: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; touch-action: manipulation; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 em, h1 em { font-style: normal; color: var(--sun-ink); }
p { margin: 0; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(245, 200, 0, 0.15); animation: pulse 2.4s ease-in-out infinite; }
.eyebrow--dark { color: #6b7180; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(245, 200, 0, 0); } }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper h2 em { color: #c49a00; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 18px; max-width: 56ch; }

/* reveal on scroll */
/* entrance is driven by WAAPI in main.js so it never fights component transitions */
.js .reveal:not(.is-in) { opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  background: var(--bg-btn);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  position: relative; isolation: isolate;
}
.btn:active { transform: scale(0.97); }
.btn--sun { --bg-btn: var(--sun); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(245, 200, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--sun:hover { --bg-btn: #ffd426; box-shadow: 0 16px 40px -12px rgba(245, 200, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
  .btn--ghost:hover { background: var(--hover); }
  .btn:hover .i { transform: translateX(3px); }
}
.magnetic { will-change: transform; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); position: relative;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--hover); } }

/* ---------- progress + cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--sun-2)); transform-origin: 0 50%; transform: scaleX(0); }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 0, 0.09), transparent 65%);
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity 400ms ease;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px 0; transition: padding 300ms var(--ease-out); }
.nav__inner {
  width: min(1240px, 100% - 24px); margin-inline: auto; height: 60px; padding: 0 10px 0 14px;
  display: flex; align-items: center; gap: 16px; border-radius: 20px;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.nav.is-scrolled .nav__inner { background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -20px var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__star { fill: var(--sun); transform-origin: 32px 32px; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__star { transform: rotate(30deg); } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.brand__text small { font-size: 11px; color: var(--muted); font-style: italic; }
.nav__links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 14px; }
.nav__links a { position: relative; z-index: 1; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 10px; transition: color 200ms ease; }
.nav__links a.is-active { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); } }
.nav__pill { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 10px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: transform 350ms var(--ease-out), width 350ms var(--ease-out), opacity 200ms ease; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--sun); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center;
  transform: scale(0.6); opacity: 0; transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.cart-count.has-items { transform: scale(1); opacity: 1; }
.cart-btn.bump { animation: bump 400ms var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.15) rotate(-6deg); } 60% { transform: scale(0.96); } }
.menu-btn { display: none; }

/* ---------- sheet (mobile menu) ---------- */
.sheet, .drawer, .modal { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.sheet.is-open, .drawer.is-open, .modal.is-open { visibility: visible; pointer-events: auto; }
.sheet__backdrop, .drawer__backdrop, .modal__backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, 0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; }
.is-open > .sheet__backdrop, .is-open > .drawer__backdrop, .is-open > .modal__backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; inset: auto 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: inset 0 1px 0 var(--line-2);
  transform: translateY(100%); transition: transform 450ms var(--ease-drawer); touch-action: none;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 16px; }
.sheet__links { display: grid; margin-bottom: 20px; }
.sheet__links a { font-family: var(--font-display); font-size: 26px; font-weight: 600; padding: 10px 4px; border-bottom: 1px solid var(--line); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 48px) 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; }
.hero__orb--a { width: 520px; height: 520px; right: -120px; top: -80px; background: radial-gradient(circle, #f5c800, transparent 70%); opacity: var(--orb-a); animation: float 14s ease-in-out infinite; }
.hero__orb--b { width: 600px; height: 600px; left: -240px; bottom: -200px; background: radial-gradient(circle, #2f4cff, transparent 70%); opacity: var(--orb-b); animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }
.hero[data-mode="night"] .hero__orb--a { opacity: 0.12; }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; flex: 1; padding-bottom: 64px; }
.hero__title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 800; letter-spacing: -0.035em; }
.rotator { display: grid; color: var(--sun-ink); }
.rotator__word {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(40%); filter: blur(8px);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), filter 500ms var(--ease-out);
}
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-40%); filter: blur(8px); transition-duration: 350ms; }
.hero__lead { margin-top: 26px; font-size: 1.15rem; color: var(--muted); max-width: 50ch; }
.hero__ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero__stats b::before { content: "+"; color: var(--sun-ink); }
.hero__stats span { font-size: 13px; color: var(--muted); }

.hero__art { position: relative; }
.scene { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.8); display: block; }
.scene__sky { transition: filter 900ms var(--ease-in-out); }
.hero[data-mode="night"] .scene__sky { filter: brightness(0.45) saturate(0.7); }
.scene__stars circle { fill: #fff; opacity: 0; transition: opacity 900ms ease; }
.hero[data-mode="night"] .scene__stars circle { opacity: 0.8; animation: twinkle 3s ease-in-out infinite; }
.scene__stars circle:nth-child(2n) { animation-delay: 1.2s !important; }
.scene__stars circle:nth-child(3n) { animation-delay: 0.6s !important; }
@keyframes twinkle { 50% { opacity: 0.2; } }
.scene__sun { transition: transform 1100ms var(--ease-in-out), opacity 900ms ease; transform-origin: 470px 95px; }
.scene__sunstar { transform-origin: 470px 95px; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero[data-mode="night"] .scene__sun { transform: translateY(220px) scale(0.8); opacity: 0; }
.scene__moon { opacity: 0; transform: translateY(-40px); transition: transform 1100ms var(--ease-in-out), opacity 900ms ease; }
.hero[data-mode="night"] .scene__moon { opacity: 1; transform: none; }
.scene__rays path { animation: dash 1.2s linear infinite; transition: opacity 500ms ease; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.hero[data-mode="night"] .scene__rays { opacity: 0; }
.scene__shine { animation: shine 4s var(--ease-in-out) infinite; }
@keyframes shine { 0%, 40% { transform: skewX(-20deg) translateX(0); } 80%, 100% { transform: skewX(-20deg) translateX(420px); } }
.hero[data-mode="night"] .scene__shine { animation: none; opacity: 0; }
.scene__win { fill: #9fb4ff; opacity: 0.5; transition: fill 800ms ease, opacity 800ms ease; }
.hero[data-mode="night"] .scene__win { fill: #ffd76a; opacity: 1; }
.scene__wire { fill: none; stroke: #2c3658; stroke-width: 4; stroke-linecap: round; }
.scene__flow circle { fill: var(--sun); filter: drop-shadow(0 0 4px var(--sun)); }
.scene__flow--b circle { fill: var(--green); filter: drop-shadow(0 0 4px var(--green)); }
.scene__flow { transition: opacity 500ms ease; }
.scene__flow--b { opacity: 0; }
.hero[data-mode="night"] .scene__flow--a { opacity: 0; }
.hero[data-mode="night"] .scene__flow--b { opacity: 1; }
.scene__charge { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.86); transition: transform 1200ms var(--ease-in-out), fill 800ms ease; }
.hero[data-mode="night"] .scene__charge { transform: scaleY(0.62); fill: #f5c800; }
.scene__cone { opacity: 0; transition: opacity 900ms ease; }
.scene__bulb { fill: #3a4466; transition: fill 600ms ease; }
.hero[data-mode="night"] .scene__cone { opacity: 1; }
.hero[data-mode="night"] .scene__bulb { fill: #fff6c9; }

.art-toggle {
  position: absolute; top: 18px; left: 18px; z-index: 3; display: flex; padding: 4px; border-radius: 14px;
  background: rgba(8, 11, 20, 0.6); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2);
}
.art-toggle__btn { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--muted); transition: color 200ms ease; }
.art-toggle__btn .i { width: 16px; height: 16px; }
.art-toggle__btn.is-on { color: var(--ink); }
.art-toggle__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 10px; background: var(--sun); transition: transform 400ms var(--ease-out), width 400ms var(--ease-out), background-color 400ms ease; }
.hero[data-mode="night"] .art-toggle__thumb { background: #dfe5ff; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -16px var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.float-card b { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.float-card--a { left: -24px; bottom: 22%; }
.float-card--b { right: -18px; top: 18%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.float-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 200, 0, 0.14); color: var(--sun-ink); }
.float-card__icon--green { background: rgba(52, 211, 153, 0.14); color: var(--green); }

.marquee { position: relative; z-index: 2; border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--muted); }
.marquee__track i { color: var(--sun-ink); font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); min-height: 240px; display: flex; flex-direction: column;
  transform-style: preserve-3d; transition: box-shadow 300ms ease;
}
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile h3 { font-size: 22px; margin: 20px 0 8px; }
.tile--xl h3 { font-size: 34px; }
.tile p { color: var(--muted); font-size: 14.5px; }
.tile__count { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.tile__count b { color: var(--text); font-size: 15px; }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; position: relative; }
.tile__icon .i { width: 26px; height: 26px; transition: transform 500ms var(--ease-out); }
.tile__icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px currentColor; opacity: 0.25; }
.tile__icon--sun { color: var(--sun-ink); background: rgba(245, 200, 0, 0.12); }
.tile__icon--warm { color: #ffb547; background: rgba(255, 181, 71, 0.12); }
.tile__icon--sky { color: #7fa0ff; background: rgba(77, 116, 255, 0.14); }
.tile__icon--green { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.tile__icon--red { color: var(--red); background: rgba(255, 107, 107, 0.12); }
.tile__icon--violet { color: var(--violet); background: rgba(167, 139, 250, 0.12); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
  .tile:hover .tile__icon .i { transform: scale(1.12) rotate(-8deg); }
}
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 200, 0, 0.12), transparent 45%);
  opacity: 0; transition: opacity 300ms ease;
}
.spot:hover::before { opacity: 1; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.tile__art { position: absolute; right: -10px; bottom: -10px; width: 62%; opacity: 0.95; pointer-events: none; }
.tile__art svg { width: 100%; }
.mini-sun { animation: bob 5s ease-in-out infinite; }
.tile--xl .tile__count { position: relative; z-index: 1; }

/* ---------- tabs w/ clip-path ---------- */
.tabs { position: relative; width: fit-content; max-width: 100%; margin-bottom: 28px; }
.tabs__list { display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__list button { padding: 10px 18px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tabs__list--active { position: absolute; inset: 0; pointer-events: none; background: transparent; box-shadow: none; clip-path: inset(0 100% 0 0 round 11px); transition: clip-path 400ms var(--ease-out); overflow: hidden; }
.tabs__list--active button { background: var(--sun); color: var(--ink); }
.tabs__list[role="tablist"] button:active { transform: scale(0.97); }

.showcase { position: relative; display: grid; }
.show {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: 28px; overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(4px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), filter 400ms var(--ease-out), visibility 0s 400ms;
}
.show.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.show__media { position: relative; min-height: 360px; overflow: hidden; background: #0d1530; }
.show__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1200ms var(--ease-out); }
.show__media--white { background: #fff; }
.show__media--fit { background: linear-gradient(120deg, #4467e6, #2c49c4); display: grid; place-items: center; }
.show__media--fit img { object-fit: contain; }
.show__media--white img { object-fit: contain; padding: 16px; }
.show.is-active .show__media img { transform: scale(1); }
.show__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.show__body h3 { font-size: clamp(28px, 3vw, 40px); margin: 16px 0 12px; }
.show__body p { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(245, 200, 0, 0.12); color: var(--sun-ink); }
.tag .i { width: 15px; height: 15px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ticks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: rgba(52, 211, 153, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sun-ink); width: fit-content; }
.link-arrow .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .i { transform: translateX(4px); } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.field { margin-top: 32px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.field__row label, .field__label { font-weight: 700; display: block; margin-bottom: 12px; }
.field__row label { margin: 0; }
.field__row output { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--sun-ink); font-variant-numeric: tabular-nums; }
.field__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--font-mono); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--sun) var(--p), var(--surface-2) var(--p)); box-shadow: inset 0 0 0 1px var(--line); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--sun) var(--p), var(--surface-2) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(245, 200, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4); transition: transform 160ms var(--ease-out), box-shadow 200ms ease; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(245, 200, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(245, 200, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4); }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; padding: 12px; font-weight: 700; font-size: 14px; color: var(--muted); border-radius: 11px; transition: color 200ms ease; }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 11px; background: var(--sun); transition: transform 350ms var(--ease-out); }

.calc__card { position: relative; padding: 32px; border-radius: 28px; background: var(--calc-bg); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(245, 200, 0, 0.25); overflow: hidden; }
.calc__card::before { content: ""; position: absolute; right: -120px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 200, 0, 0.25), transparent 70%); pointer-events: none; }
.calc__top span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.calc__big { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--sun-ink); font-variant-numeric: tabular-nums; margin-top: 4px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.calc__grid div { padding: 16px; border-radius: 16px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.calc__grid .i { color: var(--sun-ink); margin-bottom: 6px; }
.calc__grid b { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.calc__grid span { font-size: 12.5px; color: var(--muted); }
.roof { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 22px 0 18px; }
.roof i { aspect-ratio: 1 / 1.4; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 300ms ease, transform 300ms var(--ease-out), box-shadow 300ms ease; transform: scale(0.92); }
.roof i.on { background: linear-gradient(160deg, #3d5fd6, #1b2c74); box-shadow: inset 0 0 0 1px rgba(127, 160, 255, 0.5); transform: none; }
.calc__note { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

/* ---------- kelvin ---------- */
.kelvin { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.kelvin__stage { position: relative; --k: #ffc58f; }
.room { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.8); display: block; }
.room__obj { fill: color-mix(in srgb, var(--k) 22%, #1d2236); }
.room__bulb { filter: drop-shadow(0 0 12px var(--k)); }
.kelvin__badge { position: absolute; left: 18px; bottom: 18px; padding: 12px 16px; border-radius: 16px; background: rgba(8, 11, 20, 0.7); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; }
.kelvin__badge b { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; color: var(--k); }
.kelvin__badge span { font-size: 13px; color: var(--muted); }
.kslider { margin-top: 30px; }
.kslider input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #ff9a3c, #ffd6a0 30%, #fff5e6 50%, #e6f0ff 75%, #b9d2ff); }
.kslider input[type="range"]::-moz-range-track { background: linear-gradient(90deg, #ff9a3c, #ffd6a0 30%, #fff5e6 50%, #e6f0ff 75%, #b9d2ff); }
.kslider input[type="range"]::-webkit-slider-thumb { background: var(--k, #fff); box-shadow: 0 0 0 4px #fff, 0 4px 16px rgba(0, 0, 0, 0.5); }
.kslider__marks { display: flex; justify-content: space-between; margin-top: 12px; }
.kslider__marks button { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out); }
.kslider__marks button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .kslider__marks button:hover { color: var(--text); background: var(--hover); } }
.kelvin__uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.kelvin__uses span { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); animation: chipIn 400ms var(--ease-out) both; }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px); } }
#kDesc { transition: opacity 200ms ease, filter 200ms ease; min-height: 5.2em; }
#kDesc.swap { opacity: 0; filter: blur(3px); }

/* ---------- tools (electricians) ---------- */
.tools { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; }
.tools__nav { display: grid; gap: 6px; position: sticky; top: calc(var(--nav-h) + 16px); }
.tools__nav button {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; border-radius: 16px;
  color: var(--muted); transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.tools__nav button:active { transform: scale(0.98); }
.tools__nav b { display: block; font-size: 15px; color: var(--text); }
.tools__nav small { font-size: 12.5px; }
.tools__nav button[aria-selected="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px -18px var(--shadow); }
@media (hover: hover) and (pointer: fine) { .tools__nav button:hover { background: var(--hover); } .tools__nav button[aria-selected="true"]:hover { background: var(--surface); } }
.tools__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); transition: background-color 250ms ease, color 250ms ease, transform 400ms var(--ease-out); }
.tools__nav button[aria-selected="true"] .tools__ic { background: var(--sun); color: var(--ink); transform: rotate(-6deg); }
.tools__stage { padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px var(--shadow); min-width: 0; }
.tool[hidden] { display: none; }
.tool__head h3 { font-size: clamp(24px, 2.6vw, 32px); }
.tool__head p { color: var(--muted); margin-top: 8px; }
.tool__head { margin-bottom: 22px; }
.tool .seg { margin-bottom: 18px; }
.seg--wrap { grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; }
.seg--wrap button { white-space: nowrap; }
.tool__inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.num {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 8px;
  padding: 10px 14px 10px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 200ms ease, opacity 250ms ease;
}
.num:focus-within { box-shadow: inset 0 0 0 2px var(--sun); }
.num > span { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.num input, .num select {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 700 20px/1.3 var(--font-display); padding: 2px 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.num select { font-size: 16px; font-family: var(--font-body); cursor: pointer; }
.num select option { background: var(--surface); color: var(--text); }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 5px; white-space: nowrap; }
.num.is-off { opacity: 0.38; }
.num.is-off input { pointer-events: none; }

.res { display: grid; gap: 12px; margin-top: 20px; }
.res--4 { grid-template-columns: repeat(4, 1fr); }
.res--3 { grid-template-columns: repeat(3, 1fr); }
.res--1 { grid-template-columns: 1fr; }
.res > div { padding: 16px; border-radius: 16px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); display: grid; align-content: start; transition: background-color 250ms ease, box-shadow 250ms ease; }
.res span { font-size: 12px; color: var(--muted); font-weight: 700; }
.res b { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; overflow-wrap: anywhere; }
.res small { font-size: 12.5px; color: var(--muted); }
.res .res__hi, .res > div.is-calc { background: rgba(245, 200, 0, 0.12); box-shadow: inset 0 0 0 1px rgba(245, 200, 0, 0.45); }
.res .res__hi b, .res > div.is-calc b { color: var(--sun-ink); }
.tool__formula { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tool__sub { font-size: 18px; margin: 30px 0 12px; }
.tool .link-arrow { margin-top: 18px; }

.chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tool__inputs + .chipset { margin: 14px 0 0; }
.chipset button { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.chipset button:active { transform: scale(0.95); }
.chipset button.is-on { background: var(--sun); color: var(--ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .chipset button:hover { color: var(--text); background: var(--hover); } .chipset button.is-on:hover { background: var(--sun); color: var(--ink); } }

.meter { position: relative; height: 12px; border-radius: 6px; margin: 26px 0 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.meter__fill { position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #10b981, #f5c800 55%, #ef4444); transition: transform 500ms var(--ease-out); }
.meter__limit { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--text); border-radius: 1px; }
.meter__limit i { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font: 700 11px var(--font-mono); font-style: normal; color: var(--muted); }
.status { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px; }
.status.ok { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.status.bad { background: rgba(229, 72, 77, 0.12); color: var(--red); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }

.lgrid { display: grid; gap: 6px; margin-top: 20px; padding: 14px; border-radius: 16px; background: #0c0f18; aspect-ratio: var(--ar, 5 / 4); max-height: 240px; width: 100%; }
.lgrid i { border-radius: 50%; place-self: center; width: 18px; height: 18px; background: #fff6c9; box-shadow: 0 0 18px 6px rgba(255, 220, 120, 0.45); animation: lampIn 400ms var(--ease-out) both; }
@keyframes lampIn { from { opacity: 0; transform: scale(0.6); } }

.battvis { position: relative; height: 54px; margin-top: 20px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line-2); padding: 6px; margin-right: 14px; }
.battvis__fill { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #10b981, #34d399); transform-origin: 0 50%; transform: scaleX(0.5); transition: transform 600ms var(--ease-out); }
.battvis__cap { position: absolute; right: -12px; top: 16px; bottom: 16px; width: 8px; border-radius: 0 4px 4px 0; background: var(--line-2); }

.conv { display: grid; grid-template-columns: 1fr 1fr auto 1fr; gap: 12px; align-items: stretch; }
.conv__swap { width: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.conv__swap:active { transform: scale(0.94); }
.conv__swap.spin .i { animation: spinHalf 400ms var(--ease-out); }
@keyframes spinHalf { from { transform: rotate(-180deg); } }
.awg { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.awg__out { padding: 12px 16px; border-radius: 14px; background: rgba(245, 200, 0, 0.12); box-shadow: inset 0 0 0 1px rgba(245, 200, 0, 0.45); display: grid; }
.awg__out span { font-size: 12px; color: var(--muted); font-weight: 700; }
.awg__out b { font-family: var(--font-display); font-size: 26px; color: var(--sun-ink); font-variant-numeric: tabular-nums; }
.awg__out small { color: var(--muted); font-size: 12.5px; }
.awg__out strong { color: var(--text); }
.tools__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.tools__note .i { width: 18px; height: 18px; flex: none; color: var(--sun-ink); margin-top: 1px; }

@media (max-width: 900px) {
  .tools { grid-template-columns: 1fr; }
  .tools__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; scroll-snap-type: x mandatory; }
  .tools__nav button { flex: none; scroll-snap-align: start; padding: 10px 14px 10px 10px; }
  .tools__nav small { display: none; }
  .res--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tool__inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .num input { font-size: 18px; }
  .tool__inputs .num:has(select) { grid-column: 1 / -1; }
  .brand__text b { white-space: nowrap; font-size: 16px; }
  .nav__actions { gap: 6px; }
  .nav__actions .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
  .res--3 { grid-template-columns: 1fr 1fr; }
  .res--3 > div:last-child { grid-column: 1 / -1; }
  .conv { grid-template-columns: 1fr 1fr; }
  .conv > label:first-child { grid-column: 1 / -1; }
  .conv__swap { display: none; }
  .awg { grid-template-columns: 1fr; }
}

/* ---------- Herramientas PRO (links to the app pages) ---------- */
.pro-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.pro-apps__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pro-apps__head h3 { font-size: clamp(20px, 2.2vw, 26px); }
.pro-apps__tag { font: 800 12px var(--font-mono); letter-spacing: 0.1em; padding: 6px 10px; border-radius: 8px; background: var(--sun); color: var(--ink); }
.pro-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start;
  padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -36px var(--shadow);
  transition: transform 200ms var(--ease-out), box-shadow 250ms ease;
}
.pro-card:active { transform: scale(0.985); }
.pro-card__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sun); color: var(--ink); }
.pro-card__ic--blue { background: var(--sky); color: #fff; }
.pro-card__ic .i { width: 26px; height: 26px; }
.pro-card__body { display: grid; gap: 8px; }
.pro-card__body b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.pro-card__body b em { font-style: normal; font: 800 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--sun); vertical-align: middle; margin-left: 4px; }
.pro-card__body > span { color: var(--muted); font-size: 14.5px; }
.pro-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pro-card__chips i { font-style: normal; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.pro-card__go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pro-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -36px var(--shadow); }
  .pro-card:hover .pro-card__go { background: var(--sun); color: var(--ink); transform: translateX(3px); }
}
@media (max-width: 900px) { .pro-apps { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pro-card { grid-template-columns: auto 1fr; padding: 20px; } .pro-card__go { display: none; } }

/* ---------- app instalable (PWA) ---------- */
[data-install][hidden], [data-installed][hidden], [data-install-hint][hidden], [data-offline-ready][hidden] { display: none !important; }
.install-card { margin-top: 16px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 26px 30px; border-radius: 26px; background: linear-gradient(120deg, rgba(245, 200, 0, 0.16), rgba(59, 91, 255, 0.08)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.install-card__art { position: relative; height: 150px; display: grid; place-items: center; }
.install-card__phone { width: 104px; height: 150px; border-radius: 22px; background: var(--ink); box-shadow: 0 0 0 4px #2b3140, 0 24px 40px -18px rgba(0, 0, 0, 0.5); display: grid; place-content: center; justify-items: center; gap: 6px; transform: rotate(-6deg); }
.install-card__phone img { width: 52px; height: 52px; border-radius: 14px; animation: icon-pop 3.2s var(--ease-out) infinite; }
.install-card__phone small { font-size: 9px; color: #cfd5e2; font-weight: 700; }
@keyframes icon-pop { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-4px) scale(1.06); } 86% { transform: none; } }
.install-card__off { position: absolute; right: 18px; top: 6px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--red); box-shadow: 0 10px 24px -12px var(--shadow), inset 0 0 0 1px var(--line); }
.install-card__off svg { width: 24px; height: 24px; }
.install-card__body { display: grid; gap: 10px; justify-items: start; }
.install-card__body h3 { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.2; }
.install-card__body p { color: var(--muted); max-width: 60ch; }
.install-card__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.install-card__ok, .install-card__status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--green); }
.install-card__ok .i, .install-card__status .i { width: 18px; height: 18px; }
.install-card__hint { font-size: 13.5px; color: var(--muted); }
@media (max-width: 700px) {
  .install-card { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .install-card__art { height: 120px; justify-self: start; width: 160px; }
  .install-card__phone { width: 84px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .install-card__phone img { animation: none; } }

.ios-install { position: fixed; inset: 0; z-index: 130; display: grid; align-items: end; justify-items: center; visibility: hidden; }
.ios-install.is-open { visibility: visible; }
.ios-install__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 16, 0.5); opacity: 0; transition: opacity 250ms ease; }
.ios-install.is-open .ios-install__backdrop { opacity: 1; }
.ios-install__panel { position: relative; width: min(420px, 100% - 24px); margin-bottom: calc(12px + env(safe-area-inset-bottom)); padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); display: grid; gap: 12px; justify-items: start; transform: translateY(110%); transition: transform 380ms var(--ease-out); }
.ios-install.is-open .ios-install__panel { transform: none; }
.ios-install__panel img { border-radius: 14px; }
.ios-install__panel h3 { font-size: 20px; }
.ios-install__panel ol { padding-left: 20px; display: grid; gap: 8px; }
.ios-install__panel li svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--sky); }
.ios-install__panel p { color: var(--muted); font-size: 14px; }

.net-pill { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 125; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #eef1f6; font-size: 13.5px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45); transform: translate(-50%, 140%); opacity: 0; transition: transform 380ms var(--ease-out), opacity 250ms ease; pointer-events: none; max-width: calc(100% - 32px); }
.net-pill.is-shown { transform: translate(-50%, 0); opacity: 1; }
.net-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; }
.net-pill.is-off .net-pill__dot { background: #f59e0b; }

/* ---------- products ---------- */
.filters { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 16px; background: #e9e6df; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filters button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 11px; font-size: 14px; font-weight: 700; color: #6b7180; white-space: nowrap; transition: color 200ms ease; }
.filters button.is-on { color: var(--ink); }
.filters__thumb { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); transition: transform 350ms var(--ease-out), width 350ms var(--ease-out); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pcard {
  position: relative; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(16, 19, 27, 0.06);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease, opacity 300ms var(--ease-out), filter 300ms var(--ease-out);
}
.pcard.is-hidden { display: none; }
.pcard.is-entering { opacity: 0; transform: scale(0.96); filter: blur(4px); }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(16, 19, 27, 0.3), 0 0 0 1px rgba(16, 19, 27, 0.08); }
  .pcard:hover .pcard__img img { transform: scale(1.06); }
  .pcard:hover .pcard__quick { opacity: 1; transform: none; }
}
.pcard__img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 600ms var(--ease-out); }
.pcard__badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.pcard__quick { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); opacity: 0; transform: translateY(-4px); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.pcard__quick:active { transform: scale(0.94); }
@media (hover: none) { .pcard__quick { opacity: 1; transform: none; } }
.pcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid #f0eee9; }
.pcard__brand { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #9aa0ad; text-transform: uppercase; }
.pcard__name { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.pcard__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.pcard__price { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.add {
  height: 42px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  background: var(--ink); color: #fff; transition: transform 160ms var(--ease-out), background-color 200ms ease; overflow: hidden; position: relative;
}
.add:active { transform: scale(0.95); }
.add .i { width: 18px; height: 18px; }
.add__inner { display: inline-flex; align-items: center; gap: 8px; transition: opacity 200ms ease, filter 200ms ease, transform 250ms var(--ease-out); }
.add.is-done { background: #16a34a; }
.add.is-swapping .add__inner { opacity: 0; filter: blur(3px); transform: translateY(6px); }

/* ---------- catalog: search, chips, illustrations ---------- */
.catalog__lead { max-width: 40ch; color: #5d6372; }
.catalog__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.csearch { position: relative; flex: 1 1 320px; display: flex; align-items: center; height: 52px; padding: 0 12px 0 16px; gap: 10px; border-radius: 16px; background: #fff; color: #6b7180; box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.1), 0 10px 24px -18px rgba(16, 19, 27, 0.4); transition: box-shadow 200ms ease; }
.csearch:focus-within { box-shadow: inset 0 0 0 2px var(--sun), 0 10px 30px -14px rgba(245, 200, 0, 0.6); }
.csearch .i { width: 20px; height: 20px; flex: none; }
.csearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.csearch input::placeholder { color: #9aa0ad; font-weight: 500; }
.csearch input::-webkit-search-cancel-button { display: none; }
.csearch__clear { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #6b7180; flex: none; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.csearch__clear:active { transform: scale(0.92); }
.csearch__clear[hidden], .catalog__empty[hidden], #catMore[hidden] { display: none; }
.csearch__clear .i { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .csearch__clear:hover { background: #f0eee9; color: var(--ink); } }
.csearch__kbd { font: 700 12px var(--font-mono); padding: 3px 8px; border-radius: 7px; color: #6b7180; box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.14); }
.csearch:focus-within .csearch__kbd, .csearch__clear:not([hidden]) + .csearch__kbd { display: none; }
@media (hover: none) { .csearch__kbd { display: none; } }
.csort { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.1); font-size: 14px; font-weight: 700; color: #6b7180; }
.csort select { height: 40px; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; padding-right: 6px; }
.cchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 6px; margin: 0 -2px; }
@media (max-width: 760px) { .cchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 -16px; padding: 4px 16px 6px; } }
.cchips::-webkit-scrollbar { display: none; }
.cchip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #4b5161; background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.1); white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out); }
.cchip small { font: 700 11px var(--font-mono); padding: 2px 7px; border-radius: 999px; background: #f0eee9; color: #6b7180; transition: background-color 200ms ease, color 200ms ease; }
.cchip:active { transform: scale(0.96); }
.cchip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.cchip.is-on small { background: var(--sun); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cchip:not(.is-on):hover { box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.28); color: var(--ink); } }
.cchip:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.catalog__count { margin: 8px 0 16px; font-size: 13px; font-weight: 700; color: #6b7180; }
.catalog__more { display: flex; justify-content: center; margin-top: 26px; }
.catalog__more .i { transition: transform 200ms var(--ease-out); }
.section--paper .btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.18); background: #fff; }
@media (hover: hover) and (pointer: fine) { .section--paper .btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.4); } }
.catalog__empty { text-align: center; padding: 48px 20px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 19, 27, 0.08); }
.catalog__empty > .i { width: 40px; height: 40px; color: #c49a00; }
.catalog__empty h3 { margin-top: 10px; font-size: 22px; }
.catalog__empty p { color: #5d6372; margin-top: 6px; }
.catalog__empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pcard__art { width: 100%; height: 100%; padding: 10px; display: block; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pcard:hover .pcard__art { transform: scale(1.05) rotate(-1.5deg); } }
.pcard__price--ask { font-size: 17px; color: #8a6d00; }
.citem__media { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.citem__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.citem__media .pcard__art { padding: 2px; }
.drawer__note { margin-top: 4px; font-size: 13px; color: var(--muted); text-align: right; }
.qv__img .pcard__art { max-width: 340px; padding: 24px; }
.qv__ask { margin-top: -4px; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  .csort { flex: 1; }
  .csort select { flex: 1; }
  .pcard__price--ask { font-size: 15px; }
}

/* ---------- education ---------- */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.accordion { margin-top: 36px; display: grid; gap: 10px; }
.accordion details { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease, background-color 200ms ease; }
.accordion details[open] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.accordion summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; font-weight: 700; font-size: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.acc__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(245, 200, 0, 0.12); color: var(--sun-ink); flex: none; }
.acc__icon .i { width: 18px; height: 18px; }
.acc__chev { margin-left: auto; color: var(--muted); transition: transform 300ms var(--ease-out); }
details[open] .acc__chev { transform: rotate(180deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
details[open] .acc__body { grid-template-rows: 1fr; }
.acc__body > p { overflow: hidden; padding: 0 18px 0 68px; color: var(--muted); font-size: 15px; }
details[open] .acc__body > p { padding-bottom: 18px; }
.acc__body a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }

/* ---------- trabajos (gallery) ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; text-align: left; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.work--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.work[hidden] { display: none; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); z-index: -1; }
.work::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(10, 12, 18, 0.82), rgba(10, 12, 18, 0)); z-index: -1; pointer-events: none; }
.work__cap { position: absolute; left: 18px; right: 64px; bottom: 16px; color: #fff; display: grid; gap: 2px; }
.work__cap small { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); }
.work__cap b { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.work--big .work__cap b { font-size: clamp(20px, 2.4vw, 28px); }
.work__go { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--sun); color: var(--ink); transition: transform 300ms var(--ease-out); }
.work__go .i { width: 18px; height: 18px; }
.work__ref { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: #3b4252; }
.work:active { transform: scale(0.985); transition: transform 160ms var(--ease-out); }
.work:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .work:hover img { transform: scale(1.05); }
  .work:hover .work__go { transform: rotate(90deg) scale(1.06); }
}
.works__chips { flex-wrap: wrap; }
.wmodal { display: grid; grid-template-columns: 1.25fr 1fr; }
.wmodal__img { position: relative; background: var(--surface-2); }
.wmodal__img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 300px; }
.wmodal__body { padding: 28px; display: grid; gap: 12px; align-content: start; }
.wmodal__body h3 { font-size: 24px; line-height: 1.2; }
.wmodal__body p { color: var(--muted); }
.wmodal__place { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.wmodal__place .i { width: 16px; height: 16px; color: var(--sun-ink); }
.wmodal__items { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 6px; }
.wmodal__items li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14.5px; }
.wmodal__items .i { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- testimonios ---------- */
.voices { margin-top: clamp(56px, 8vw, 96px); }
.voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.voices__nav { display: flex; gap: 8px; }
.voices__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; overscroll-behavior-x: contain; }
.voices__track::-webkit-scrollbar { display: none; }
.voices__track:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 20px; }
.voice { position: relative; scroll-snap-align: start; margin: 0; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; }
.voice__stars { display: flex; gap: 3px; }
.voice__stars svg { width: 18px; height: 18px; fill: var(--line-2); }
.voice__stars svg.on { fill: #f5b400; }
.voice blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; font-weight: 500; flex: 1; }
.voice figcaption { display: flex; gap: 12px; align-items: center; }
.voice figcaption b { display: block; font-size: 15px; }
.voice figcaption small { color: var(--muted); font-size: 13px; }
.voice__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 14px var(--font-display); background: linear-gradient(135deg, #ffe45c, #ffa600); color: var(--ink); }
.voice__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voice__ref { font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wmodal { grid-template-columns: 1fr; }
  .wmodal__img img { min-height: 0; aspect-ratio: 4 / 3; }
  .voices__track { grid-auto-columns: minmax(280px, 70%); }
}
@media (max-width: 600px) {
  .works { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .work--big { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .voices__track { grid-auto-columns: 86%; margin: 0 -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px; }
  .voices__nav { display: none; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq .section__head { text-align: center; }
.faq .section__head .eyebrow { justify-content: center; }
.faq__list { margin-top: 0; }
.faq__cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .acc__body > p { padding-left: 18px; } }
.edu__vt { font-size: 22px; margin-bottom: 20px; }
.videos { display: grid; gap: 14px; }
.vcard { display: flex; gap: 16px; align-items: center; text-align: left; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease; }
.vcard:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .vcard:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
  .vcard:hover .vcard__play { transform: scale(1.1); }
  .vcard:hover .vcard__ico { transform: scale(1.15) rotate(-6deg); opacity: 0.5; }
}
.vcard__thumb { position: relative; width: 120px; aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; overflow: hidden; flex: none; }
.vcard__thumb--a { background: linear-gradient(135deg, #2f4cff, #101a4d); }
.vcard__thumb--b { background: linear-gradient(135deg, #ff9f1c, #7a2e00); }
.vcard__thumb--c { background: linear-gradient(135deg, #10b981, #053b2b); }
.vcard__thumb--d { background: linear-gradient(135deg, #a78bfa, #34176e); }
.vcard__ico { position: absolute; width: 90px; height: 90px; right: -18px; bottom: -22px; fill: none; stroke: #fff; stroke-width: 1.2; opacity: 0.3; transition: transform 500ms var(--ease-out), opacity 300ms ease; }
.vcard__play { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.95); color: var(--ink); transition: transform 300ms var(--ease-out); }
.vcard__play .i { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.vcard__body b { display: block; font-size: 16px; margin-bottom: 4px; }
.vcard__body small { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 2px; background: linear-gradient(90deg, var(--sun) var(--sp, 0%), var(--line) var(--sp, 0%)); }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step__n { position: absolute; right: 22px; top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.step > .i { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--sun); color: var(--ink); stroke-width: 2; }
.step h3 { font-size: 22px; margin: 22px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.clist { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 8px; }
.clist li { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 12px; border-radius: 16px; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .clist li:hover { background: var(--surface); } .clist li:hover .copy { opacity: 1; } }
.clist__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(245, 200, 0, 0.12); color: var(--sun-ink); }
.clist__ic--green { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.clist__ic--sky { background: rgba(77, 116, 255, 0.14); color: #8eaaff; }
.clist small { display: block; font-size: 12px; color: var(--muted); }
.clist a { font-weight: 700; word-break: break-word; }
.clist div { flex: 1; min-width: 0; }
.copy { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.6; transition: opacity 200ms ease, transform 160ms var(--ease-out), color 200ms ease; }
.copy .i { width: 16px; height: 16px; }
.copy:active { transform: scale(0.92); }
.copy.is-copied { color: var(--green); opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }

.contact__side { display: grid; gap: 16px; }
.form { padding: 28px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.form h3 { font-size: 24px; margin-bottom: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl { position: relative; display: block; }
.fl input, .fl textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 0; outline: 0; resize: vertical;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease;
}
.fl textarea { min-height: 120px; }
.fl input:focus, .fl textarea:focus { box-shadow: inset 0 0 0 2px var(--sun); }
.fl span { position: absolute; left: 16px; top: 16px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform 200ms var(--ease-out), color 200ms ease; }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span,
.fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span { transform: translateY(-9px) scale(0.78); color: var(--sun-ink); }
.fl.is-invalid input, .fl.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--red); }
.fl.shake { animation: shake 400ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.topics label:active span { transform: scale(0.95); }
.topics input:checked + span { background: var(--sun); color: var(--ink); box-shadow: none; }
.topics input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.form__hint { font-size: 12.5px; color: var(--muted); text-align: center; }
.send__label { transition: opacity 200ms ease, filter 200ms ease; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.send[disabled] { cursor: progress; }
.send.is-sending .send__label { opacity: 0.55; }
.send.is-sending > .i { animation: send-spin 900ms linear infinite; }
@keyframes send-spin { to { transform: rotate(360deg); } }
.form__hint.is-error { color: var(--red); font-weight: 700; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: var(--surface); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 28px; }
.form__done .ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 185, 129, 0.14); color: var(--green); }
.form__done .ok svg { width: 32px; height: 32px; }
.form__done .ok path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-check 500ms 150ms var(--ease-out) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.form__done h3 { font-size: 24px; }
.form__done p { color: var(--muted); max-width: 36ch; }
@media (prefers-reduced-motion: reduce) { .form__done .ok path { animation: none; stroke-dashoffset: 0; } .send.is-sending > .i { animation: none; } }
.map { border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); height: 260px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: var(--map-filter); }

/* ---------- cómo llegar (animated route map) ---------- */
:root {
  --map-bg: #e9e6dd; --map-street: #ffffff; --map-casing: #d4cfc2; --map-major: #fffaf0;
  --map-label: #6a6f7b; --map-park: #cfe3bf; --map-park-edge: #b3d19f; --map-tree: #8dbf72; --map-route: #e8a400;
}
:root[data-theme="dark"] {
  --map-bg: #0d1220; --map-street: #1b2335; --map-casing: #080b14; --map-major: #222c42;
  --map-label: #7d879e; --map-park: #13281f; --map-park-edge: #1d3b2c; --map-tree: #2a5a40; --map-route: #f5c800;
}
.route { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: stretch; }
.route__map { position: relative; border-radius: 28px; overflow: hidden; background: var(--map-bg); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px var(--shadow); min-height: 420px; }
.rmap { display: block; width: 100%; height: 100%; min-height: 420px; }
.rmap .casing { stroke: var(--map-casing); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rmap .street { stroke: var(--map-street); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rmap .street.is-major { stroke: var(--map-major); }
.rmap .label { fill: var(--map-label); font: 700 9.5px var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; paint-order: stroke; stroke: var(--map-bg); stroke-width: 3px; pointer-events: none; }
.rmap .label.is-key { fill: var(--text); font-size: 10.5px; }
.rmap .park { fill: var(--map-park); stroke: var(--map-park-edge); stroke-width: 2; }
.rmap .tree { fill: var(--map-tree); }
.rmap .fountain { fill: #7fb3ff; stroke: #fff; stroke-width: 2; }
.rmap .park-label { fill: #3d6b2c; font: 800 9px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
:root[data-theme="dark"] .rmap .park-label { fill: #6fbf8f; }
.rmap .route-ghost { fill: none; stroke: var(--map-route); stroke-opacity: 0.22; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.rmap .route-line { fill: none; stroke: var(--map-route); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(232, 164, 0, 0.45)); }
.rmap .route-dash { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0.85; animation: dash 1.2s linear infinite; }
.rmap .start-dot { fill: #fff; stroke: var(--map-route); stroke-width: 3; }
.rmap .start-ring { fill: none; stroke: var(--map-route); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring2 2.2s var(--ease-out) infinite; }
@keyframes ring2 { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.rmap .mover circle { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.rmap .mover use { color: #fff; }
.rmap .pin { transform-box: fill-box; transform-origin: 50% 100%; }
.rmap .pin.drop { animation: pinDrop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes pinDrop { from { transform: translateY(-30px) scale(0.85); opacity: 0; } }
.rmap .pin-body { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.rmap .pin-halo { fill: var(--sun); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: ring2 2s var(--ease-out) infinite; }
.rmap .turn { fill: var(--surface); stroke: var(--map-route); stroke-width: 2; opacity: 0; transition: opacity 300ms ease; }
.rmap .turn.on { opacity: 1; }

.route__hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.route__hud > * { pointer-events: auto; }
.seg--sm { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seg--sm button { padding: 8px 14px; font-size: 13px; }
.route__play { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.route__play .i { fill: currentColor; }
.route__play.is-playing .i { opacity: 0.4; }
.route__arrived {
  position: absolute; right: 16px; bottom: 30px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -16px var(--shadow);
  opacity: 0; transform: translateY(12px) scale(0.96); transform-origin: 100% 100%; transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); pointer-events: none; white-space: nowrap;
}
.route__arrived.is-shown { opacity: 1; transform: none; }
.route__arrived b { display: block; font-family: var(--font-display); font-size: 17px; }
.route__arrived small { color: var(--muted); font-size: 12.5px; }
.route__arrived-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.route__arrived-ic .i { stroke-width: 2.6; width: 18px; height: 18px; }
.route__credit { position: absolute; right: 12px; bottom: 8px; font-size: 10.5px; color: var(--map-label); }
.route__credit a { text-decoration: underline; }

.route__side { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.route__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.route__stats div { padding: 14px 16px; border-radius: 16px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.route__stats b { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; transition: opacity 200ms ease, filter 200ms ease; }
.route__stats b.swap { opacity: 0; filter: blur(3px); }
.route__stats span { font-size: 12.5px; color: var(--muted); }
.route__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.route__steps li { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start; padding: 10px; border-radius: 16px; cursor: pointer; transition: background-color 250ms ease, transform 160ms var(--ease-out); }
.route__steps li:active { transform: scale(0.99); }
.route__steps li::after { content: ""; position: absolute; left: 28px; top: 50px; bottom: -6px; width: 2px; background: var(--line-2); border-radius: 1px; }
.route__steps li:last-child::after { display: none; }
.route__steps li.done::after { background: var(--map-route); }
.route__steps b { display: block; font-size: 15px; line-height: 1.3; }
.route__steps small { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; margin-top: 2px; }
.route__steps em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.route__n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background-color 300ms ease, color 300ms ease, transform 400ms var(--ease-out); }
.route__n .i { width: 18px; height: 18px; }
.route__steps li.active { background: rgba(245, 200, 0, 0.12); }
.route__steps li.active .route__n, .route__steps li.done .route__n { background: var(--sun); color: var(--ink); }
.route__steps li.active .route__n { transform: scale(1.08); }
@media (hover: hover) and (pointer: fine) { .route__steps li:hover { background: var(--hover); } .route__steps li.active:hover { background: rgba(245, 200, 0, 0.16); } }
.route__links { display: grid; gap: 10px; margin-top: auto; }

@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; }
  .route__map, .rmap { min-height: 0; }
  .rmap { aspect-ratio: 4 / 3.4; height: auto; }
}
@media (max-width: 600px) {
  .rmap { aspect-ratio: 1 / 1; }
  .route__arrived { right: 10px; bottom: 26px; padding: 6px 12px 6px 6px; gap: 8px; border-radius: 12px; }
  .route__arrived b { font-size: 14px; }
  .route__arrived small { font-size: 11px; }
  .route__arrived-ic { width: 28px; height: 28px; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--footer); }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer__brand img { border-radius: 14px; background: #fff; padding: 6px; width: 72px; height: auto; }
.footer__brand p { color: var(--muted); margin: 18px 0; max-width: 34ch; font-size: 14.5px; }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.social a:active { transform: scale(0.94); }
.social svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .social a:hover { background: var(--sun); color: var(--ink); } }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 15px; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { color: var(--text); } }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.credit a { color: var(--text); font-weight: 700; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0% 2px no-repeat; transition: background-size 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .credit a:hover { background-size: 100% 2px; } }
@media (max-width: 900px) { .footer__bottom { flex-direction: column; } .footer { padding-bottom: 96px; } }
.totop { display: inline-flex; align-items: center; gap: 6px; }
.totop .i { width: 16px; height: 16px; transform: rotate(-90deg); }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  height: 58px; min-width: 58px; padding: 0 17px; border-radius: 29px; display: flex; align-items: center; gap: 10px;
  background: #22c55e; color: #fff; box-shadow: 0 16px 32px -10px rgba(34, 197, 94, 0.6);
  transition: transform 160ms var(--ease-out);
}
.fab .i { width: 24px; height: 24px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 70%, 100% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); } }
.fab__label { font-weight: 700; font-size: 14px; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 400ms var(--ease-out); }
.fab:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .fab:hover .fab__label { max-width: 160px; } }

/* ---------- drawer ---------- */
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: -1px 0 0 var(--line-2), -40px 0 80px var(--shadow);
  transform: translateX(100%); transition: transform 450ms var(--ease-drawer);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 22px; }
.drawer__body { flex: 1; overflow: auto; padding: 12px 16px; }
.drawer__foot { padding: 20px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total span { color: var(--muted); }
.drawer__total b { font-family: var(--font-display); font-size: 28px; font-variant-numeric: tabular-nums; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); transition: opacity 250ms ease, transform 250ms var(--ease-out); }
.citem.is-removing { opacity: 0; transform: translateX(30px); }
.citem img { width: 64px; height: 64px; border-radius: 12px; background: #fff; object-fit: contain; padding: 4px; }
.citem b { font-size: 14px; display: block; line-height: 1.3; }
.citem small { color: var(--muted); font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 2px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.qty button:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: var(--hover); } }
.qty .i { width: 15px; height: 15px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .i { width: 48px; height: 48px; color: var(--sun-ink); margin: 0 auto 14px; display: block; stroke-width: 1.4; }

/* ---------- modal ---------- */
.modal { display: grid; place-items: center; padding: 16px; }
.modal__panel {
  position: relative; width: min(880px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 28px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px var(--shadow);
  opacity: 0; transform: scale(0.96) translateY(8px); transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__x { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(8, 11, 20, 0.6); backdrop-filter: blur(8px); }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__img { background: #fff; display: grid; place-items: center; min-height: 360px; }
.qv__img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.qv__body { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.qv__body h3 { font-size: 28px; }
.qv__price { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--sun-ink); }
.qv__specs { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.qv__specs li { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.qv__specs li span { color: var(--muted); }
.qv__actions { display: flex; gap: 10px; margin-top: auto; }
.qv__actions .qty { flex: none; }
.qv__actions .btn { flex: 1; }
.vmodal video { width: 100%; display: block; max-height: 80svh; background: #000; }
.vmodal h3 { padding: 18px 22px; font-size: 20px; }

/* ---------- toasts ---------- */
.toaster { position: fixed; left: 50%; bottom: 24px; z-index: 90; width: min(360px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -12px var(--shadow);
  pointer-events: auto; transform: translateY(var(--y, 0)) scale(var(--s, 1)); opacity: var(--o, 1);
  transition: transform 400ms ease, opacity 400ms ease;
}
@starting-style { .toast { transform: translateY(100%); opacity: 0; } }
.toast.is-leaving { opacity: 0; transform: translateY(100%) scale(0.96); transition-duration: 250ms; }
.toast__ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; flex: none; }
.toast__ic .i { width: 16px; height: 16px; stroke-width: 2.6; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .menu-btn { display: grid; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* wide XL card: keep text in the left part, illustration on the right */
  .tile--xl { padding-right: 44%; min-height: 300px; }
  .tile--xl .tile__art { width: 40%; right: 0; bottom: 50%; transform: translateY(50%); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .hero__inner, .calc, .kelvin, .edu, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__art { max-width: 620px; }
  .float-card--a { left: 8px; }
  .float-card--b { right: 8px; }
  .show { grid-template-columns: 1fr; }
  .show__media { min-height: 240px; aspect-ratio: 16 / 9; }
  .qv { grid-template-columns: 1fr; }
  .qv__img { min-height: 260px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .rotator__word { white-space: normal; }
  .brand__text small { display: none; }
  .bento { grid-template-columns: 1fr; }
  /* single column: spanning tiles must not create implicit extra columns */
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--xl, .tile--wide { grid-column: auto; grid-row: auto; }
  .tile--xl { min-height: 0; padding-right: 26px; padding-bottom: 170px; }
  .tile--xl .tile__art { bottom: -10px; right: -10px; transform: none; width: 70%; max-width: 260px; }
  .tile--xl h3 { font-size: 28px; }
  .tile__art { width: 70%; max-width: 260px; }
  .tile { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 24px; }
  .hero__stats b { font-size: 1.8rem; }
  .float-card { padding: 8px 12px 8px 8px; }
  .float-card b { font-size: 16px; }
  .float-card__icon { width: 32px; height: 32px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__body { padding: 12px; }
  .pcard__name { font-size: 13.5px; }
  .pcard__price { font-size: 18px; }
  .pcard__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .add { justify-content: center; }
  .vcard__thumb { width: 92px; }
  .calc__card { padding: 22px; }
  .roof { grid-template-columns: repeat(10, 1fr); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__orb, .scene__sunstar, .scene__shine, .scene__rays path, .float-card, .mini-sun, .marquee__track, .fab::after, .eyebrow .dot { animation: none !important; }
  .rotator__word { transform: none !important; filter: none !important; }
  .scene__flow { display: none; }
  .tile { transform: none !important; }
  .show { transform: none; filter: none; }
}
