/* =====================================================================
   NOUSS — hoja de estilos
   Sistema: cartel tipográfico suizo. Blanco, tinta y azul eléctrico
   del logotipo como campos completos. Esquinas a 0. Reglas de 1px.
   ===================================================================== */

/* ---------- Tokens ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #ffffff;
  --ink: #070a17;
  --ink-2: #11152a;
  --blue: #0244ef;          /* azul eléctrico del logotipo */
  --blue-deep: #011a63;     /* azul profundo del logotipo */
  --blue-light: #008ffe;    /* brillo del degradado del logotipo */
  --blue-wash: #eef2fe;
  --muted: #555b6e;
  --muted-dark: #a6abbd;
  --line: rgba(7, 10, 23, 0.14);
  --line-strong: rgba(7, 10, 23, 0.32);
  --line-dark: rgba(255, 255, 255, 0.18);
  --error: #b42318;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.9rem, 6.6vw, 6rem);
  --fs-display-md: clamp(2.5rem, 5.2vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 4.4vw, 3.75rem);
  --fs-h2: clamp(2rem, 3.9vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(72px, 10vw, 144px);
  --nav-h: 72px;

  --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);
}

@property --ix { syntax: "<percentage>"; inherits: true; initial-value: 14.84%; }
@property --iy { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--blue);
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.section--blue :focus-visible, .section--ink :focus-visible, .foot :focus-visible, .menu :focus-visible { outline-color: var(--white); }
html { scrollbar-color: var(--ink) var(--white); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 12px 16px; }
.skip:focus { top: 12px; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; flex: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; font-weight: 600; }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.link:hover { color: var(--blue); }
.center { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Tipografía ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.display--md { font-size: var(--fs-display-md); }
.display .line { display: block; }
.accent { color: var(--blue); }
.h1 { font-size: var(--fs-h1); font-weight: 800; font-variation-settings: "wdth" 75; line-height: 0.98; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); font-weight: 780; font-variation-settings: "wdth" 76; line-height: 0.98; letter-spacing: -0.028em; }
.h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.15; letter-spacing: -0.012em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; color: var(--muted); }
.section--ink .lead, .section--blue .lead { color: rgba(255, 255, 255, 0.82); }
.note { margin-top: 28px; color: var(--muted); font-size: var(--fs-small); max-width: 80ch; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.section--rule > .wrap { border-top: 2px solid var(--ink); padding-top: clamp(32px, 4vw, 56px); }
.section--rule { padding-top: calc(var(--section) * 0.6); }
.section--ink { background: var(--ink); color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }
.head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.head > :first-child { grid-column: 1 / 8; }
.head__aside { grid-column: 9 / 13; color: var(--muted); max-width: 42ch; }
.section--ink .head__aside, .section--blue .head__aside { color: var(--muted-dark); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.split > :first-child { grid-column: 1 / 6; }
.split > :last-child { grid-column: 6 / 13; }
.split--wide > :first-child { grid-column: 1 / 7; }
.split--wide > :last-child { grid-column: 7 / 13; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--h); padding: 0 22px;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn .i { transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--white); color: var(--muted); border: 1px dashed var(--line-strong); cursor: not-allowed; transform: none; }
.section--ink .btn--ghost, .section--blue .btn--ghost { border-color: var(--white); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--blue-deep); }
  .btn--ghost:hover { background: var(--ink); color: var(--white); }
  .btn--light:hover { background: var(--blue-wash); }
  .section--ink .btn--ghost:hover, .section--blue .btn--ghost:hover { background: var(--white); color: var(--ink); }
  .btn:hover .i { transform: translateX(3px); }
}
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--blue-wash); } }

