/* tid.AGENCY — Bloques
   Carbón y hueso como campos; el punto coral como hilo conductor. */

:root {
  --ink: #1c1c1c;
  --ink-2: #262626;
  --ink-3: #333230;
  --bone: #f2efe9;
  --bone-2: #e8e4dc;
  --paper: #faf9f6;
  --coral: #e4635f;
  --coral-deep: #c9504c;
  --mute: #6f6c66;
  --mute-d: #a6a29a;
  --line: rgba(28, 28, 28, .12);
  --line-d: rgba(242, 239, 233, .12);

  --f: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(18px, 4vw, 64px);
  --sec: clamp(80px, 11vw, 168px);
  --max: 1400px;
  --r: 28px;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --t-ui: 200ms;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 1.0625rem/1.6 var(--f); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--coral); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); line-height: 1.02; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
.dot { color: var(--coral); }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--mute); max-width: 54ch; }
.sec--ink .lead, .sec--ink .muted { color: var(--mute-d); }
.muted { color: var(--mute); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.05em; }
.num { font-variant-numeric: tabular-nums; }

/* Botones */
.btn {
  --bg: var(--coral); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); font: 500 1rem/1 var(--f); letter-spacing: -.01em; text-decoration: none;
  transition: background-color var(--t-ui) var(--e-out), color var(--t-ui), transform 140ms var(--e-out);
}
.btn:hover { --bg: #ec7672; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; transition: transform 240ms var(--e-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--ink { --bg: var(--ink); --fg: var(--bone); }
.btn--ink:hover { --bg: #333; }
.btn--light { --bg: var(--bone); --fg: var(--ink); }
.btn--light:hover { --bg: #fff; }
.btn--line { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--line:hover { --bg: rgba(127, 127, 127, .14); }

/* ── Cabecera ───────────────────────────────────────────── */
.head { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--bone); transition: background-color 300ms var(--e-out), color 300ms, box-shadow 300ms; }
.head.is-solid { background: rgba(28, 28, 28, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line-d); }
.head.is-open { background: var(--ink); }
.head__bar { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.head__logo { flex: none; display: flex; }
.head__logo img { height: 30px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav__btn, .nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: .97rem; font-weight: 500; text-decoration: none; transition: background-color var(--t-ui); }
.nav__btn:hover, .nav__link:hover, .nav__btn[aria-expanded='true'] { background: rgba(242, 239, 233, .12); }
.nav__link[aria-current='page'] { box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .35); }
.nav__btn svg { width: 10px; height: 10px; transition: transform 240ms var(--e-out); }
.nav__btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.head__cta { padding: 12px 20px; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; place-items: center; }
.burger span { position: relative; display: block; width: 20px; height: 2px; background: currentColor; transition: background-color 200ms; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 260ms var(--e-out); }
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { transform: rotate(-45deg); }

/* Mega menú */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); color: var(--bone); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 220ms var(--e-out), transform 320ms var(--e-out), visibility 0s linear 320ms; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms var(--e-out), transform 360ms var(--e-out), visibility 0s; }
.mega__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); padding-block: 24px 40px; }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mi { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.mi::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform 260ms var(--e-out); justify-self: center; }
.mi:hover::before, .mi:focus-within::before, .mi.is-hot::before { transform: scale(1); }
.mi__t { display: block; font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; transition: transform 300ms var(--e-out); }
.mi:hover .mi__t, .mi.is-hot .mi__t { transform: translateX(4px); }
.mi__d { display: block; color: var(--mute-d); font-size: .93rem; margin-top: 3px; }
.mi__z { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; position: relative; z-index: 2; }
.chip { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; font-size: .82rem; font-weight: 500; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .22); color: var(--bone); transition: background-color var(--t-ui), color var(--t-ui), box-shadow var(--t-ui); }
a.chip:hover { background: var(--coral); color: var(--ink); box-shadow: none; }
.chip--off { opacity: .3; }
.mi__a { position: absolute; inset: 0; z-index: 1; border-radius: 8px; }
.mega__note { margin-top: 18px; color: var(--mute-d); font-size: .9rem; }
.mega__peek { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink-2); min-height: 360px; }
.peek { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: end; gap: 10px; opacity: 0; transition: opacity 320ms var(--e-out); }
.peek.is-on { opacity: 1; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06); transition: transform 900ms var(--e-out); }
.peek.is-on img { transform: scale(1); }
.peek--img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 28, 28, .94), rgba(28, 28, 28, .05) 70%); }
.peek > :not(img) { position: relative; z-index: 1; }
.peek h3 { font-size: 1.6rem; }
.peek p { color: #d6d2ca; font-size: .97rem; max-width: 40ch; }
.peek--coral { background: var(--coral); color: var(--ink); }
.peek--coral p { color: rgba(28, 28, 28, .8); }
.peek--bone { background: var(--bone); color: var(--ink); }
.peek--bone p { color: var(--mute); }
.peek__big { font-size: clamp(3.4rem, 5.6vw, 5.2rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; margin-bottom: auto; }
.peek__data { list-style: none; margin: 0; padding: 0; }
.peek__data li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(28, 28, 28, .2); font-size: .93rem; }
.peek__data b { font-weight: 600; }
.mega__scrim { position: fixed; inset: 0; z-index: 40; background: rgba(28, 28, 28, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 280ms var(--e-out); }
.mega__scrim.is-on { opacity: 1; pointer-events: auto; }

/* Menú móvil */
.mnav { display: none; }
@media (max-width: 1080px) {
  .nav, .head__cta { display: none; }
  .burger { display: grid; }
  .mnav { display: block; position: fixed; inset: var(--head-h) 0 0; z-index: 49; background: var(--ink); color: var(--bone); overflow-y: auto; padding: 8px var(--gut) 120px; opacity: 0; visibility: hidden; transition: opacity 260ms var(--e-out), visibility 0s linear 260ms; }
  .mnav.is-open { opacity: 1; visibility: visible; transition: opacity 260ms var(--e-out), visibility 0s; }
  .mnav details { border-bottom: 1px solid var(--line-d); }
  .mnav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 1.9rem; font-weight: 600; letter-spacing: -.035em; cursor: pointer; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); transition: transform 240ms var(--e-out); }
  .mnav details[open] summary::after { transform: scale(1.6); }
  .mnav ul { list-style: none; margin: 0 0 16px; padding: 0; }
  .mnav li a { display: block; padding: 10px 0; text-decoration: none; }
  .mnav li a b { display: block; font-weight: 600; font-size: 1.15rem; }
  .mnav li a span { color: var(--mute-d); font-size: .9rem; }
  .mnav > a:not(.btn) { display: block; padding: 18px 0; font-size: 1.9rem; font-weight: 600; letter-spacing: -.035em; text-decoration: none; border-bottom: 1px solid var(--line-d); }
  .mnav > .btn { margin-top: 26px; width: 100%; justify-content: center; padding: 18px; font-size: 1.1rem; }
}

