/* =========================================================
   Menos Papeles · landing
   Dirección: «el mostrador ordenado». Un tablero de piezas
   encajadas con huecos de 8 px. Mobile-first.
   ========================================================= */

:root {
  /* Marca */
  --ink: #1F2A2E;
  --ink-2: #2A373B;
  --ink-3: #141C1F;
  --green: #2F6B4F;
  --green-2: #24543E;
  --green-tint: #E1ECE3;
  --orange: #E07A3F;
  --orange-hi: #EA9668;
  --orange-tint: #F6DCC4;
  --paper: #F5F1E8;
  --paper-hi: #FBF8F2;
  --tile: #ECE6DA;
  --line: #D9D2C3;
  --line-2: #C9BFAB;
  --muted: #4A5558;
  --on-dark: #F5F1E8;
  --on-dark-2: #C3CDC9;

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(1.875rem, 1.05rem + 3.1vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.6vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Tablero */
  --gap: 8px;
  --m: 8px;
  --r: 10px;
  --pad: 20px;
  --max: 1680px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (min-width: 1024px) {
  :root { --pad: 28px; --m: 12px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: max(16px, 1rem); }

a, button, summary, [role="tab"], label { touch-action: manipulation; }
button, [role="tab"], summary, .btn, .tile[href] {
  -webkit-user-select: none;
  user-select: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.tile--ink :focus-visible, .tile--green :focus-visible, .contact :focus-visible,
.tile--ink:focus-visible, .tile--green:focus-visible, .problem__rows :focus-visible {
  outline-color: var(--paper);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

/* ---------- Tipos ---------- */
.h-display, .h2, .h3, .giant, .price b, .g__big, .vf__day, .work__domain, .calc__num {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.h-display { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
.lead { font-size: 1.125rem; line-height: 1.5; max-width: 34ch; }
@media (min-width: 1024px) { .lead { font-size: 1.25rem; } }

/* ---------- Tablero y piezas ---------- */
.board {
  display: grid;
  gap: var(--gap);
  padding-inline: var(--m);
  max-width: var(--max);
  margin: var(--gap) auto 0;
  grid-template-columns: minmax(0, 1fr);
}
.tile {
  border-radius: var(--r);
  padding: var(--pad);
  min-width: 0;
  text-decoration: none;
}
.tile--paper { background: var(--paper-hi); }
.tile--tile { background: var(--tile); }
.tile--line { background: var(--line); }
.tile--green { background: var(--green); color: var(--on-dark); --on-dark-2: #DCE6E0; }
.tile--ink { background: var(--ink); color: var(--on-dark); }
.tile--accent { background: var(--orange); color: var(--ink); }

a.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  transition: transform 140ms var(--ease-out), background-color 160ms ease; }
a.tile:active { transform: scale(0.985); }
.tile__big { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.tile__small { font-size: var(--fs-small); font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn--accent { background: var(--orange); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--green { background: var(--green); color: var(--paper); }

@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover, .tile--accent[href]:hover, .plan--2 .plan__cta:hover, .form__submit:hover { background: var(--orange-hi); }
  .btn--ink:hover { background: var(--ink-2); }
  .btn--green:hover, a.tile--green:hover { background: var(--green-2); }
  a.tile--ink:hover { background: var(--ink-2); }
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar__in {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  min-height: 60px; padding: 8px calc(var(--m) + 8px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; min-height: 44px; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 500; border-radius: var(--r); }
.topbar .btn { margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .topnav a:hover { background: var(--tile); } }
@media (min-width: 900px) {
  .topnav { display: flex; }
  .topbar .btn { margin-left: 8px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}
.hero__band {
  grid-column: 1 / -1;
  height: 104px;
  border-radius: var(--r);
  background: var(--green);
  color: var(--paper-hi);
  overflow: hidden;
  display: flex; justify-content: center; align-items: center;
}
.hero__band span {
  flex: none;
  font-family: var(--serif); font-weight: 700;
  font-size: 25vw; line-height: 0.8; letter-spacing: -0.05em;
  white-space: nowrap;
  transform: translateY(0.06em);
}
.hero__lead { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 24px; padding-block: 28px; }
.hero__copy { display: grid; gap: 16px; }
.hero__where { font-size: var(--fs-small); color: var(--muted); max-width: 44ch; }
.hero__cta, .hero__wa { min-height: 128px; }
.hero__desk { grid-column: 1 / -1; }
.hero__facts { grid-column: 1 / -1; display: grid; gap: var(--gap); }
.hero__facts li { display: flex; flex-direction: column; gap: 2px; padding-block: 16px; }
.hero__facts b { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.hero__facts span { font-size: var(--fs-small); }
.hero__facts .tile--ink span { color: var(--on-dark-2); }

@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero__band { height: 170px; }
  .hero__band span { font-size: clamp(140px, 14.4vw, 250px); }
  .hero__lead { grid-column: 1 / 7; grid-row: 2; justify-content: space-between; padding: 44px var(--pad) var(--pad); min-height: 440px; }
  .hero__copy { gap: 24px; }
  .hero__desk { grid-column: 7 / 13; grid-row: 2; }
  .hero__cta { grid-column: 1 / 4; grid-row: 3; }
  .hero__wa { grid-column: 4 / 7; grid-row: 3; }
  .hero__facts { grid-column: 7 / 13; grid-row: 3; }
  .hero__cta, .hero__wa { min-height: 150px; }
}

/* ---------- El mostrador ---------- */
.tile--desk { background: var(--tile); padding: var(--pad); display: flex; }
.desk { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.desk__list { display: grid; gap: 10px; padding-block: 8px; }
.slip { position: relative; height: 68px; transform: none;
  transition: transform 900ms var(--ease-in-out); }
.slip:nth-child(2) { transition-delay: 70ms; }
.slip:nth-child(3) { transition-delay: 140ms; }
.slip:nth-child(4) { transition-delay: 210ms; }
.slip__face {
  position: absolute; inset: 0;
  border-radius: 8px;
  padding: 10px 14px;
  transition: opacity 320ms ease;
}
.slip__face--done {
  background: var(--paper-hi);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-content: center;
}
.slip__face--done b { font-size: 0.9375rem; font-weight: 600; }
.slip__face--done span { grid-column: 1; font-size: 0.9375rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); padding: 5px; transition: transform 320ms var(--ease-out) 600ms, opacity 320ms ease 600ms; }
.check path, .marquee svg path, .footer__cta path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.slip__face--mess { opacity: 0; display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; line-height: 1.3; }
.slip--wa { background: var(--green-tint); }
.slip__who { font-weight: 600; color: var(--green-2); }
.slip--postit { background: var(--orange-tint); font-family: var(--serif); font-style: italic; font-size: 1rem; }
.slip--file { background: var(--paper-hi); font-weight: 500; overflow-wrap: anywhere; }
.slip--file svg { width: 16px; flex: none; }
.slip--file svg path { fill: var(--green); }
.slip--call { background: var(--ink); color: var(--on-dark); font-weight: 600; }

.desk[data-state="before"] .slip { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.desk[data-state="before"] .slip__face--mess { opacity: 1; }
.desk[data-state="before"] .slip__face--done { opacity: 0; }
.desk[data-state="before"] .check { opacity: 0; transform: scale(0.9); transition-delay: 0ms; }
.no-js .slip__face--mess { display: none; }

.desk__switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--line); border-radius: 12px; align-self: flex-start; }
.seg {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px;
  background: transparent; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.seg:active { transform: scale(0.97); }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.no-js .desk__switch { display: none; }

/* ---------- Cinta ---------- */
.marquee {
  max-width: var(--max); margin: var(--gap) auto 0;
  overflow: hidden; padding: 18px 0 14px;
}
.marquee__track {
  display: flex; align-items: center; gap: 0.4em; width: max-content;
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 1.2rem + 5vw, 6rem);
  letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
  animation: marquee 60s linear infinite;
}
.marquee svg { width: 0.6em; height: 0.6em; flex: none; background: var(--orange); border-radius: 50%; padding: 0.1em; }
.marquee svg path { stroke-width: 3.5; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* =========================================================
   EL PROBLEMA
   ========================================================= */
.problem__cell { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-block: 36px; }
.zigzag span { display: block; }
.problem__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.problem__foot p { max-width: 32ch; }
.problem__rows { display: grid; border-radius: var(--r); overflow: hidden; color: var(--on-dark); }
.problem__rows li { background: var(--ink); padding: 24px var(--pad); display: grid; gap: 8px; }
.problem__rows li:nth-child(even) { background: var(--ink-2); }
.problem__rows h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.problem__rows .terms { color: var(--on-dark-2); font-size: 0.9375rem; }

@media (min-width: 1024px) {
  .problem { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem__cell { min-height: 640px; padding: 48px var(--pad) var(--pad); }
  .zigzag span:nth-child(2) { text-align: right; }
  .problem__foot { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .problem__rows li { grid-template-columns: 5fr 4fr 3fr; gap: 24px; padding: 28px; align-items: start; }
}

/* =========================================================
   CALCULADORA
   ========================================================= */
.calc__controls { display: flex; flex-direction: column; gap: 28px; padding-block: 32px; }
.calc__form { display: grid; gap: 28px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend, .range label { font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips legend { width: 100%; }
.chips input, .billing input { position: absolute; opacity: 0; pointer-events: none; }
.chips span, .billing span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--tile); font-weight: 500; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.chips label:active span, .billing label:active span { transform: scale(0.97); }
.chips input:checked + span, .billing input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span, .billing input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chips input:not(:checked) + span:hover, .billing input:not(:checked) + span:hover { background: var(--line); } }

.range { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
.range label { margin: 0; }
.range__out { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; font-variant-numeric: tabular-nums; }
.range input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 4px 0 0; accent-color: var(--green); cursor: pointer; }
.range__hint { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--muted); }

.calc__result { display: flex; flex-direction: column; gap: 12px; padding-block: 32px; }
.calc__label { font-weight: 600; margin-top: -4px; }
.calc__num { font-size: clamp(4.5rem, 2rem + 10vw, 9rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc__eur { font-size: 1.125rem; max-width: 30ch; }
.calc__note { font-size: var(--fs-small); color: var(--on-dark-2); max-width: 44ch; margin-top: auto; padding-top: 12px; }
.calc__result .btn { align-self: flex-start; margin-top: 8px; }

@media (min-width: 1024px) {
  .calc { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .calc__controls { grid-column: 1 / 8; padding: 48px var(--pad) var(--pad); }
  .calc__result { grid-column: 8 / 13; padding: 48px var(--pad) var(--pad); }
}

/* =========================================================
   CÓMO TRABAJAMOS
   ========================================================= */
.process {
  max-width: var(--max); margin: var(--gap) auto 0;
  margin-inline: max(var(--m), (100% - var(--max)) / 2);
  background: var(--paper-hi); border-radius: var(--r);
  padding: 36px var(--pad) var(--pad);
  display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr);
}
@supports not (margin-inline: max(1px, 2px)) { .process { margin-inline: var(--m); } }
.process__head { display: grid; gap: 16px; }
.process__head p { max-width: 46ch; }
.process__art { background: var(--paper); border-radius: 8px; padding: 16px; }
.diagram { width: 100%; height: auto; }
.diagram--v { display: none; }
.steps { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.steps li { background: var(--tile); border-radius: 8px; padding: 18px; display: grid; gap: 4px; align-content: start; }
.steps h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.steps .when { font-weight: 600; color: var(--green-2); font-size: 0.9375rem; }
.steps p:last-child { font-size: 0.9375rem; }
.steps li:nth-child(n+3):nth-child(-n+5) { background: var(--line); }
.steps li:nth-child(n+6) { background: var(--green); color: var(--on-dark); }
.steps li:nth-child(n+6) .when { color: var(--orange-tint); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-top: 48px; }
  .process__head { grid-column: 1 / 6; }
  .process__art { grid-column: 1 / -1; padding: 28px; }
  .steps { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .steps { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* =========================================================
   PLANES
   ========================================================= */
.plans {
  max-width: var(--max); margin: var(--gap) auto 0; padding-inline: var(--m);
  display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr);
}
.plans__head { background: var(--paper-hi); border-radius: var(--r); padding: 32px var(--pad) var(--pad); display: grid; gap: 20px; align-content: end; }
.billing { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--tile); border-radius: 999px; justify-self: start; }
.billing span { background: transparent; }
.plans__fine { font-size: 0.9375rem; max-width: 60ch; }
.only-unico { display: none; }
.plans:has(input[value="unico"]:checked) .only-unico { display: inline; }
.plans:has(input[value="unico"]:checked) .only-cuota { display: none; }
.plans[data-billing="unico"] .only-unico { display: inline; }
.plans[data-billing="unico"] .only-cuota { display: none; }

.plans__row { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.plan { border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.plan__body { padding: 28px var(--pad); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan__for { font-size: 0.9375rem; max-width: 36ch; }
.price { margin-top: 8px; font-size: 1rem; font-weight: 500; }
.price b { font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem); line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price__sub { font-weight: 600; font-size: 0.9375rem; }
.plan ul { display: grid; gap: 8px; margin-top: 12px; }
.plan li { position: relative; padding-left: 28px; font-size: 1rem; line-height: 1.45; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%231F2A2E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan__cta {
  display: flex; align-items: center; min-height: 64px; padding: 0 var(--pad);
  font-weight: 600; text-decoration: none;
  transition: background-color 160ms ease;
}
.plan__cta:active { opacity: 0.9; }
.plan--1 { background: var(--tile); }
.plan--1 .plan__cta { background: var(--line); }
.plan--2 { background: var(--green); color: var(--on-dark); --on-dark-2: #DCE6E0; }
.plan--2 .plan__cta { background: var(--orange); color: var(--ink); }
.plan--3 { background: var(--ink); color: var(--on-dark); }
.plan--3 .plan__cta { background: var(--ink-3); }
.plan--2 .price__sub, .plan--3 .price__sub { color: var(--on-dark-2); }
@media (hover: hover) and (pointer: fine) {
  .plan--1 .plan__cta:hover { background: var(--line-2); }
  .plan--3 .plan__cta:hover { background: var(--ink-2); }
}

@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; align-items: end; }
  .plans__head { grid-column: 1 / 3; grid-row: 1; align-self: stretch; padding: 40px var(--pad) var(--pad); }
  .plans__row { display: contents; }
  .plan--1 { grid-column: 1; grid-row: 2; min-height: 560px; }
  .plan--2 { grid-column: 2; grid-row: 2; min-height: 680px; }
  .plan--3 { grid-column: 3; grid-row: 1 / 3; align-self: stretch; }
}

/* =========================================================
   EXTRAS
   ========================================================= */
.extras__col { background: var(--paper-hi); border-radius: var(--r); padding: 28px var(--pad) var(--pad); container-type: inline-size; }
.giant { font-size: 30cqw; line-height: 0.82; letter-spacing: -0.05em; font-weight: 700; margin: 0 0 12px -0.04em; }
.extras__intro { margin-bottom: 20px; }
.bars { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.bars details { background: var(--tile); border-radius: 8px; }
.bars summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 56px; padding: 10px 18px;
  cursor: pointer; list-style: none; font-weight: 500;
}
.bars summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.bars summary > span:first-child { flex: 1 1 10ch; min-width: 0; }
.bar__price { font-variant-numeric: tabular-nums; font-weight: 600; }
.bars summary::after, .faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v14M1 8h14' stroke='%231F2A2E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease-out);
}
.bars details[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.bars details p { padding: 0 18px 18px; max-width: 56ch; }

.extras__rules { display: flex; flex-direction: column; gap: 20px; padding-block: 32px; }
.extras__rules ul { display: grid; gap: 14px; }
.extras__rules li { font-size: 1.0625rem; }
.extras__rules { justify-content: space-between; }
.extras__rules b { color: var(--orange-tint); }
.extras__close { font-family: var(--serif); font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; text-wrap: balance; }

@media (min-width: 1024px) {
  .extras { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .extras__col { grid-column: 1 / 8; padding: 32px var(--pad) var(--pad); }
  .extras__rules { grid-column: 8 / 13; padding: 48px var(--pad) var(--pad); }
  .extras__rules li { font-size: 1.25rem; line-height: 1.45; }
}

/* =========================================================
   SECTORES
   ========================================================= */
.sectors__head { display: grid; gap: 20px; padding-block: 32px 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
[role="tab"] {
  flex: 0 1 auto; min-height: 48px; padding: 8px 18px; border: 0; border-radius: 999px; text-align: left;
  background: var(--tile); font-weight: 500; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
[role="tab"]:active { transform: scale(0.97); }
[role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { [role="tab"][aria-selected="false"]:hover { background: var(--line); } }
.tabpanel { padding: 0; margin: 0; }
.tabpanel:focus-visible { outline-offset: 4px; }
.tabpanel ul { display: grid; gap: 8px; margin-top: 14px; }
.tabpanel li { position: relative; padding-left: 20px; }
.tabpanel li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 10px; border-radius: 1px; background: currentColor; }
.sector__voice { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding-block: 32px; }
.sector__voice p:first-child { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
.sector__who { font-size: 0.9375rem; color: var(--on-dark-2); }

@media (min-width: 1024px) {
  .sectors { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sectors__head { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; padding: 40px var(--pad) var(--pad); }
  .tabpanel { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tabpanel[hidden] { display: none; }
  .sector__voice { grid-column: 1 / 7; min-height: 340px; }
  .tabpanel > .tile:nth-child(2) { grid-column: 7 / 10; }
  .tabpanel > .tile:nth-child(3) { grid-column: 10 / 13; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .tabpanel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector__voice { grid-column: 1 / -1; }
}

/* =========================================================
   GARANTÍAS
   ========================================================= */
.g__head { display: flex; align-items: flex-end; min-height: 200px; padding-block: 32px; }
.g__item { display: flex; flex-direction: column; gap: 14px; padding-block: 28px; }
.g__big { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; }
.g__item.tile--ink p:last-child, .g__item.tile--green p:last-child { color: var(--on-dark); }
.g__small { display: flex; flex-direction: column; gap: 6px; }
.g__small b { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

@media (min-width: 640px) {
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g__head { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .guarantees { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .g__head { grid-column: 1 / 7; min-height: 340px; padding: var(--pad); }
  .g__item:nth-of-type(2) { grid-column: 7 / 10; }
  .g__item:nth-of-type(3) { grid-column: 10 / 13; }
  .g__item:nth-of-type(4) { grid-column: 1 / 4; }
  .g__small { grid-column: span 3; }
}

/* =========================================================
   TRABAJOS
   ========================================================= */
.work { max-width: var(--max); margin: var(--gap) auto 0; }
.work > .h2 { margin: 0 var(--m); background: var(--paper-hi); border-radius: var(--r); padding: 32px var(--pad); }
.work__list { margin-top: var(--gap); }
.work__item { display: flex; flex-direction: column; gap: 14px; padding-block: 28px; }
.work__domain { font-size: clamp(2rem, 1rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status--live::before { background: var(--orange); }
.work__link { margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.work__pilot .btn { align-self: flex-start; margin-top: auto; }
.work__pilot .work__domain { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.testimonials blockquote { font-family: var(--serif); font-size: 1.5rem; }

@media (min-width: 1024px) {
  .work__list { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .work__item:nth-child(1) { grid-column: 1 / 7; min-height: 360px; }
  .work__item:nth-child(2) { grid-column: 7 / 10; }
  .work__item:nth-child(3) { grid-column: 10 / 13; }
}

/* =========================================================
   VERIFACTU
   ========================================================= */
.vf__text { display: grid; gap: 16px; padding-block: 32px; }
.vf__text p { max-width: 56ch; }
.vf__date { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 160px; }
.vf__day { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.vf__date.tile--green p:last-child { color: var(--on-dark-2); }

@media (min-width: 640px) {
  .verifactu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf__text { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .verifactu { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .vf__text { grid-column: 1 / 7; padding: 40px var(--pad) var(--pad); }
  .vf__date:nth-of-type(2) { grid-column: 7 / 10; }
  .vf__date:nth-of-type(3) { grid-column: 10 / 13; }
}

/* =========================================================
   PREGUNTAS
   ========================================================= */
.faq { max-width: var(--max); margin: var(--gap) auto 0; padding-inline: var(--m); }
.faq__head { background: var(--orange); border-radius: var(--r) var(--r) 0 0; min-height: 30svh; display: flex; align-items: flex-end; padding: 32px var(--pad) var(--pad); }
.faq__list { border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.faq details { background: var(--paper-hi); }
.faq details:nth-child(even) { background: var(--tile); }
.faq summary { display: flex; align-items: flex-start; gap: 16px; padding: 24px var(--pad); cursor: pointer; list-style: none; }
.faq summary h3 { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.faq summary::after { margin-top: 0.45em; margin-left: auto; width: 16px; height: 16px; }
.faq__a { padding: 0 var(--pad) 28px; }
.faq__a p { max-width: 60ch; font-size: 1.0625rem; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; } }

@media (min-width: 1024px) {
  .faq__head { min-height: 40svh; }
  .faq summary { padding: 36px var(--pad); }
  .faq summary h3 { font-size: 1.875rem; max-width: 24ch; }
  .faq__a { padding: 0 var(--pad) 40px 50%; }
  .faq__a p { font-size: 1.125rem; }
}

/* =========================================================
   DIAGNÓSTICO
   ========================================================= */
.contact { max-width: var(--max); margin: var(--gap) auto 0; padding-inline: var(--m); }
.contact__in { --on-dark-2: #DCE6E0; background: var(--green); color: var(--on-dark); border-radius: var(--r); padding: 40px var(--pad) var(--pad); display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.contact__lead { max-width: 52ch; font-size: 1.125rem; }
.contact__plan { font-weight: 600; background: var(--green-2); border-radius: 8px; padding: 12px 16px; justify-self: start; }
.form { display: grid; gap: var(--gap); margin-top: 8px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 56px; padding: 0 16px;
  background: var(--paper-hi); color: var(--ink);
  border: 0; border-radius: 8px; appearance: none; -webkit-appearance: none;
  font-size: 17px;
  transition: background-color 160ms ease;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231F2A2E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px;
}
.field input:focus, .field select:focus { outline: 3px solid var(--orange); outline-offset: 2px; background-color: #fff; }
.field [aria-invalid="true"] { outline: 3px solid var(--orange-tint); outline-offset: 2px; }
.field__error { color: var(--orange-tint); font-weight: 600; font-size: 0.9375rem; }
.form__submit {
  min-height: 60px; border: 0; border-radius: 8px; margin-top: 8px;
  background: var(--orange); color: var(--ink); font-weight: 700; font-size: 1.0625rem; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.form__submit:active { transform: scale(0.98); }
.contact__alt { font-size: 0.9375rem; color: var(--on-dark-2); max-width: 70ch; }
.contact__alt a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__submit { align-self: end; }
}
@media (min-width: 1024px) {
  .contact__in { padding: 56px var(--pad) var(--pad); }
  .form { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { margin-bottom: var(--m); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer__mark { grid-column: 1 / -1; height: 150px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0; }
.footer__mark span { flex: none; font-family: var(--serif); font-weight: 700; font-size: 18vw; letter-spacing: -0.05em; white-space: nowrap; line-height: 0.8; }
.footer__cta { grid-column: 1 / -1; min-height: 150px; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.footer__cta svg { width: 44px; height: 44px; align-self: flex-end; }
.footer__cta path { stroke-width: 4; }
.footer__about, .footer__place { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.footer__legal { font-size: var(--fs-small); color: var(--muted); margin-top: auto; }
.footer__nav ul { display: grid; gap: 4px; }
.footer__nav a, .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-underline-offset: 3px; }
.footer__contact { display: flex; flex-direction: column; justify-content: flex-end; }
.footer__contact a { font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }

@media (min-width: 1024px) {
  .footer { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: var(--gap); }
  .footer__mark { grid-column: 1 / 9; height: 300px; }
  .footer__mark span { font-size: 11.5vw; }
  .footer__cta { grid-column: 9 / 13; min-height: 300px; }
  .footer__about { grid-column: 1 / 5; min-height: 220px; }
  .footer__nav { grid-column: 5 / 8; }
  .footer__place { grid-column: 8 / 10; }
  .footer__contact { grid-column: 10 / 13; }
}

/* ---------- Barra fija móvil ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px;
  padding: 8px var(--m) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  transform: translateY(110%);
  transition: transform 240ms var(--ease-out);
}
.dock .btn { min-height: 52px; }
.dock.is-on { transform: translateY(0); }
@media (min-width: 1024px) { .dock { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* =========================================================
   ENTRADAS AL HACER SCROLL
   ========================================================= */
.js [data-reveal] .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}
.js [data-reveal].is-in .rv { opacity: 1; transform: none; }

.diagram g { transition: opacity 500ms ease, transform 900ms var(--ease-out); }
.js .process:not(.is-in) .d-a { opacity: 0; transform: translateX(-12px); }
.js .process:not(.is-in) .d-b { opacity: 0; transform: scaleX(0.92); }
.js .process:not(.is-in) .d-c { opacity: 0; transform: translateX(12px); }
.process.is-in .d-b { transition-delay: 250ms; }
.process.is-in .d-c { transition-delay: 500ms; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .slip, .desk[data-state="before"] .slip { transform: none; transition: none; }
  .desk[data-state="before"] .slip__face--mess { opacity: 1; }
  .js [data-reveal] .rv { transform: none; transition: opacity 300ms ease; }
  .diagram g { transform: none !important; transition: opacity 300ms ease; }
  .check { transition: opacity 200ms ease; transform: none !important; }
  .dock { transition: none; }
}

/* Sin JavaScript, el mostrador se ve ya ordenado */
.no-js .desk[data-state="before"] .slip { transform: none; }
.no-js .desk[data-state="before"] .slip__face--done { opacity: 1; }
.no-js .desk[data-state="before"] .check { opacity: 1; transform: none; }