/* ---------- Ticket (precio con especificación) ---------- */
.ticket {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px;
  border: 1px solid currentColor; font-size: var(--fs-small); color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ticket b { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.ticket--lg { color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; font-variation-settings: "wdth" 80; padding: 8px 14px; letter-spacing: -0.02em; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; background: var(--blue); color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-strong); font-size: var(--fs-small); margin-top: 24px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__brand .logo { width: auto; height: 30px; }
.nav__word { font-weight: 750; font-variation-settings: "wdth" 112; letter-spacing: 0.08em; font-size: 1.0625rem; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links > a, .dd__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; font-weight: 500; font-size: 0.9375rem; color: var(--ink); transition: color 200ms ease; }
.nav__links > a[aria-current="page"], .dd__btn[data-current] { box-shadow: inset 0 -2px 0 var(--blue); }
.dd__btn .i { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.dd__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .nav__links > a:hover, .dd__btn:hover { color: var(--blue); } }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; transition: transform 160ms var(--ease-out); }
.nav__cart:active { transform: scale(0.95); }
.nav__cart .i { width: 22px; height: 22px; }
.nav__count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--blue); color: var(--white);
  font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
  transition: transform 300ms var(--ease-out);
}
.nav__count.bump { animation: bump 400ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.nav__menu { display: none; width: 44px; height: 44px; place-items: center; }
.nav__menu .i { width: 24px; height: 24px; }

.dd { position: relative; }
.dd__panel {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 320px;
  background: var(--white); border: 1px solid var(--ink);
  transform-origin: top left; transform: scale(0.97) translateY(-4px); opacity: 0; visibility: hidden;
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out), visibility 0s linear 180ms;
}
.dd.is-open .dd__panel { transform: none; opacity: 1; visibility: visible; transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out); }
.dd__item { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; transition: background-color 150ms ease; }
.dd__item:last-child { border-bottom: 0; }
.dd__item[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
.dd__price { font-weight: 400; color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .dd__item:hover { background: var(--blue-wash); } }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 120; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; transition: opacity 240ms var(--ease-out);
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu__top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu__top .nav__menu { display: grid; }
.menu__links { display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 48px; }
.menu__links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 780; font-variation-settings: "wdth" 76; letter-spacing: -0.02em;
  transform: translateY(12px); opacity: 0;
  transition: transform 400ms var(--ease-out), opacity 400ms var(--ease-out);
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu__links small { font-size: var(--fs-small); font-weight: 400; color: var(--muted-dark); letter-spacing: 0; font-variation-settings: "wdth" 100; }

/* ---------- Hero (inicio) ---------- */
.hero { padding-top: clamp(24px, 3.4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.hero__copy { grid-column: 1 / 7; padding-top: clamp(8px, 2vw, 32px); }
.hero__copy .display { max-width: 11ch; }
.hero__sub { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--gap); margin-top: clamp(24px, 3vw, 44px); padding-top: 22px; border-top: 1px solid var(--ink); }
.hero__sub .lead { grid-column: 1 / 6; }
.hero__sub .ctas { grid-column: 1 / 9; margin-top: 8px; }
.hero__stage { grid-column: 7 / 13; padding-left: clamp(0px, 2vw, 32px); }

/* El marco que cambia de formato */
.morph { position: relative; aspect-ratio: 4 / 5; width: 100%; container-type: inline-size; --ix: 14.84%; --iy: 0%; transition: --ix 760ms var(--ease-in-out), --iy 760ms var(--ease-in-out); }
.morph[data-format="1:1"] { --ix: 0%; --iy: 10%; }
.morph[data-format="16:9"] { --ix: 0%; --iy: 27.5%; }
.morph__clip { position: absolute; inset: 0; background: var(--ink); clip-path: inset(var(--iy) var(--ix)); }
.morph__art { position: absolute; inset: 0; color: var(--white); }
.morph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(calc(var(--iy) * 0.35)); }
.morph__hook {
  position: absolute; left: calc(var(--ix) + 6%); right: calc(var(--ix) + 6%); bottom: 52%;
  font-weight: 800; font-variation-settings: "wdth" 70; font-size: 7.4cqi; line-height: 0.95; letter-spacing: -0.03em;
}
.morph__caption {
  position: absolute; left: 50%; bottom: calc(var(--iy) + 5.5%); transform: translateX(-50%);
  padding: 0.9cqi 2cqi; background: var(--white); color: var(--ink); white-space: nowrap;
  font-size: 2.6cqi; font-weight: 600;
}
.morph__fmt { position: absolute; left: calc(var(--ix) + 4%); top: calc(var(--iy) + 4%); padding: 0.6cqi 1.4cqi; background: rgba(7, 10, 23, 0.72); font-size: 3cqi; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.morph__bar { position: absolute; left: calc(var(--ix) + 4%); right: calc(var(--ix) + 4%); bottom: calc(var(--iy) + 4%); height: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.morph__bar i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0.35); animation: progress 6s linear infinite; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.morph__ui { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.morph__note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button {
  position: relative; height: 40px; padding: 0 14px; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--ink); transition: background-color 200ms ease, color 200ms ease;
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .seg button:not([aria-pressed="true"]):hover { background: var(--blue-wash); } }

/* Índice de servicios bajo el hero */
.index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(32px, 3.4vw, 48px); border-top: 2px solid var(--ink); }
.index li + li { border-left: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 12px; padding: 20px 20px 24px; height: 100%; transition: background-color 200ms ease; }
.index li:first-child a { padding-left: 0; }
.index__name { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; }
.index__price { grid-row: 2; color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.index__price b { color: var(--ink); font-weight: 700; }
.index__go { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--blue); }
.index__go .i { transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .index a:hover .index__name { color: var(--blue); }
  .index a:hover .index__go .i { transform: translateX(4px); }
}

/* ---------- Marcos de vídeo demo ---------- */
.frame { margin: 0; }
.frame__media { position: relative; overflow: hidden; container-type: inline-size; background: var(--ink); color: var(--white); }
.frame--blue .frame__media { background: var(--blue); }
.frame--paper .frame__media { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.frame__media video, .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame--photo .frame__media { background: var(--ink); color: var(--white); box-shadow: none; }
.frame--photo .frame__art { background: linear-gradient(to top, rgba(7, 10, 23, 0.78), rgba(7, 10, 23, 0) 52%); }
.frame--photo .frame__sub { opacity: 0.85; }
.frame--photo .tag { background: var(--white); color: var(--ink); }
.frame--photo .frame__play { background: var(--white); color: var(--ink); }
.frame__img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .frame--photo:hover .frame__img { transform: scale(1.03); } }
.frame__art { position: absolute; inset: 0; padding: 8cqi; display: flex; flex-direction: column; justify-content: flex-end; gap: 4cqi; }
.frame__hook { font-weight: 800; font-variation-settings: "wdth" 72; font-size: clamp(13px, 9.5cqi, 46px); line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; max-width: 16ch; }
.frame[data-format="16:9"] .frame__hook { font-size: clamp(13px, 6cqi, 46px); max-width: 20ch; }
.frame__sub { font-size: clamp(10px, 4.4cqi, 15px); font-weight: 500; opacity: 0.72; }
.frame__bar { display: block; height: 2px; background: currentColor; opacity: 0.22; position: relative; }
.frame__bar i { position: absolute; inset: 0; background: currentColor; opacity: 1; transform-origin: left; transform: scaleX(0.3); }
.tag { position: absolute; top: 0; left: 0; padding: 4px 8px; background: var(--white); color: var(--ink); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.frame--paper .tag { background: var(--ink); color: var(--white); }
.frame__play {
  position: absolute; top: 50%; left: 50%; width: clamp(36px, 16cqi, 56px); aspect-ratio: 1;
  display: grid; place-items: center; background: var(--white); color: var(--ink);
  transform: translate(-50%, -50%) scale(0.9); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.frame--paper .frame__play { background: var(--ink); color: var(--white); }
.frame__play .i { width: 40%; height: 40%; margin-left: 6%; }
.frame figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: var(--fs-small); }
.frame figcaption span:first-child { font-weight: 600; }
.frame__spec { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .frame:hover .frame__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .frame:hover .frame__bar i { animation: progress 3s linear infinite; }
}

/* ---------- Servicios (tarjetas grandes) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.tile { min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.tile:nth-child(odd) { padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--line); }
.tile:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); }
.tile__media { height: clamp(260px, 28vw, 400px); display: flex; align-items: flex-end; justify-content: flex-start; margin-bottom: 28px; container-type: inline-size; }
.tile__media > .frame, .trio > .frame { height: 100%; }
.tile__media .frame__media, .trio .frame__media { height: 100%; width: auto; }
.tile__media > .frame[data-format="16:9"] { height: auto; width: 100%; }
.tile__media > .frame[data-format="16:9"] .frame__media { height: auto; width: 100%; max-height: 100%; }
.tile__media .frame, .trio .frame { transition: transform 400ms var(--ease-out); }
.trio { display: flex; gap: 12px; height: min(100%, calc((100cqi - 24px) / 1.85)); align-items: flex-end; }
.trio > .frame:nth-child(1) { height: 72%; }
.tile__body { display: flex; flex-direction: column; flex: 1; }
.tile__body .h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 780; font-variation-settings: "wdth" 76; letter-spacing: -0.025em; }
.tile__line { margin: 10px 0 8px; font-weight: 600; color: var(--blue); }
.tile__text { color: var(--muted); max-width: 46ch; }
.tile__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 24px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__media .frame { transform: translateY(-6px); }
  .tile:hover .trio .frame:nth-child(2) { transition-delay: 40ms; }
  .tile:hover .trio .frame:nth-child(3) { transition-delay: 80ms; }
}

/* ---------- Pilares (diferenciación) ---------- */
.pillars { border-top: 2px solid var(--white); }
.pillar { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line-dark); }
.pillar__title { grid-column: 1 / 7; font-size: clamp(1.875rem, 3.6vw, 3.25rem); font-weight: 780; font-variation-settings: "wdth" 76; line-height: 1; letter-spacing: -0.028em; }
.pillar__body { grid-column: 8 / 13; color: rgba(255, 255, 255, 0.82); }
.marks { display: grid; gap: 10px; margin-top: 20px; }
.marks li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.marks li::before { content: ""; width: 8px; height: 8px; background: var(--blue-light); flex: none; transform: translateY(-1px); }
.section--ink .marks li { color: var(--white); }
.marks--ink li::before { background: var(--blue); }
.section--blue .marks li::before, .compare__col--hi .marks li::before { background: var(--white); }

/* ---------- Trabajos ---------- */
/* Hoja de contactos: filas de altura fija, cada pieza en su formato real, bandera a la izquierda */
.works { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 3vw, 44px) var(--gap); }
/* Filas justificadas: cada pieza crece en proporción a su formato y las filas llenan la medida */
.works { --h: clamp(200px, 22vw, 340px); }
.works::after { content: ""; flex: 1.5 1 0; }
.works .frame { flex: var(--ar) 1 calc(var(--h) * var(--ar)); min-width: 0; max-width: calc(var(--h) * var(--ar) * 1.45); }
.works .frame__media { width: 100%; height: auto; }
.works .frame figcaption { flex-wrap: wrap; gap: 2px 12px; }
.works .frame.is-hidden { display: none; }
.works .frame.is-entering { animation: enter 420ms var(--ease-out) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Cómo funciona ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps3 li { padding-right: clamp(0px, 2vw, 32px); }
.steps3__n { display: block; font-size: clamp(4rem, 7.5vw, 6rem); font-weight: 850; font-variation-settings: "wdth" 70; line-height: 0.8; color: var(--blue); letter-spacing: -0.04em; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.steps3 .h3 { margin-bottom: 10px; }
.steps3 p { color: var(--muted); max-width: 38ch; }

/* ---------- Filosofía ---------- */
.philo { overflow: hidden; }
.philo__fig { margin: 0; }
.philo__quote { margin: 0; }
.philo__quote p { font-size: clamp(2.25rem, 5.6vw, 5.5rem); font-weight: 820; font-variation-settings: "wdth" 70; line-height: 0.95; letter-spacing: -0.035em; max-width: 17ch; }
.philo__echo { display: flex; flex-direction: column; font-size: clamp(2.25rem, 5.6vw, 5.5rem); font-weight: 820; font-variation-settings: "wdth" 70; line-height: 0.95; letter-spacing: -0.035em; color: var(--white); }
.philo__echo span { white-space: nowrap; }
.philo__echo span:nth-child(1) { opacity: 0.5; padding-left: 0.6em; }
.philo__echo span:nth-child(2) { opacity: 0.28; padding-left: 1.2em; }
.philo__echo span:nth-child(3) { opacity: 0.12; padding-left: 1.8em; }
.js .philo__echo span { transform: translateY(-40%); opacity: 0; transition: transform 900ms var(--ease-out), opacity 900ms var(--ease-out); }
.js .philo__echo.in span:nth-child(1) { transform: none; opacity: 0.5; transition-delay: 120ms; }
.js .philo__echo.in span:nth-child(2) { transform: none; opacity: 0.28; transition-delay: 220ms; }
.js .philo__echo.in span:nth-child(3) { transform: none; opacity: 0.12; transition-delay: 320ms; }
.philo figcaption { margin-top: 40px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.philo figcaption::before { content: ""; width: 40px; height: 2px; background: var(--white); }

/* ---------- Tabla "precios desde" ---------- */
.ptable { border-top: 2px solid var(--ink); }
.ptable__row { display: grid; grid-template-columns: 1fr auto minmax(120px, auto) 40px; align-items: baseline; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ptable__name { font-size: var(--fs-h3); font-weight: 650; transition: color 200ms ease; }
.ptable__from { color: var(--muted); font-size: var(--fs-small); }
.ptable__price { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; font-variation-settings: "wdth" 76; letter-spacing: -0.025em; text-align: right; font-variant-numeric: tabular-nums; }
.ptable__go { color: var(--blue); justify-self: end; }
.ptable__go .i { transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ptable__row:hover .ptable__name { color: var(--blue); }
  .ptable__row:hover .ptable__go .i { transform: translateX(4px); }
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.1875rem; transition: color 200ms ease; }
.faq__item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover { color: var(--blue); } }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform 250ms var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 24px; color: var(--muted); max-width: 66ch; }
.faq:not(.faq--js) .faq__item[open] .faq__a, .faq--js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq:not(.faq--js) .faq__item[open] .faq__icon::after, .faq--js .faq__item.is-open .faq__icon::after { transform: rotate(0deg); }

/* ---------- CTA final ---------- */
.cta-final { border-top: 2px solid var(--ink); }
.cta-final__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.cta-final__grid > :first-child { grid-column: 1 / 8; }
.cta-final .lead { margin-top: 24px; }
.cta-final__mark { grid-column: 9 / 13; justify-self: end; width: min(100%, 380px); }
.cta-final__mark .logo { width: 100%; height: auto; }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: var(--white); padding: clamp(56px, 7vw, 96px) 0 32px; }
.foot__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot__brand .logo { height: 64px; width: auto; }
.foot__claim { font-size: clamp(1.5rem, 2.8vw, 2.5rem); font-weight: 780; font-variation-settings: "wdth" 76; line-height: 1; letter-spacing: -0.025em; text-align: right; margin: 0; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding: 40px 0 56px; }
.foot__h { font-size: var(--fs-small); font-weight: 600; color: var(--muted-dark); margin-bottom: 14px; }
.foot__cols a { display: block; padding: 6px 0; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot__cols a:hover { color: var(--blue-light); } }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8125rem; color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding-top: 24px; }