/* ── Hero de portada ────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: var(--bone); overflow: hidden; display: flex; flex-direction: column; justify-content: end; }
.hero__3d { position: absolute; top: var(--head-h); right: 0; left: 36%; height: 58%; }
.hero__3d canvas { display: block; width: 100%; height: 100%; }
.hero__3d .fallback { position: absolute; left: 50%; top: 46%; width: min(56%, 600px); transform: translate(-50%, -50%); }
.hero__3d.is-3d .fallback { display: none; }
.hero__copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 72px); align-items: end; padding-block: calc(var(--head-h) + 40px) clamp(40px, 6vw, 80px); pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero h1 { max-width: 12ch; }
.hero .lead { color: var(--mute-d); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--mute-d); font-size: .93rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
@media (max-width: 900px) {
  .hero__3d { left: 0; height: 44%; }
  .hero__copy { grid-template-columns: 1fr; padding-top: 52svh; }
}

/* Cinta de servicios en movimiento */
.ticker { background: var(--ink); color: var(--bone); border-top: 1px solid var(--line-d); overflow: hidden; padding-block: 24px; }
.ticker__row { display: flex; width: max-content; will-change: transform; }
.ticker__row span { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.ticker__row span::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.ticker__row a { text-decoration: none; transition: color var(--t-ui); }
.ticker__row a:hover { color: var(--coral); }

/* ── Secciones ──────────────────────────────────────────── */
.sec { padding-block: var(--sec); }
.sec--ink { background: var(--ink); color: var(--bone); }
.sec--paper { background: var(--paper); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec__head .lead { justify-self: end; }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; } .sec__head .lead { justify-self: start; } }