/* ---------- Héroes de producto ---------- */
.phero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); }
.phero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.phero__copy { grid-column: 1 / 7; }
.phero__copy .lead { margin-top: 28px; }
.phero__media { grid-column: 8 / 13; }
.phero__buy { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.phero__note { color: var(--muted); font-size: var(--fs-small); }
.shero { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.shero .lead { margin-top: 24px; }

.sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; container-type: inline-size; }
.sheet > * { min-width: 0; }
.sheet__photos { display: flex; gap: 12px; height: calc((100cqi - 24px) / 1.865); align-items: flex-end; }
.sheet__photos .frame { height: 100%; }
.sheet__photos .frame:first-child { height: 74%; }
.sheet__photos .frame__media { height: 100%; width: auto; }
.sheet__card { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--ink); }
.sheet__card div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet__card div:nth-child(odd) { border-right: 1px solid var(--line); }
.sheet__card dt { font-size: 0.75rem; color: var(--muted); }
.sheet__card dd { margin: 2px 0 0; font-weight: 600; }
.sheet__tag { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; font-size: 0.8125rem; color: var(--muted); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.duo .frame:first-child { margin-bottom: 48px; }

.specs { border-top: 2px solid var(--ink); }
.specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.specs__name { font-weight: 600; font-size: 1.0625rem; }
.specs__name small { font-weight: 400; color: var(--muted); }
.specs__val { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.specs--dark { border-top-color: var(--white); }
.specs--dark li { border-bottom-color: var(--line-dark); }
.specs--dark .specs__val, .specs--dark .specs__name small { color: var(--muted-dark); }
.sub { margin: 40px 0 16px; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.benefits li { border-top: 2px solid currentColor; padding-top: 20px; padding-right: clamp(0px, 2vw, 32px); }
.benefits .h3 { margin-bottom: 10px; }
.benefits p { color: var(--muted); }
.section--ink .benefits p { color: var(--muted-dark); }

.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: end; }

.reuse .lead { margin-top: 24px; }
.flow { display: grid; gap: 0; }
.flow li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.5); font-weight: 600; position: relative; }
.flow li + li { margin-top: 28px; }
.flow li + li::before { content: ""; position: absolute; left: 32px; top: -29px; width: 1px; height: 28px; background: rgba(255, 255, 255, 0.5); }
.flow li:first-child { background: var(--white); color: var(--blue); border-color: var(--white); }
.flow__k { opacity: 0.8; font-weight: 500; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: 40px; }
.compare__col { border: 1px solid var(--ink); padding: clamp(24px, 3vw, 40px); }
.compare__col .h3 { margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.compare__col--hi { background: var(--blue); color: var(--white); border-color: var(--blue); }
.compare__col--hi .badge { background: var(--white); color: var(--blue); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); }
.table th, .table td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.table thead th { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.table tbody th { font-weight: 600; }
.table td { white-space: nowrap; }
.table s, .extra s, .cart-line s { color: var(--muted); margin-right: 6px; text-decoration-thickness: 1px; }
.table b { font-size: 1.125rem; }

.caps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 var(--gap); border-top: 2px solid var(--ink); }
.caps li { display: flex; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.caps li::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }

.ba { display: grid; gap: 8px; }
.ba__item { position: relative; }
.ba__k { position: absolute; top: 0; right: 0; padding: 4px 10px; background: var(--blue); color: var(--white); font-size: 0.75rem; font-weight: 700; }
.ba__arrow { display: grid; place-items: center; color: var(--blue); }
.ba__arrow .i { width: 28px; height: 28px; }

.band__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.band__grid > :first-child { grid-column: 1 / 7; }
.band__grid > :last-child { grid-column: 8 / 13; }
.band .ctas { margin-top: 24px; }

/* Motion graphics: hero con carrete de piezas */
.mhero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.mhero .display { max-width: 14ch; }
.mhero__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-top: clamp(28px, 3vw, 48px); padding-top: 24px; border-top: 1px solid var(--ink); }
.mhero__row .lead { grid-column: 1 / 6; }
.mhero__row .phero__buy { grid-column: 7 / 10; margin: 0; }
.mhero__row .ctas { grid-column: 10 / 13; justify-content: flex-end; margin: 0; }
.reel { margin-top: clamp(40px, 5vw, 72px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; padding-bottom: 12px; }
.reel__track { display: flex; gap: var(--gap); padding: 0 var(--gutter); width: max-content; height: clamp(300px, 38vw, 540px); }
.reel .frame { height: calc(100% - 34px); scroll-snap-align: start; }
.reel .frame__media { height: 100%; width: auto; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.9375rem; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter__n { font-size: 0.75rem; font-weight: 500; opacity: 0.6; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .filter:not([aria-pressed="true"]):hover { border-color: var(--ink); } }
.empty { color: var(--muted); }

/* Precios */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.pcard { display: flex; flex-direction: column; gap: 4px; padding: clamp(20px, 2.4vw, 32px); min-height: 220px; border-right: 1px solid var(--ink); transition: background-color 220ms ease, color 220ms ease; }
.pcard:last-child { border-right: 0; }
.pcard__name { font-weight: 650; font-size: 1.125rem; }
.pcard__from { margin-top: auto; color: var(--muted); font-size: var(--fs-small); transition: color 220ms ease; }
.pcard__price { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 820; font-variation-settings: "wdth" 72; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: var(--fs-small); color: var(--blue); transition: color 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { background: var(--blue); color: var(--white); }
  .pcard:hover .pcard__from, .pcard:hover .pcard__go { color: var(--white); }
}
.bigprice { display: flex; align-items: baseline; gap: 14px; font-variant-numeric: tabular-nums; }
.bigprice span { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 820; font-variation-settings: "wdth" 72; line-height: 1; letter-spacing: -0.035em; }
.bigprice small { color: var(--muted); }

/* ---------- Configurador ---------- */
.config { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.config__steps { grid-column: 1 / 9; display: grid; gap: clamp(40px, 5vw, 64px); }
.step__head { display: flex; gap: 16px; align-items: flex-start; padding-top: 20px; border-top: 2px solid var(--ink); margin-bottom: 28px; }
.step__n { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.step__head .h3, .step__head h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 36px; }
.step__head p { color: var(--muted); margin-top: 4px; }
.step__body { display: grid; gap: 28px; padding-left: 52px; }
.step.is-done .step__n { background: var(--blue); }

.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.field__label { font-weight: 650; font-size: 0.9375rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.8125rem; margin-left: 6px; }
.field__hint { color: var(--muted); font-size: var(--fs-small); margin: -2px 0 0; }
.field__error { color: var(--error); font-size: 0.8125rem; margin: 0; min-height: 0; }
.field__error:empty { display: none; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 0; font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease; -webkit-appearance: none; appearance: none;
}
textarea.input { padding: 14px 16px; resize: vertical; line-height: 1.5; min-height: 112px; }
.input::placeholder { color: #6b7083; }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.is-invalid .input, .input.is-invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.select { position: relative; }
.select .input { padding-right: 44px; cursor: pointer; }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; }

.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips[style*="--cols"] .chips__row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip__box {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 48px; height: 100%; padding: 12px 34px 12px 14px;
  border: 1px solid var(--line-strong); background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active .chip__box { transform: scale(0.98); }
.chip__label { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.chip__meta { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip__mark { position: absolute; top: 50%; right: 12px; width: 10px; height: 10px; border: 1px solid var(--line-strong); transform: translateY(-50%); transition: background-color 150ms ease, border-color 150ms ease; }
.chip input:checked + .chip__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + .chip__box .chip__mark { background: var(--blue); border-color: var(--blue); }
.chip input:focus-visible + .chip__box { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip:hover .chip__box { border-color: var(--ink); } }
.chips--swatch .chip__box { flex-direction: row; align-items: center; gap: 10px; }
.chip__sw { width: 22px; height: 22px; box-shadow: inset 0 0 0 1px rgba(7, 10, 23, 0.18); flex: none; }

.extra { position: relative; display: block; cursor: pointer; }
.extra input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.extra__box { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line-strong); transition: border-color 150ms ease, box-shadow 150ms ease, background-color 200ms ease; }
.extra__check { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ink); color: transparent; transition: background-color 150ms ease, color 150ms ease; }
.extra__check .i { width: 18px; height: 18px; stroke-width: 2; }
.extra__text { display: grid; gap: 2px; }
.extra__title { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.extra__desc { color: var(--muted); font-size: var(--fs-small); }
.extra__price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.extra__price b { font-size: 1.125rem; }
.extra input:checked + .extra__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--blue-wash); }
.extra input:checked + .extra__box .extra__check { background: var(--blue); border-color: var(--blue); color: var(--white); }
.extra input:focus-visible + .extra__box { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .extra:hover .extra__box { border-color: var(--ink); } }

.stepper { display: inline-flex; border: 1px solid var(--ink); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; transition: background-color 150ms ease; }
.stepper button:active { transform: scale(0.94); }
.stepper button:disabled { color: var(--line-strong); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .stepper button:not(:disabled):hover { background: var(--blue-wash); } }
.stepper input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm button { width: 36px; height: 36px; }
.stepper--sm input, .stepper--sm output { width: 40px; display: grid; place-items: center; font-weight: 700; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }

.drop { position: relative; display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px dashed var(--line-strong); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.is-over, .drop:hover { border-color: var(--blue); background: var(--blue-wash); }
.drop:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.drop__icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--white); flex: none; }
.drop__text { display: grid; gap: 2px; }
.drop__text span { color: var(--muted); font-size: var(--fs-small); }
.drop__demo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8125rem; color: var(--muted); }
.drop__list { display: grid; gap: 6px; }
.drop__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); font-size: var(--fs-small); }
.drop__list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.drop__list small { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }

.promo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--ink); color: var(--white); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.promo:active { transform: scale(0.99); }
.promo__go .i { transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .promo:hover { background: var(--blue); } .promo:hover .promo__go .i { transform: translateX(4px); } }

/* Resumen con precio en vivo */
.summary { grid-column: 9 / 13; position: sticky; top: calc(var(--nav-h) + 24px); }
.summary__inner { border: 1px solid var(--ink); padding: clamp(20px, 2.2vw, 28px); background: var(--white); }
.summary__title { font-size: 1.125rem; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary__lines { margin: 0; padding: 12px 0; display: grid; gap: 0; }
.summary__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.9375rem; }
.summary__lines dt { color: var(--muted); }
.summary__lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.summary__lines .is-price dd { color: var(--ink); }
.summary__lines .is-free dd { color: var(--blue); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; border-top: 2px solid var(--ink); }
.summary__total span { font-weight: 600; }
.summary__total output, .summary__bar output { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 820; font-variation-settings: "wdth" 72; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: filter 200ms ease, opacity 200ms ease; }
output.is-changing { filter: blur(2px); opacity: 0.6; }
.summary__fine { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }
.summary__bar { display: none; }

/* ---------- Carrito (cajón y página) ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(7, 10, 23, 0.5); opacity: 0; transition: opacity 300ms ease; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--white); display: flex; flex-direction: column; outline: none;
  transform: translateX(100%); transition: transform 420ms var(--ease-drawer);
  box-shadow: -24px 0 48px -24px rgba(7, 10, 23, 0.4);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.375rem; font-weight: 780; font-variation-settings: "wdth" 80; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 20px 24px max(20px, env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); }

.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__title { font-weight: 700; font-size: 1.0625rem; }
.cart-line__opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; font-size: 0.8125rem; color: var(--muted); }
.cart-line__opts span { padding: 2px 6px; border: 1px solid var(--line); }
.cart-line__price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-line__controls { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.cart-line__remove { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--muted); height: 36px; padding: 0 4px; transition: color 150ms ease; }
.cart-line__remove .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .cart-line__remove:hover { color: var(--error); } }
.cart-line.is-leaving { animation: leave 220ms var(--ease-out) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(16px); } }
.cart-line__breakdown { grid-column: 1 / -1; display: grid; gap: 2px; font-size: 0.8125rem; color: var(--muted); }
.cart-line__breakdown div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total span { font-weight: 600; }
.cart-total output { font-size: 2rem; font-weight: 820; font-variation-settings: "wdth" 72; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cart-pay { display: grid; gap: 10px; }
.cart-pay__note { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; color: var(--muted); margin: 0; }
.cart-empty { padding: 48px 0; text-align: left; }
.cart-empty h2, .cart-empty h3 { font-size: 1.5rem; font-weight: 780; font-variation-settings: "wdth" 80; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); }
.cart-empty .ctas { margin-top: 20px; }

.cartpage__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.cartpage__list { grid-column: 1 / 9; border-top: 2px solid var(--ink); }
.cartpage__sum { grid-column: 9 / 13; position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--ink); padding: 24px; }
.cartpage__sum h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 12px; }
.cartpage__sum .summary__lines { border-bottom: 2px solid var(--ink); margin-bottom: 16px; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 160;
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px;
  background: var(--ink); color: var(--white); font-weight: 600; font-size: 0.9375rem;
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none;
  transition: transform 340ms var(--ease-out), opacity 240ms ease;
  max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .i { color: var(--blue-light); }
.toast a { padding: 8px 12px; background: var(--white); color: var(--ink); font-size: 0.875rem; white-space: nowrap; }

/* ---------- Formularios simples (contacto) ---------- */
.form { display: grid; gap: 20px; }
.card-line { border: 1px solid var(--ink); padding: clamp(20px, 3vw, 36px); }
.form__fine { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; color: var(--muted); margin: 0; }
.form__done { border: 1px solid var(--blue); background: var(--blue-wash); padding: 20px; }
.form__done .h3 { margin-bottom: 6px; }
.contact .marks { margin-top: 32px; }