/* Bloques apilados (servicios) */
.stack { display: grid; }
.slab { position: sticky; top: calc(var(--head-h) + 16px); min-height: min(74vh, 620px); border-radius: var(--r); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-bottom: 18px; transform-origin: 50% 0; overflow: hidden; box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .35); }
.slab--ink { background: var(--ink-2); color: var(--bone); }
.slab--coral { background: var(--coral); color: var(--ink); }
.slab--paper { background: var(--paper); color: var(--ink); }
.slab--bone { background: var(--bone-2); color: var(--ink); }
.slab__top { display: flex; flex-direction: column; gap: 22px; }
.slab h3 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: .95; }
.slab h3 a { text-decoration: none; }
.slab p { font-size: 1.08rem; max-width: 46ch; opacity: .85; }
.slab ul { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid currentColor; }
.slab li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(127, 127, 127, .3); font-weight: 500; font-size: .98rem; }
.slab li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: currentColor; opacity: .7; }
.slab__img { border-radius: 18px; overflow: hidden; position: relative; min-height: 280px; background: rgba(0, 0, 0, .1); }
.slab__img img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: top; }
.slab__geo { display: flex; gap: 8px; flex-wrap: wrap; }
.slab__geo a { padding: 9px 15px; border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; box-shadow: inset 0 0 0 1px currentColor; transition: background-color var(--t-ui), color var(--t-ui), box-shadow var(--t-ui); }
.slab__geo a:hover { background: var(--ink); color: var(--bone); box-shadow: none; }
.slab--ink .slab__geo a:hover { background: var(--coral); color: var(--ink); }
@media (max-width: 860px) { .slab { grid-template-columns: 1fr; top: calc(var(--head-h) + 8px); min-height: 0; } .slab__img { min-height: 200px; } }

/* Díptico Madrid / Tenerife */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.city { position: relative; border-radius: var(--r); padding: clamp(28px, 3.6vw, 52px); min-height: 560px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.city--mad { background: var(--ink); color: var(--bone); }
.city--tfn { background: var(--coral); color: var(--ink); }
.city__name { font-size: clamp(3.2rem, 7vw, 6.6rem); font-weight: 600; letter-spacing: -.065em; line-height: .85; }
.city__time { font-size: .95rem; opacity: .75; display: flex; align-items: center; gap: 8px; }
.city__time::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.city p { max-width: 44ch; opacity: .9; }
.city ul { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid currentColor; }
.city li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(127, 127, 127, .35); }
.city li a { text-decoration: none; font-weight: 500; }
.city li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.bar i { display: block; height: 6px; border-radius: 6px; background: currentColor; opacity: .85; transform-origin: left; }
.city .btn { align-self: start; }
.source { margin-top: 18px; font-size: .85rem; color: var(--mute); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .city { min-height: 0; } }

/* Fila deslizante (sectores) */
.rail { overflow: hidden; }
.rail__track { display: flex; gap: 18px; width: max-content; padding-inline: var(--gut); }
.sector { position: relative; flex: none; width: clamp(300px, 32vw, 480px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; padding: 30px; display: flex; flex-direction: column; justify-content: end; gap: 12px; text-decoration: none; color: var(--bone); background: var(--ink-2); }
.sector:nth-child(2) { background: var(--coral); color: var(--ink); }
.sector:nth-child(3) { background: var(--paper); color: var(--ink); }
.sector:nth-child(4) { background: var(--ink-3); }
.sector h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); letter-spacing: -.05em; }
.sector p { opacity: .85; max-width: 34ch; }
.sector__mark { position: absolute; top: 30px; left: 30px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: currentColor; transition: transform 400ms var(--e-out); }
.sector:hover .sector__mark { transform: scale(1.12); }
.sector__mark svg { width: 26px; height: 26px; color: var(--ink); }
.sector:nth-child(2) .sector__mark svg, .sector:nth-child(3) .sector__mark svg { color: var(--bone); }
.sector__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 8px; }
.sector__go svg { width: 16px; transition: transform 240ms var(--e-out); }
.sector:hover .sector__go svg { transform: translateX(4px); }
.sector--more { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 860px) {
  .rail__track { width: auto; flex-direction: column; }
  .sector { width: 100%; aspect-ratio: auto; min-height: 320px; }
}