/* ---------- Legales ---------- */
.legal .h1 { max-width: 12ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 10px; }
.prose p { color: #31364a; }
.callout { border: 1px dashed var(--line-strong); padding: 16px 18px; font-size: var(--fs-small); }
.pending { background: var(--blue-wash); color: var(--blue); padding: 0 4px; font-weight: 600; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links > a, .dd__btn { padding: 0 9px; }
  .caps { grid-template-columns: repeat(3, 1fr); }
  .hero__copy { grid-column: 1 / 7; }
  .hero__stage { grid-column: 7 / 13; padding-left: 0; }
}

@media (max-width: 1023px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: grid; }
  .nav__actions { margin-left: auto; }

  .hero__grid, .phero__grid { grid-template-columns: 1fr; }
  .hero__copy, .hero__stage, .phero__copy, .phero__media { grid-column: 1 / -1; }
  .hero__copy .display { max-width: 12ch; }
  .hero__stage { width: min(100%, 440px); margin-top: 40px; order: 3; }
  .hero__copy { order: 1; }
  .hero .index { order: 2; }
  .phero__media { margin-top: 40px; max-width: 560px; }
  .index { grid-template-columns: 1fr 1fr; }
  .index li:nth-child(3) { border-left: 0; }
  .index li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .index li:nth-child(3) a { padding-left: 0; }

  .head { grid-template-columns: 1fr; gap: 16px; }
  .head > :first-child, .head__aside { grid-column: 1 / -1; }
  .split, .split--wide { grid-template-columns: 1fr; gap: 32px; }
  .split > :first-child, .split > :last-child { grid-column: 1 / -1; }
  .pillar { grid-template-columns: 1fr; gap: 16px; }
  .pillar__title, .pillar__body { grid-column: 1 / -1; }
  .band__grid, .cta-final__grid, .mhero__row { grid-template-columns: 1fr; gap: 24px; }
  .band__grid > *, .cta-final__grid > *, .mhero__row > * { grid-column: 1 / -1 !important; }
  .mhero__row .ctas { justify-content: flex-start; }
  .cta-final__mark { justify-self: start; width: min(60%, 260px); }

  .config { grid-template-columns: 1fr; }
  .config__steps { grid-column: 1 / -1; }
  .summary { grid-column: 1 / -1; position: static; }
  .summary__bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
    background: var(--white); border-top: 2px solid var(--ink);
    transform: translateY(110%); transition: transform 300ms var(--ease-out);
  }
  .summary__bar.is-on { transform: none; }
  body:has(.summary__bar.is-on) .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { left: var(--gutter); right: var(--gutter); max-width: none; transform: translateY(calc(100% + 120px)); }
  .toast.is-on { transform: none; }
  .toast span { flex: 1; }
  .summary__bar div { display: grid; line-height: 1.1; }
  .summary__bar div span { font-size: 0.75rem; color: var(--muted); }
  .summary__bar output { font-size: 1.75rem; }

  .cartpage__grid { grid-template-columns: 1fr; }
  .cartpage__list, .cartpage__sum { grid-column: 1 / -1; position: static; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pcard:nth-child(2) { border-right: 0; }
  .pcard:nth-child(-n + 2) { border-bottom: 1px solid var(--ink); }
  .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile:nth-child(odd), .tile:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
  .steps3, .benefits { grid-template-columns: 1fr; gap: 40px; }
  .compare { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .foot__top { flex-direction: column; align-items: flex-start; }
  .foot__claim { text-align: left; }
  .foot__cols { grid-template-columns: 1fr 1fr; }

  .step__body { padding-left: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .chips[style*="--cols"] .chips__row { grid-template-columns: 1fr; }
  .duo .frame:first-child { margin-bottom: 32px; }
}

@media (max-width: 560px) {
  :root { --fs-display: clamp(2.6rem, 12.4vw, 3.6rem); }
  .hero__sub { grid-template-columns: 1fr; }
  .hero__sub .lead, .hero__sub .ctas { grid-column: 1 / -1; }
  .ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .index { grid-template-columns: 1fr; }
  .index li + li { border-left: 0; border-top: 1px solid var(--line); }
  .index a { padding: 16px 0 !important; }
  .ptable__row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .ptable__from { grid-row: 2; }
  .ptable__price { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .ptable__go { display: none; }
  .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .row4 figcaption { flex-direction: column; gap: 2px; }
  .works { gap: 24px 12px; }
  .works { --h: 150px; }
  .works .frame[data-format="16:9"] { flex-basis: 100%; }
  .works figcaption { flex-direction: column; }
  .tile__media { height: auto; }
  .tile__media > .frame:not([data-format="16:9"]) { height: auto; width: min(100%, 260px); }
  .tile__media > .frame .frame__media { height: auto; width: 100%; }
  .tile__media > .frame[data-format="16:9"] { width: 100%; }
  .trio { height: calc((100cqi - 24px) / 1.85); }
  .pgrid { grid-template-columns: 1fr; }
  .pcard { border-right: 0; border-bottom: 1px solid var(--ink); min-height: 0; }
  .pcard:last-child { border-bottom: 0; }
  .extra__box { grid-template-columns: auto 1fr; }
  .extra__price { grid-column: 2; text-align: left; }
  .table th, .table td { padding-right: 10px; font-size: 0.9375rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filter { flex: none; }
  .summary__bar .btn { flex: none; }
  .foot__bottom { flex-direction: column; }
}

/* Movimiento reducido: sin movimientos intrusivos (sí opacidad y color) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .morph__bar i { animation: none; transform: scaleX(0.35); }
  .js .reveal { transform: none; }
  .js .philo__echo span { transform: none; }
  .drawer__panel { transition-duration: 200ms; }
}

/* =====================================================================
   MOVIMIENTO — una sola gramática para toda la web
   Entradas: ease-out fuerte. Movimiento en pantalla: ease-in-out.
   Interacción ≤ 300 ms. Presentación (titulares, imágenes) más lenta.
   ===================================================================== */

/* 1. Titulares: cada palabra sube desde su máscara, escalonado corto */
.js .reveal.wsplit { opacity: 1; transform: none; }
.wsplit .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.04em 0.1em; margin: -0.14em -0.04em -0.1em; }
.wsplit .w__in { display: inline-block; }
.js .wsplit .w__in { transform: translateY(108%); transition: transform 950ms var(--ease-out); transition-delay: calc(var(--i, 0) * 32ms + 60ms); }
.js .wsplit.in .w__in, .js .in .wsplit .w__in { transform: none; }

/* 2. Piezas e imágenes: se descubren de abajo arriba; la foto se asienta */
.frames-js .frame__media, .frames-js .morph { clip-path: inset(100% 0 0 0); transition: clip-path 1050ms var(--ease-out); transition-delay: var(--fd, 0ms); }
.frames-js .frame__media.is-in, .frames-js .morph.is-in { clip-path: inset(0 0 0 0); }
.frames-js .frame__img, .frames-js .morph__img { scale: 1.12; transition: scale 1400ms var(--ease-out); transition-delay: var(--fd, 0ms); }
.frames-js .is-in .frame__img, .frames-js .morph.is-in .morph__img { scale: 1; }
.frame__img { transition: scale 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .frame--photo:hover .frame__img { transform: none; scale: 1.035; transition-delay: 0ms; }
}

/* 3. Reglas suizas: se dibujan de izquierda a derecha */
.js .draw { position: relative; border-top-color: transparent !important; }
.js .draw::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--bw) * -1); height: var(--bw); background: var(--bc); transform: scaleX(0); transform-origin: left center; transition: transform 1200ms var(--ease-in-out); pointer-events: none; }
.js .draw.drawn::after { transform: none; }

/* 4. Navegación: se aparta al bajar, vuelve al subir */
.nav { transition: transform 380ms var(--ease-drawer), border-color 200ms ease; }
.nav.is-hidden { transform: translateY(-100%); }

/* 5. Selector de formato: un indicador que se desliza entre opciones */
.seg.has-ind { position: relative; }
.seg__ind { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--ink); transition: transform 320ms var(--ease-in-out), width 320ms var(--ease-in-out); pointer-events: none; }
.seg.has-ind button { position: relative; z-index: 1; background: transparent !important; transition: color 220ms ease; }
.seg.has-ind button[aria-pressed="true"] { color: var(--white); }

/* 6. Flecha de los botones: sale por la derecha y vuelve por la izquierda */
.btn { overflow: hidden; }
@keyframes arrow-loop {
  0% { transform: translateX(0); opacity: 1; }
  44% { transform: translateX(140%); opacity: 0; }
  45% { transform: translateX(-140%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .i { transform: none; animation: arrow-loop 420ms var(--ease-out); }
}

/* 7. Marca de selección: el cuadrado crece desde dentro */
.chip__mark::after { content: ""; position: absolute; inset: 1px; background: var(--blue); transform: scale(0.3); opacity: 0; transition: transform 180ms var(--ease-out), opacity 120ms ease; }
.chip input:checked + .chip__box .chip__mark { background: transparent; border-color: var(--blue); }
.chip input:checked + .chip__box .chip__mark::after { transform: none; opacity: 1; }
.extra__check .i { transform: scale(0.6); opacity: 0; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.extra input:checked + .extra__box .extra__check .i { transform: none; opacity: 1; }

/* 8. Total que rueda: el precio viejo sube, el nuevo llega desde abajo */
.summary__total output, .summary__bar output { display: inline-block; transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out), filter 240ms ease; }
output.roll-out { transform: translateY(-40%); opacity: 0; filter: blur(2px); transition-duration: 130ms; }
output.roll-in { transform: translateY(40%); opacity: 0; filter: blur(2px); transition: none; }

/* 9. Botón "Añadir": cambio de estado con desenfoque, fondo a tinta */
.btn > span, .btn > .i { transition: filter 130ms ease, opacity 130ms ease; }
.btn.is-swapping > span, .btn.is-swapping > .i { filter: blur(3px); opacity: 0; }
.btn--primary.is-added { background: var(--ink); }

/* 10. Carrito: las líneas entran escalonadas al abrir; el cajón sale más rápido de lo que entra */
.drawer.is-staggering .cart-line { animation: line-in 420ms var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 45ms); }
@keyframes line-in { from { opacity: 0; transform: translateX(16px); } }
.drawer:not(.is-open) .drawer__panel { transition-duration: 280ms; }
.drawer:not(.is-open) .drawer__scrim { transition-duration: 200ms; }
.toast:not(.is-on) { transition: transform 200ms var(--ease-out), opacity 160ms ease; }

/* 11. Navegación entre páginas: fundido corto, la barra se queda quieta */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition-old(root) { animation: vt-out 160ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 340ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Vídeo de portada (9:16): en vertical se ve entero; en 1:1 y 16:9 se amplía para cubrir el formato */
@property --vs { syntax: "<number>"; inherits: true; initial-value: 1; }
.morph { --vs: 1; transition: --ix 760ms var(--ease-in-out), --iy 760ms var(--ease-in-out), --vs 760ms var(--ease-in-out); }
/* El vídeo llena siempre el formato visible; el recorte se ancla arriba para no cortar la cabeza */
.morph[data-format="1:1"], .morph[data-format="16:9"] { --vs: 1.4225; }
video.morph__img { inset: var(--iy) auto auto 50%; width: auto; height: 100%; aspect-ratio: 9 / 16; transform: translateX(-50%) scale(var(--vs)); transform-origin: 50% 0; }

/* 13. Vitrina de la portada: tres servicios, tres formatos, en vivo */
/* Columnas calculadas para que el vertical (9:16) mida lo mismo que dos horizontales (16:9) apilados */
.showcase { display: grid; grid-template-columns: 39fr 61fr; grid-template-rows: auto auto; gap: 10px; align-items: start; }
.sc { min-width: 0; position: relative; }
.sc--ugc { grid-row: 1 / 3; }
.sc--motion { align-self: start; }
.sc--edit { align-self: end; }
.sc .frame__media { transition: opacity 500ms ease, filter 500ms ease; }
.sc .frame__art { display: none; }
.sc .tag { transition: background-color 300ms ease, color 300ms ease; }
.sc.is-active .tag { background: var(--blue); color: var(--white); }
.showcase.has-active .sc:not(.is-active) .frame__media { opacity: 0.78; filter: saturate(0.55) brightness(0.92); }
@media (hover: hover) and (pointer: fine) { .showcase.has-active .sc:hover .frame__media { opacity: 1; filter: none; } }
.sc-legend { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--ink); }
.sc-legend li + li { border-left: 1px solid var(--line); }
.sc-legend a { display: grid; gap: 10px; padding: 12px 12px 4px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); transition: color 250ms ease; }
.sc-legend li:first-child a { padding-left: 0; }
.sc-legend a.is-active, .sc-legend a:focus-visible { color: var(--ink); }
.sc-legend__bar { position: relative; display: block; height: 2px; background: var(--line); overflow: hidden; }
.sc-legend__bar i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left center; }
.sc-legend a.is-active .sc-legend__bar i { animation: sc-fill var(--sc-dur, 5000ms) linear forwards; }
.showcase-paused .sc-legend a.is-active .sc-legend__bar i { animation-play-state: paused; }
.sc-legend a.is-held .sc-legend__bar i { animation: none; transform: none; }
@keyframes sc-fill { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .sc-legend a:hover { color: var(--blue); } }
@media (max-width: 1023px) { .hero__stage { width: min(100%, 560px); padding-left: 0; } }
@media (max-width: 560px) { .tag__more { display: none; } }
@media (max-width: 560px) { .works .frame__spec { white-space: normal; } .phero__grid { grid-template-columns: minmax(0, 1fr); } .phero__grid > * { min-width: 0; } .sc-legend a { padding: 10px 6px 4px; font-size: 0.75rem; } .showcase { gap: 6px; } .sc .tag { font-size: 0.625rem; padding: 3px 6px; } .sc .sound { width: 32px; height: 32px; } }

/* 14. Tienda: modo prueba, subidas reales y datos del pedido */
.testmode { position: relative; z-index: 60; display: flex; justify-content: center; gap: 16px; align-items: center; padding: 8px 16px; background: var(--ink); color: var(--white); font-size: 0.8125rem; font-weight: 600; }
.testmode span { display: inline-flex; align-items: center; gap: 8px; }
.testmode a { color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; }
.up-st { white-space: nowrap; } .up-st--ok { color: #0a7d43; } .up-st--err { color: var(--error); }
.checkout { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 2px solid var(--ink); max-width: 760px; }
.checkout .h2 { margin-bottom: 28px; }
.checkout__form { display: grid; gap: 20px; }
.billing { margin: 8px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line-strong); display: grid; gap: 18px; min-width: 0; }
.billing__title { padding: 0; font-size: var(--fs-h3); font-weight: 700; margin-bottom: 4px; }
.billing__fields { display: grid; gap: 18px; }
.billing .opt { display: none; }
.grid3 { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 20px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
.accepts { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line-strong); }
.accept { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; cursor: pointer; }
.accept input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.accept.is-invalid { color: var(--error); }
.checkout__error { color: var(--error); font-weight: 600; margin: 0; min-height: 1em; }
.checkout__done { border: 1px solid var(--blue); background: var(--blue-wash); padding: clamp(20px, 3vw, 36px); }
.checkout__done .h2 { margin-bottom: 12px; }