/* Casos */
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.case { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-2); color: var(--bone); text-decoration: none; display: flex; flex-direction: column; min-height: 420px; }
.case--xl { grid-column: span 8; grid-row: span 2; }
.case--m { grid-column: span 4; }
.case--h { grid-column: span 6; }
.case__img { position: relative; overflow: hidden; flex: 1; min-height: 220px; }
.case__img img { position: absolute; inset: 0; width: 100%; height: 116%; object-fit: cover; object-position: top; transition: scale 900ms var(--e-out); }
.case:hover .case__img img { scale: 1.03; }
.case__txt { padding: 22px 24px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.case__txt h3 { font-size: 1.5rem; }
.case__txt span { color: var(--mute-d); font-size: .92rem; }
.case__txt p { color: var(--mute-d); font-size: .95rem; margin-top: 6px; max-width: 52ch; }
.case__arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: var(--ink); transition: transform 300ms var(--e-out); }
.case__arrow svg { width: 18px; }
.case:hover .case__arrow { transform: rotate(-45deg); }
.case--xl .case__txt h3 { font-size: 2.2rem; }
@media (max-width: 960px) { .case--xl, .case--m, .case--h { grid-column: 1 / -1; grid-row: auto; } .case { min-height: 360px; } }

/* Método: pasos */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; }
.step { border-radius: 22px; background: var(--paper); padding: 26px 24px 30px; min-height: 270px; display: flex; flex-direction: column; gap: 12px; transition: background-color 400ms var(--e-out), color 400ms; }
.sec--ink .step { background: var(--ink-2); }
.step::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: .2; transition: opacity 300ms, background-color 300ms, transform 400ms var(--e-out); }
.step.is-on::before { background: var(--coral); opacity: 1; transform: scale(1.4); }
.step.is-now { background: var(--coral); color: var(--ink); }
.step.is-now::before { background: var(--ink); }
.step h3 { margin-top: auto; font-size: 1.5rem; }
.step p { color: var(--mute); font-size: .97rem; }
.sec--ink .step p { color: var(--mute-d); }
.step.is-now p { color: rgba(28, 28, 28, .8); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* Bloque coral de auditoría */
.audit { border-radius: var(--r); background: var(--coral); color: var(--ink); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.audit h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); letter-spacing: -.05em; }
.audit .lead { color: rgba(28, 28, 28, .78); margin-top: 18px; }
.audit__list { list-style: none; margin: 26px 0 0; padding: 0; }
.audit__list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(28, 28, 28, .2); font-weight: 500; }
.audit__list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.audit__alt { margin-top: 22px; font-size: .95rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: rgba(250, 249, 246, .94); border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color var(--t-ui), background-color var(--t-ui); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:user-invalid { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 28, 28, .15); }
.form__legal { grid-column: 1 / -1; display: flex; gap: 10px; align-items: start; font-size: .88rem; }
.form__legal input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; }
.form .btn { justify-self: start; }
.form__ok { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--bone); }
.form__ok[hidden] { display: none; }
@media (max-width: 900px) { .audit { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* ── Páginas interiores ─────────────────────────────────── */
.phero { background: var(--ink); color: var(--bone); padding-block: calc(var(--head-h) + clamp(40px, 6vw, 88px)) clamp(56px, 7vw, 104px); position: relative; overflow: hidden; }
.phero__orb { position: absolute; right: clamp(-140px, -7vw, -40px); top: 46%; width: clamp(260px, 36vw, 560px); aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 34% 30%, #f5aaa6 0%, var(--coral) 36%, #b9443f 80%, #8f2f2c 100%); box-shadow: inset -30px -40px 80px rgba(0, 0, 0, .22); pointer-events: none; }
.crumbs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 clamp(26px, 4vw, 48px); padding: 0; font-size: .9rem; color: var(--mute-d); }
.crumbs a { text-decoration: none; color: var(--bone); }
.crumbs a:hover { color: var(--coral); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.phero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.phero h1 { font-size: clamp(2.4rem, 5.2vw, 4.8rem); max-width: 16ch; }
.phero .lead { color: var(--mute-d); margin-top: 22px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.panel { position: relative; z-index: 1; border-radius: 22px; background: rgba(38, 38, 38, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 20px 24px; }
.panel__h { font-size: .88rem; color: var(--mute-d); margin-bottom: 6px; }
.panel a, .panel .panel__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-d); text-decoration: none; font-weight: 500; }
.panel a:hover { color: var(--coral); }
.panel small { color: var(--mute-d); font-weight: 400; font-size: .86rem; text-align: right; }
.panel .is-here { color: var(--mute-d); }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } .phero__orb { opacity: .35; } }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 96px); align-items: start; }
.intro .prose { font-size: 1.12rem; color: var(--mute); }
.intro .prose p:first-child { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.aside { position: sticky; top: calc(var(--head-h) + 24px); border-radius: 22px; background: var(--ink); color: var(--bone); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.aside h3 { font-size: 1.5rem; }
.aside p { color: var(--mute-d); font-size: .97rem; }
.aside .btn { justify-content: center; }
.aside .small { font-size: .92rem; color: var(--mute-d); text-align: center; }
@media (max-width: 960px) { .intro { grid-template-columns: 1fr; } .aside { position: static; } }

.block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.block__head { position: sticky; top: calc(var(--head-h) + 32px); }
.block__head p { margin-top: 18px; color: var(--mute); max-width: 48ch; }
.sec--ink .block__head p { color: var(--mute-d); }
.block__head h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { border-radius: 20px; background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sec--paper .item { background: var(--bone); }
.sec--ink .item { background: var(--ink-2); }
.item::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.item h3 { font-size: 1.25rem; }
.item p { color: var(--mute); font-size: .98rem; }
.sec--ink .item p { color: var(--mute-d); }
.items > .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rows { margin: 0; border-top: 1px solid var(--line); }
.sec--ink .rows { border-color: var(--line-d); }
.rows div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sec--ink .rows div { border-color: var(--line-d); }
.rows dt { font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }
.rows dd { margin: 0; color: var(--mute); }
.sec--ink .rows dd { color: var(--mute-d); }
@media (max-width: 900px) { .block { grid-template-columns: 1fr; } .block__head { position: static; } .rows div { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 560px) { .items { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bone); font-style: normal; transition: transform 260ms var(--e-out), background-color var(--t-ui); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--coral); color: var(--ink); }
.faq details > div { padding: 0 0 24px; color: var(--mute); max-width: 68ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* Relacionados */
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rel a { border-radius: 22px; background: var(--ink-2); color: var(--bone); padding: 26px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-decoration: none; transition: background-color 300ms var(--e-out), color 300ms; }
.rel a:hover { background: var(--coral); color: var(--ink); }
.rel b { font-size: 1.6rem; font-weight: 600; letter-spacing: -.035em; }
.rel span { opacity: .7; font-size: .95rem; }

.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.towns span { padding: 9px 15px; border-radius: 999px; background: var(--bone); font-size: .95rem; }

/* Caso destacado */
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature__shot { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); }
.feature__shot img { position: absolute; inset: 0; width: 100%; height: 112%; object-fit: cover; object-position: top; }
.feature h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.feature ul { list-style: none; margin: 20px 0 0; padding: 0; }
.feature li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sec--ink .feature li { border-color: var(--line-d); }
.feature li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 50%; background: var(--coral); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* Planes (renovación) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { border-radius: var(--r); background: var(--paper); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.plan--pro { background: var(--ink); color: var(--bone); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__top h3 { font-size: 1.9rem; letter-spacing: -.04em; }
.plan__flag { padding: 6px 12px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: .82rem; font-weight: 600; }
.plan__alias { font-size: .88rem; color: var(--mute); }
.plan__for { color: var(--mute); font-size: .98rem; }
.plan--pro .plan__for, .plan--pro .plan__note, .plan--pro .plan__alias { color: var(--mute-d); }
.plan__bill { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bone-2); align-self: start; position: relative; }
.plan--pro .plan__bill { background: var(--ink-3); }
.plan__bill button { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: color var(--t-ui); }
.plan__bill button[aria-pressed='true'] { color: var(--ink); }
.plan__bill button small { color: var(--coral-deep); margin-left: 4px; font-size: .8em; }
.plan__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff; width: 100px; transform-origin: 0 50%; transition: transform 380ms var(--e-out); }
.plan__price { display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
.plan__p { font-size: clamp(3rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; display: inline-block; }
.plan__per { font-weight: 500; }
.plan__note { font-size: .88rem; color: var(--mute); margin-top: -10px; }
.plan ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plan--pro ul { border-color: var(--line-d); }
.plan li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.plan--pro li { border-color: var(--line-d); }
.plan li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--coral); }
.plan li.no { color: var(--mute); }
.plan--pro li.no { color: var(--mute-d); }
.plan li.no::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.plan__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.plan__foot .btn { justify-content: center; }
.plan__foot .small { text-align: center; font-size: .9rem; opacity: .75; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

.warn { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.warn ul { list-style: none; margin: 0; padding: 0; }
.warn li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-d); font-size: 1.08rem; }
.warn li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: .5em; border-radius: 50%; background: var(--coral); }
@media (max-width: 900px) { .warn { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts div { border-radius: 22px; background: var(--paper); padding: 26px; }
.facts div:first-child { background: var(--coral); }
.facts b { display: block; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.facts span { display: block; margin-top: 12px; color: var(--mute); font-size: .95rem; }
.facts div:first-child span { color: rgba(28, 28, 28, .75); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ── Pie ────────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--bone); padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(24px, 3vw, 56px); padding-bottom: 56px; }
.foot__brand p { color: var(--mute-d); margin-top: 18px; max-width: 34ch; }
.foot__brand .btn { margin-top: 24px; }
.foot__contact { margin-top: 18px; display: grid; gap: 4px; }
.foot__contact a { text-decoration: none; }
.foot__contact a:hover { color: var(--coral); }
.foot h2 { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--mute-d); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li a { text-decoration: none; }
.foot li a:hover { color: var(--coral); }
.foot__word { font-size: clamp(6rem, 26vw, 26rem); font-weight: 600; letter-spacing: -.075em; line-height: .76; margin: 0 0 -.05em -.04em; white-space: nowrap; user-select: none; }
.foot__word .dot { display: inline-block; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 22px; border-top: 1px solid var(--line-d); color: var(--mute-d); font-size: .9rem; position: relative; background: var(--ink); }
.foot__bottom a { text-decoration: none; }
.foot__bottom a:hover { color: var(--bone); }
@media (max-width: 960px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__top { grid-template-columns: 1fr; } }

/* Barra móvil */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 45; padding: 6px; border-radius: 999px; background: rgba(28, 28, 28, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .mbar .btn { justify-content: center; padding: 13px 10px; }
  body { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .slab { position: relative; top: auto; }
}

/* ── MacBook + iPhone (sección fija que avanza con el scroll) ── */
.devices { position: relative; height: 340vh; background: var(--ink); color: var(--bone); }
.devices__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.devices__canvas { position: absolute; inset: 0 0 0 26%; }
.devices__canvas canvas { display: block; width: 100%; height: 100%; }
.devices__canvas .fallback { position: absolute; right: 6%; top: 50%; width: 60%; transform: translateY(-50%); border-radius: 14px; }
.devices__canvas.is-3d .fallback { display: none; }
.devices__copy { position: relative; z-index: 2; padding-top: calc(var(--head-h) + clamp(32px, 6vh, 72px)); pointer-events: none; }
.devices__copy > * { pointer-events: auto; }
.devices__copy h2 { max-width: 11ch; }
.devices__copy .lead { margin-top: 20px; max-width: 34ch; color: var(--mute-d); }
.devices__copy .btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .devices { height: 300vh; }
  .devices__canvas { inset: 42% 0 0 0; }
  .devices__copy h2 { max-width: 14ch; }
}

/* ── Hero claro con bloques flotantes ───────────────────── */
.head__logo .l-ink { display: none; }
body:has(.hero--light) .head:not(.is-solid):not(.is-open) { color: var(--ink); }
body:has(.hero--light) .head:not(.is-solid):not(.is-open) .l-white { display: none; }
body:has(.hero--light) .head:not(.is-solid):not(.is-open) .l-ink { display: block; }
body:has(.hero--light) .head:not(.is-solid):not(.is-open) .nav__btn:hover,
body:has(.hero--light) .head:not(.is-solid):not(.is-open) .nav__link:hover { background: rgba(28, 28, 28, .07); }
body:has(.hero--light) .head:not(.is-solid):not(.is-open) .nav__link[aria-current='page'] { box-shadow: inset 0 0 0 1px rgba(28, 28, 28, .3); }
.hero--light { background: radial-gradient(120% 90% at 70% 30%, #fbf9f5 0%, var(--bone) 55%, #e9e4da 100%); color: var(--ink); }
.hero--light .lead, .hero--light .hero__meta { color: var(--mute); }
.hero--light h1 { color: var(--ink); }
.hero__floats { position: absolute; inset: var(--head-h) 0 0; z-index: 1; pointer-events: none; }
.fl { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 18px; font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; pointer-events: auto; box-shadow: 0 24px 48px -24px rgba(60, 40, 30, .35), 0 2px 6px rgba(60, 40, 30, .06); transition: transform 300ms var(--e-out); will-change: transform; }
.fl--ink { background: var(--ink); color: var(--bone); }
.fl--coral { background: var(--coral); color: var(--ink); }
.fl--paper { background: #fff; color: var(--ink); }
.fl__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.fl--coral .fl__dot { background: var(--ink); }
.fl--chat { flex-direction: column; align-items: flex-start; gap: 4px; max-width: 250px; white-space: normal; padding: 12px 16px; background: #d9fdd3; color: #111b21; border-radius: 18px 18px 4px 18px; font-size: .93rem; font-weight: 400; line-height: 1.35; }
.fl--chat b { font-size: .78rem; color: #0b8f72; font-weight: 600; }
.fl--place { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 16px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); font-size: .9rem; }
.fl--place span { display: flex; justify-content: space-between; gap: 18px; }
.fl--place i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--coral-deep); font-weight: 600; }
a.fl:hover { transform: translateY(-3px) scale(1.03); }
@media (max-width: 900px) {
  .fl { padding: 10px 14px; font-size: .88rem; }
  .fl--chat, .fl--place { display: none; }
  .fl:nth-child(1) { --x: 4% !important; --y: 4% !important; }
  .fl:nth-child(2) { --x: 52% !important; --y: 0% !important; }
  .fl:nth-child(3) { --x: 6% !important; --y: 34% !important; }
  .fl:nth-child(4) { --x: 56% !important; --y: 30% !important; }
}

/* Bloques flotantes sobre el hero negro */
.hero:not(.hero--light) .fl--ink { background: #2b2b2b; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .1), 0 24px 48px -24px rgba(0, 0, 0, .7); }
.hero:not(.hero--light) .fl--paper { background: var(--bone); }
.hero:not(.hero--light) .fl--place { background: rgba(255, 255, 255, .07); color: var(--bone); box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .12); }
.hero:not(.hero--light) .fl--place i { color: var(--coral); }
.hero:not(.hero--light) .fl { box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7); }
.hero:not(.hero--light)::before { content: ''; position: absolute; left: 50%; top: 18%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 99, 95, .16), rgba(228, 99, 95, 0)); pointer-events: none; }

/* ── Ajustes finales: hero y sectores ───────────────────── */
.hero__floats { display: none; }
.hero__3d { left: 30%; height: 64%; }
.hero:not(.hero--light)::before { left: var(--hx, 62%); top: var(--hy, 36%); width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(228, 99, 95, .2), rgba(228, 99, 95, .06) 55%, rgba(228, 99, 95, 0)); transition: left 1.2s var(--e-out), top 1.2s var(--e-out); }
.hero__copy { padding-top: 0; }
@media (max-width: 900px) { .hero__3d { left: 0; height: 46%; } .hero__copy { padding-top: 50svh; } }

.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sectors .sector { width: auto; aspect-ratio: auto; min-height: 0; justify-content: flex-start; gap: 16px; padding: 28px; }
.sector__top { display: flex; align-items: center; gap: 14px; }
.sectors .sector__mark { position: static; flex: none; width: 48px; height: 48px; }
.sectors .sector__mark svg { width: 22px; height: 22px; }
.sectors .sector h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.sectors .sector p { font-size: .98rem; max-width: none; }
.sectors .sector ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; opacity: .9; }
.sectors .sector li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(127, 127, 127, .3); font-size: .93rem; }
.sectors .sector li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: currentColor; }
.sectors .sector__go { margin-top: auto; padding-top: 6px; }
.sectors .sector--other { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .2); }
.sectors .sector--other .sector__mark { background: var(--coral); }
.sectors .sector--other .sector__mark svg { color: var(--ink); }
.sectors .sector:nth-child(4) { background: transparent; }
@media (max-width: 1100px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sectors { grid-template-columns: 1fr; } }