/* 12. Botón de sonido de los vídeos */
.sound {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 38px; height: 38px;
  display: grid; place-items: center; color: var(--white); background: rgba(7, 10, 23, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.sound .i { width: 20px; height: 20px; stroke-width: 1.6; }
.sound [data-s="on"] { display: none; }
.sound[aria-pressed="true"] { background: var(--blue); }
.sound[aria-pressed="true"] [data-s="on"] { display: block; }
.sound[aria-pressed="true"] [data-s="off"] { display: none; }
.sound:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .sound:hover { background: var(--ink); } .sound[aria-pressed="true"]:hover { background: var(--blue-deep); } }
.sound--morph { top: calc(var(--iy) + 3%); right: calc(var(--ix) + 3%); }
.frame--video { cursor: pointer; }
.frame--video .frame__media { background: var(--ink); }

/* Movimiento reducido: sin desplazamientos ni máscaras; solo fundidos */
@media (prefers-reduced-motion: reduce) {
  .js .wsplit .w__in { transform: none; opacity: 0; transition: opacity 400ms ease; }
  .js .wsplit.in .w__in, .js .in .wsplit .w__in { opacity: 1; }
  .nav.is-hidden { transform: none; }
  .btn:hover .i { animation: none; }
  .drawer.is-staggering .cart-line { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  output.roll-out, output.roll-in { transform: none; }
}

/* 15 · Vídeo con avatar creado en el mismo pedido */
.avlink__none { display: grid; gap: 14px; justify-items: start; padding: 18px 20px; background: var(--blue-wash); border-left: 2px solid var(--blue); }
.avlink__none p { margin: 0; max-width: 56ch; }
.avlink [hidden] { display: none; }

/* 16 · Cuenta de cliente, contacto y selección de avatares */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acctbar { margin: 0 0 20px; padding: 12px 16px; background: var(--blue-wash); border-left: 2px solid var(--blue); font-size: 0.9375rem; }
.acctbar[hidden] { display: none; }
.avpick { display: grid; gap: 8px; margin-bottom: 18px; }
.avpick[hidden], .avpick__login[hidden] { display: none; }
.avpick__row { display: flex; flex-wrap: wrap; gap: 8px; }
.avpick__b { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.avpick__b:hover { border-color: var(--ink); }
.avpick__b:active { transform: scale(0.97); }
.avpick__b[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.avpick__b b { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.avpick__b small { color: var(--muted); font-size: 0.8125rem; }
.account [hidden] { display: none !important; }
.account__login { margin-top: clamp(24px, 4vw, 48px); align-items: start; }
.account__login form + form { margin-top: 0; }
.account__hello { margin: 16px 0 clamp(24px, 4vw, 40px); color: var(--muted); }
.account__hello span:first-of-type { color: var(--ink); }
.account__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.account__col { display: grid; gap: 24px; min-width: 0; }
.account .card-line .h3 { margin: 0 0 16px; }
.acclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.acclist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acclist li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.acclist small { color: var(--muted); font-size: 0.8125rem; }
.acclist__act { display: flex; gap: 14px; font-size: 0.875rem; }
.acc-code { font-size: 1.125rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.account__delete { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.account__delete small { color: var(--muted); }
.link-danger { background: none; border: 0; padding: 0; font: inherit; color: #b42318; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.nav__acct { margin-right: -4px; }
@media (max-width: 900px) { .account__grid { grid-template-columns: 1fr; } }
/* Acceso: enlaces alternativos y saldo prepago */
.account__alt { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: 0.875rem; }
.account__login .h3 { margin: 0 0 16px; }
.wallet { margin-bottom: 24px; }
.wallet__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.wallet__amount { margin: 0 0 12px; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 750; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wallet__msg { margin: 0 0 20px; padding: 12px 16px; background: var(--blue-wash); border-left: 2px solid var(--blue); font-size: 0.9375rem; }
.wallet .chips[style*="--cols"] .chips__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wallet__moves { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.wallet__moves summary { cursor: pointer; font-weight: 600; }
.wallet__moves .acclist { margin-top: 12px; }
.wallet__mv { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet__mv.is-neg { color: var(--muted); }
.wallet__refund { margin: 8px 0 0; font-size: 0.875rem; }
.cowallet { margin: 0 0 20px; padding: 16px; border: 1px solid var(--ink); }
.cowallet .accept { margin: 0; }
.cowallet__lines { margin: 12px 0 0; display: grid; gap: 4px; }
.cowallet__lines div { display: flex; justify-content: space-between; gap: 12px; }
.cowallet__lines dt, .cowallet__lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.cowallet__lines div:last-child { font-weight: 700; }
.cowallet__more { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
.cotax__title { margin: 0; font-weight: 700; }
@media (max-width: 900px) { .wallet__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .wallet .chips[style*="--cols"] .chips__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Lo que la web oculta, se oculta siempre (ningún estilo puede volver a mostrarlo) */
[hidden] { display: none !important; }

/* 17 · Textos legales e información de privacidad */
.prose .lead { margin-bottom: 8px; }
.prose h2:first-of-type { margin-top: 24px; }
.prose h3 { font-size: 1rem; font-weight: 700; margin: 22px 0 6px; }
.prose ul, .prose ol { color: #31364a; padding-left: 1.2em; margin: 10px 0 14px; display: grid; gap: 8px; }
.prose li::marker { color: var(--blue); }
.prose b { color: var(--ink); }
.prose code { font: 600 0.875em/1 ui-monospace, Consolas, monospace; background: var(--blue-wash); padding: 2px 6px; }
.prose blockquote { margin: 16px 0; padding: 16px 20px; border-left: 2px solid var(--blue); background: var(--blue-wash); }
.prose blockquote p { margin: 0 0 8px; } .prose blockquote p:last-child { margin: 0; }
.prose .table-wrap { margin: 12px 0 16px; }
.prose .table th, .prose .table td { font-size: 0.875rem; vertical-align: top; }
.lopd { margin: 14px 0 4px; border: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.lopd summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lopd summary::-webkit-details-marker { display: none; }
.lopd summary::after { content: "+"; font-weight: 400; color: var(--blue); }
.lopd[open] summary::after { content: "–"; }
.lopd dl { margin: 0; padding: 0 14px 12px; display: grid; gap: 6px; }
.lopd dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.lopd dt { font-weight: 600; color: var(--ink); }
.lopd dd { margin: 0; }
.drop__legal { margin: 4px 0 0; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 520px) { .lopd dl > div { grid-template-columns: 1fr; gap: 0; } }.prose .table th, .prose .table td { white-space: normal; min-width: 0; }
.prose .table code { white-space: nowrap; }
.prose .table { table-layout: auto; width: 100%; }

@media (max-width: 640px) {
  .prose .table thead { display: none; }
  .prose .table, .prose .table tbody, .prose .table tr, .prose .table th, .prose .table td { display: block; width: 100%; }
  .prose .table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .prose .table th, .prose .table td { border: 0; padding: 3px 0; }
  .prose .table td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 0.75rem; color: var(--ink); }
}
.legal .split > * { min-width: 0; }

/* Etiqueta de las miniaturas: nunca en dos líneas; en las muy estrechas se oculta para no chocar con el botón de sonido */
.tag { white-space: nowrap; }
@container (max-width: 150px) { .frame__media .tag { display: none; } }
