/* tenerifIA · noviembre de 2026
   Una carta de las islas: papel blanco, tinta azul marino, agua clara y el amarillo de la bandera. */
:root {
  --paper: #ffffff;
  --sea: #f1f6fb;          /* agua clara: fondo de las secciones alternas */
  --sea-2: #dbe9f6;        /* veril: agua somera, bordes suaves */
  --line: #cfdceb;         /* líneas de tablas y campos */
  --ink: #0b2545;          /* tinta de la carta */
  --ink-2: #41556f;        /* texto secundario, teñido de la tinta */
  --blue: #1497e8;         /* el azul del logo: solo en gráficos */
  --blue-deep: #0a5fc2;    /* enlaces */
  --yellow: #ffc81f;       /* amarillo canario: la acción y el «sí» */
  --yellow-deep: #f0b400;
  --map-shade: #c3d3e6;    /* sombra del relieve */
  --ok: #0f7a4d;
  --err: #b3261e;

  --f-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --t-display: clamp(2.75rem, 1.55rem + 5.1vw, 5.5rem);
  --t-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --t-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1240px;
  --sec: clamp(80px, 10vw, 148px);
  --r: 14px;
  --r-s: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 12px 32px -8px rgba(11, 37, 69, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #9db4cf var(--sea); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--blue-deep);
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.w { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); }
.sec--sea { background: var(--sea); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.028em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--t-h2); max-width: 21ch; }
h3 { font-size: var(--t-h3); letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: var(--t-lead); line-height: 1.42; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.small { font-size: var(--t-small); color: var(--ink-2); }

/* Botones: uno amarillo para la acción, uno de contorno para lo demás */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--yellow-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(240, 180, 0, .7); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--s { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.tlink { color: var(--blue-deep); font-weight: 500; }
.tlink:hover { text-decoration-thickness: 2.5px; }

/* ───────── Cabecera ───────── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); transition: box-shadow .3s; }
.nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 38px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a:not(.btn) { text-decoration: none; font-size: 1rem; padding: 8px 0; }
.nav__links a:not(.btn):hover { text-decoration: underline; }

/* ───────── Portada: la carta ───────── */
.hero { position: relative; background: var(--paper); overflow: clip; }
.hero__in { position: relative; z-index: 2; min-height: calc(100svh - 72px); padding-top: clamp(36px, 7svh, 88px); padding-bottom: 36px; display: flex; flex-direction: column; pointer-events: none; }
.hero__in > * { pointer-events: auto; }
.hero h1 { font-size: var(--t-display); letter-spacing: -0.035em; line-height: .98; max-width: 11em; }
.hero .lead { margin-top: 28px; max-width: 38em; color: var(--ink); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.assure { display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: var(--t-small); font-weight: 500; margin-top: calc(var(--sec) * -0.45); margin-bottom: clamp(48px, 6vw, 88px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.chart { position: absolute; inset: 0; z-index: 1; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; cursor: grab; touch-action: pan-y; }
.chart canvas.is-dragging { cursor: grabbing; }
.chart.is-live canvas { opacity: 1; }
.chart__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.chart__names { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s 1.4s; }
.chart.is-live .chart__names { opacity: 1; }
.chart__names span { position: absolute; left: 0; top: 0; font: italic 400 1.0625rem/1 var(--f-serif); color: var(--ink); white-space: nowrap; letter-spacing: .01em; text-shadow: 0 0 6px #fff, 0 0 6px #fff, 0 0 2px #fff; will-change: transform; }
.chart__names span[data-isla="Tenerife"] { font-size: 1.3125rem; }
.chart__ocean { position: absolute; right: 20%; top: 17%; font: italic 400 clamp(1rem, 1.5vw, 1.375rem)/1 var(--f-serif); letter-spacing: .34em; color: #6f8fb3; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 1s 1.6s; }
.chart.is-live .chart__ocean { opacity: 1; }
.chart__credit { position: absolute; right: var(--pad); bottom: 36px; z-index: 3; font-size: .8125rem; color: var(--ink-2); max-width: 30ch; text-align: right; }

/* ───────── Demostración ───────── */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--paper); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 28px; }
.tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font-weight: 500; font-size: 1rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.tabs button:hover { color: var(--ink); background: var(--sea); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-height: 590px; }
.chat { background: #e6eef7; padding: 28px clamp(18px, 2.4vw, 32px) 28px; display: flex; flex-direction: column; gap: 14px; }
.chat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--t-small); color: var(--ink-2); padding-bottom: 6px; }
.chat__head b { color: var(--ink); font-weight: 600; font-size: 1rem; }
.bubble { max-width: 92%; padding: 14px 16px 10px; border-radius: 4px 16px 16px 16px; background: var(--paper); font-size: 1.0625rem; line-height: 1.42; box-shadow: 0 1px 1px rgba(11,37,69,.08); align-self: flex-start; }
.bubble time { display: block; margin-top: 6px; font-size: .8125rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.bubble--out { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: #fff0b8; }
.js .bubble--out { animation: llega .5s var(--ease) both; }
@keyframes llega { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chat__end { margin-top: auto; font-size: var(--t-small); color: var(--ink-2); display: flex; align-items: center; gap: 8px; min-height: 24px; }
.chat__end svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.flow { padding: 28px clamp(20px, 3vw, 44px) 32px; display: flex; flex-direction: column; }
.flow__steps { display: grid; counter-reset: paso; }
.step { display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; padding-bottom: 20px; position: relative; }
.step::before { counter-increment: paso; content: counter(paso); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .875rem; font-weight: 600; background: var(--sea); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s, box-shadow .3s; grid-row: 1; }
.step::after { content: ""; position: absolute; left: 14px; top: 36px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.step:last-child::after { display: none; }
.step.is-on::before { background: var(--ink); color: var(--paper); box-shadow: none; }
.step h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 30px; }
.step p { color: var(--ink-2); font-size: 1rem; line-height: 1.45; grid-column: 2; }
.step .reply { grid-column: 2; margin-top: 10px; padding: 14px 16px; background: var(--sea); border-radius: var(--r-s); font-size: 1rem; line-height: 1.45; }
.step .reply small { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #b4c7dc; color: var(--ink-2); font-size: .9375rem; }
.js .step { opacity: .3; transition: opacity .45s; }
.js .step.is-on { opacity: 1; }
.js .demo.is-static .step { opacity: 1; }
.flow__act { margin-top: auto; padding-top: 4px; padding-left: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; min-height: 60px; }
.flow__act .btn { min-width: 180px; }
.js .flow__act .btn.is-wait { animation: late 1.8s ease-in-out infinite; }
@keyframes late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.flow__done { color: var(--ok); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.flow__done svg { width: 20px; height: 20px; flex: none; }
.replay { background: none; border: 0; padding: 10px 0; color: var(--blue-deep); font-weight: 500; text-decoration: underline; text-underline-offset: .22em; }
.demo__foot { margin-top: 20px; }

/* ───────── Servicios: una hoja de tarifas, no tarjetas ───────── */
.svc { border-top: 1.5px solid var(--ink); }
.svc__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 12px clamp(20px, 3vw, 48px); align-items: start; padding: clamp(24px, 2.8vw, 36px) 0; border-bottom: 1px solid var(--line); }
.svc__row h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.02em; line-height: 1.1; }
.svc__row p { color: var(--ink-2); max-width: 46ch; }
.svc__meta { font-size: var(--t-small); text-align: right; display: grid; gap: 6px; justify-items: end; }
.svc__meta b { font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

/* ───────── Sectores ───────── */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.6vw, 56px) clamp(24px, 3vw, 48px); }
.sector h3 { display: flex; align-items: center; gap: 12px; }
.sector svg { width: 28px; height: 28px; flex: none; color: var(--blue-deep); }
.sector p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }
.fact { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 72px); align-items: center; padding: clamp(28px, 4vw, 52px); background: var(--paper); border-radius: var(--r); }
.fact .fact__n { font-size: clamp(3.5rem, 2rem + 6vw, 6rem); font-weight: 500; letter-spacing: -0.045em; line-height: .9; font-variant-numeric: tabular-nums; }
.fact .fact__n small { display: block; margin-top: 14px; font-size: var(--t-small); letter-spacing: 0; line-height: 1.4; color: var(--ink-2); font-weight: 400; max-width: 32ch; }
.fact p { font-size: var(--t-lead); line-height: 1.4; max-width: 34ch; }

/* ───────── Calculadora ───────── */
.calc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.calc__ctl { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 48px); }
.range label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 500; }
.range output { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.25rem; }
.range input { width: 100%; margin: 12px 0 0; height: 30px; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; }
.range input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--sea-2) var(--p, 50%)); }
.range input::-moz-range-track { height: 6px; border-radius: 6px; background: var(--sea-2); }
.range input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
.range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
.calc__out { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: clamp(28px, 3.6vw, 48px); }
.calc__out .calc__n { margin-top: 0; max-width: none; font-size: clamp(4rem, 2.6rem + 6vw, 7rem); font-weight: 500; letter-spacing: -0.05em; line-height: .86; font-variant-numeric: tabular-nums; color: var(--yellow); }
.calc__out p { margin-top: 14px; font-size: var(--t-lead); line-height: 1.35; max-width: 24ch; }
.calc__out .small { color: #b9c9de; margin-top: 12px; font-size: var(--t-small); max-width: 34ch; }
.calc__out .btn { margin-top: 28px; }

/* ───────── La oficina ───────── */
.office { display: grid; gap: clamp(32px, 4vw, 56px); }
.office > * { min-width: 0; }
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.roster li:nth-child(-n+3) { border-top: 1.5px solid var(--ink); }

/* La oficina en 3D (assets/v2/oficina.js). La escena conserva los colores de la casa canaria
   de la oficina real; lo que va encima (placas, avisos, barra) usa los de la web. */
.ofi { position: relative; height: clamp(560px, 56vw, 780px); border-radius: var(--r); overflow: hidden; background: #dfe8ee; isolation: isolate; box-shadow: inset 0 0 0 1px var(--line); }
.ofi[data-momento="tarde"] { background: #f0d7c0; }
.ofi[data-momento="noche"] { background: #172231; }
.ofi canvas { display: block; }
.ofi .ico { width: 1.1em; height: 1.1em; flex: none; }
.ofi__poster { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease-out; }
.ofi.is-viva .ofi__poster { opacity: 0; pointer-events: none; }
.ofi__abrir { position: absolute; z-index: 4; left: 50%; bottom: 32px; transform: translateX(-50%); }
.ofi__abrir[hidden], .cargando-3d[hidden] { display: none; }
.cargando-3d { position: absolute; z-index: 4; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--paper); font-size: var(--t-small); font-weight: 500; box-shadow: var(--shadow); }
.ofi__nota { margin-top: 16px; max-width: 86ch; font-size: var(--t-small); color: var(--ink-2); }
.capa-etiquetas { position: absolute; inset: 0; z-index: 1; cursor: grab; }
.capa-etiquetas:active { cursor: grabbing; }

.agente-3d { pointer-events: auto; cursor: pointer; display: grid; justify-items: center; gap: 3px; transition: opacity .25s ease-out; }
.agente-3d .placa { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; box-shadow: 0 2px 8px -2px rgba(11, 37, 69, .4); }
.agente-3d .cara { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c, var(--ink)); color: #fff; font-size: 12px; font-weight: 600; }
.agente-3d .cara img, .aviso-lista .cara img, .dock-3d .cara img { width: 100%; height: 100%; object-fit: cover; }
.agente-3d .cara .ico { width: 14px; height: 14px; }
.agente-3d.punto .placa, .agente-3d.choca .placa { padding: 3px; }
.agente-3d.choca .tag-3d, .agente-3d.choca .nombre { display: none; }
.ofi .agente-3d.fuera, .ofi .rotulo-3d.fuera { opacity: 0; pointer-events: none; }
.agente-3d.maestra .cara { background: var(--yellow); color: var(--ink); }
.agente-3d.esperando .placa { box-shadow: 0 0 0 2.5px var(--yellow), 0 4px 12px -2px rgba(11, 37, 69, .45); }
.agente-3d.sel .placa { background: var(--ink); color: #fff; }
.tag-3d { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; color: #fff; box-shadow: 0 2px 6px -1px rgba(11, 37, 69, .3); }
.tag-3d .ico { width: 12px; height: 12px; }
.tag-3d.espera { background: var(--yellow); color: var(--ink); animation: ofi-flota 1.4s ease-in-out infinite; }
.tag-3d.trabaja { background: var(--ink); }
.tag-3d.trabaja::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fd6a4; }
@keyframes ofi-flota { 50% { transform: translateY(-3px); } }
.rotulo-3d { pointer-events: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; transition: opacity .25s ease-out; }
.rotulo-3d .punto { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.rotulo-3d.suave { background: transparent; color: rgba(11, 37, 69, .7); }
.ofi[data-momento="noche"] .rotulo-3d.suave { color: rgba(255, 255, 255, .75); }

.estado-3d, .aviso-3d, .rotulo-sel, .dock-3d { position: absolute; z-index: 3; }
.estado-3d { top: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.estado-3d span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.estado-3d .luz { width: 8px; height: 8px; border-radius: 50%; background: #2fa868; }
.estado-3d .ejemplo { background: var(--ink); color: #fff; }

.aviso-3d { top: 14px; left: 14px; width: min(300px, calc(100% - 28px)); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); transition: opacity .2s ease-out; }
.aviso-3d[hidden], .rotulo-sel[hidden] { display: none; }
.aviso-cabeza { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; background: var(--yellow); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.aviso-cabeza span { flex: 1; }
.aviso-cabeza .ico:last-child { transform: rotate(180deg); transition: transform .2s ease-out; }
.aviso-3d.plegado .aviso-cabeza .ico:last-child { transform: none; }
.aviso-3d.plegado .aviso-lista { display: none; }
.aviso-lista { display: grid; padding: 6px; }
.aviso-lista button { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.aviso-lista button:hover { background: var(--sea); }
.aviso-lista button small { display: block; font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--ink-2); }
.aviso-lista > small { padding: 6px 8px 8px; font-size: 12.5px; color: var(--ink-2); }
.aviso-lista .cara, .dock-3d .cara { border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sea-2); font-weight: 600; }
.aviso-lista .cara { width: 32px; height: 32px; font-size: 13px; }
.aviso-lista .cara .ico, .dock-3d .cara .ico { width: 55%; height: 55%; }

.dock-3d { left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; max-width: calc(100% - 28px); overflow-x: auto; padding: 8px 10px; border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); scrollbar-width: none; }
.dock-3d:empty { display: none; }
.dock-3d::-webkit-scrollbar { display: none; }
.dock-3d button { flex: none; display: grid; justify-items: center; gap: 4px; width: 60px; padding: 4px 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.dock-3d button:hover, .dock-3d button.sel { background: var(--sea); }
.dock-3d .cara { width: 38px; height: 38px; font-size: 14px; }
.dock-3d .esperando .cara { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--yellow); }
.dock-3d .trabajando .cara { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2fa868; }
.dock-3d .nombre { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; line-height: 1.1; }

.rotulo-sel { left: 14px; bottom: 104px; width: min(400px, calc(100% - 28px)); display: grid; gap: 6px; padding: 16px 18px 18px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.rotulo-sel strong { padding-right: 36px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.rotulo-sel .sala { font-size: 13px; color: var(--ink-2); }
.rotulo-sel .sala::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--c); }
.rotulo-sel p { font-size: 15px; line-height: 1.4; }
.rotulo-sel p.espera { font-weight: 600; }
.rotulo-sel .btn { justify-self: start; margin-top: 6px; }
.rotulo-sel .cerrar { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.rotulo-sel .cerrar:hover { background: var(--sea); color: var(--ink); }
.roster li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.roster li:first-child { border-top: 1.5px solid var(--ink); }
.roster img, .roster .ini { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.roster .ini { display: grid; place-items: center; background: var(--sea-2); font-weight: 600; }
.roster b { font-weight: 600; }
.roster b span { font-weight: 400; color: var(--ink-2); }
.roster p { font-size: var(--t-small); color: var(--ink-2); line-height: 1.4; grid-column: 2; }

/* ───────── Vídeos ───────── */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: var(--sea-2); }
.reel a { display: block; text-decoration: none; }
.reel a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.reel h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.reel p { margin-top: 4px; font-size: var(--t-small); color: var(--ink-2); }

/* ───────── Cómo trabajamos ───────── */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); counter-reset: how; }
.how li { counter-increment: how; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.how li::before { content: counter(how); display: block; font: italic 400 2.75rem/1 var(--f-serif); color: var(--blue-deep); margin-bottom: 18px; }
.how p { margin-top: 10px; color: var(--ink-2); }

/* ───────── Precios ───────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.plan { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.plan:first-child { border-left: 0; }
.plan--main { background: var(--ink); color: var(--paper); border-left-color: var(--ink); }
.plan h3 { font-size: 1.25rem; }
.plan__price { margin-top: 20px; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__sub { margin-top: 10px; font-size: var(--t-small); color: var(--ink-2); min-height: 2.8em; }
.plan--main .plan__sub { color: #c3d2e6; }
.plan ul { margin: 24px 0 32px; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 1rem; line-height: 1.4; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.plan--main li svg { color: var(--yellow); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan__desde { font-size: 1rem; font-weight: 400; letter-spacing: 0; margin-right: 8px; color: var(--ink-2); }
.plan--main .plan__desde { color: #c3d2e6; }
.plans__nota { margin-top: 16px; font-size: var(--t-small); color: var(--ink-2); }

/* Tarifas sueltas, debajo de los planes */
.tarifa { width: 100%; border-collapse: collapse; margin-top: clamp(40px, 5vw, 72px); }
.tarifa caption { text-align: left; font-size: 1.25rem; font-weight: 600; padding-bottom: 20px; }
.tarifa tr { border-top: 1px solid var(--line); }
.tarifa tr:first-child { border-top-color: var(--ink); }
.tarifa th, .tarifa td { padding: 22px 32px 22px 0; text-align: left; vertical-align: baseline; }
.tarifa th { width: 26%; font-weight: 600; }
.tarifa td { color: var(--ink-2); }
.tarifa .tarifa__p { padding-right: 0; text-align: right; white-space: nowrap; color: var(--ink); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ───────── Preguntas ───────── */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-deep); }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* ───────── Diagnóstico ───────── */
.diag { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.diag .lead { margin-top: 20px; }
.diag__steps { margin-top: 32px; display: grid; gap: 14px; }
.diag__steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.diag__steps svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
.diag__alt { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.diag__alt a { font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; background: var(--paper); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--t-small); font-weight: 500; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-s); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b2545' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:not([type="radio"]):hover, .field select:hover, .field textarea:hover { border-color: #9db4cf; }
.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(10, 95, 194, .16); }
.field [aria-invalid="true"] { border-color: var(--err) !important; }
.field .err { font-size: var(--t-small); color: var(--err); }
.field .err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 1rem; font-weight: 400; transition: box-shadow .2s, background-color .2s; }
.radios label:hover { box-shadow: inset 0 0 0 1.5px #9db4cf; }
.radios label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--sea); }
.radios input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form__send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__status { font-size: var(--t-small); color: var(--err); }
.form__legal { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-2); }
.form__ok { background: var(--paper); border-radius: var(--r); padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow); }
.form__ok h3 { font-size: var(--t-h2); letter-spacing: -0.03em; }
.form__ok p { margin-top: 16px; font-size: var(--t-lead); color: var(--ink-2); }

/* ───────── Pie ───────── */
.foot { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0 32px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px clamp(24px, 4vw, 72px); }
.foot__brand p { margin-top: 18px; color: #c3d2e6; max-width: 32ch; }
.foot .brand { font-size: 1.5rem; }
.foot .brand img { width: 46px; background: var(--paper); border-radius: 10px; padding: 5px; }
.foot h2 { font-size: var(--t-small); font-weight: 600; letter-spacing: 0; margin-bottom: 14px; color: #c3d2e6; max-width: none; }
.foot ul { display: grid; gap: 10px; }
.foot__blog .blog-card-home { display: block; padding: 0 0 12px; }
.foot__blog .blog-tag, .foot__blog .blog-card-link { display: none; }
.foot__blog .blog-card-date { font-size: .8125rem; color: #9fb4cf; }
.foot__blog .blog-card-title { font-size: var(--t-small); line-height: 1.35; }
.foot__base { margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .8125rem; color: #9fb4cf; }

/* WhatsApp a mano en el móvil */
.wa { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); place-items: center; box-shadow: var(--shadow); }
.wa svg { width: 28px; height: 28px; }

/* La entrada de la portada: el único momento coreografiado */
.js .hero h1, .js .hero .lead, .js .hero__cta { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js .hero .lead { transition-delay: .08s; } .js .hero__cta { transition-delay: .16s; }
.js .hero.is-in h1, .js .hero.is-in .lead, .js .hero.is-in .hero__cta { opacity: 1; transform: none; }

/* ───────── Tableta ───────── */
@media (max-width: 1180px) { .chart__ocean { display: none; } }
@media (max-width: 1020px) {
  .nav__links a:not(.btn) { display: none; }
  .demo { grid-template-columns: 1fr; }
  .svc__row { grid-template-columns: 1fr; gap: 10px; }
  .svc__meta { text-align: left; justify-items: start; margin-top: 6px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .calc, .office, .faq, .diag { grid-template-columns: 1fr; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster li:nth-child(3) { border-top: 0; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  .plan__sub { min-height: 0; }
  .roster { grid-template-columns: 1fr; }
  .roster li:nth-child(2) { border-top: 0; }
  .ofi { height: 560px; }
  .ofi.con-rotulo .aviso-3d { opacity: 0; pointer-events: none; }
  .agente-3d .placa { font-size: 11px; padding: 2px 8px 2px 2px; gap: 5px; }
  .agente-3d .cara { width: 21px; height: 21px; font-size: 10px; }
  .tag-3d { font-size: 9.5px; padding: 3px 5px; }
  .rotulo-3d { font-size: 9.5px; padding: 3px 6px; }
  .estado-3d { top: 10px; right: 10px; }
  .estado-3d span { font-size: 11.5px; padding: 5px 9px; }
  .estado-3d span:first-child { display: none; }
  .aviso-3d { top: 48px; left: 10px; }
  .dock-3d { bottom: 10px; }
  .dock-3d button { width: 50px; }
  .dock-3d .cara { width: 32px; height: 32px; }
  .dock-3d .nombre { font-size: 10px; max-width: 48px; }
  .rotulo-sel { left: 10px; bottom: 92px; }
  .tarifa tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 18px 0; }
  .tarifa th, .tarifa td { padding: 0; width: auto; }
  .tarifa td:not(.tarifa__p) { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ───────── Móvil y pantallas altas: la carta va debajo del texto ───────── */
@media (max-width: 720px), (max-aspect-ratio: 1/1) {
  .hero { display: flex; flex-direction: column; }
  .hero__in { order: 1; min-height: 0; padding-top: clamp(32px, 5vw, 56px); padding-bottom: 0; }
  .chart { order: 2; }
  .chart__credit { order: 3; }
  .chart { position: relative; inset: auto; height: 56vw; min-height: 210px; margin-top: 12px; }
  .chart__ocean { display: none; }
  .chart__credit { position: static; text-align: left; max-width: none; padding: 0 var(--pad) 24px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .nav__in { min-height: 64px; }
  .brand { font-size: 1.125rem; } .brand img { width: 32px; }
  .hero .lead { margin-top: 20px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { width: 100%; }
  .chart__names span { font-size: .8125rem; }
  .chart__names span[data-isla="Tenerife"] { font-size: 1rem; }
  .chart__names span[data-isla="La Graciosa"] { display: none; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 28px; }
  .tabs button { padding: 0 10px; }
  .demo { min-height: 0; }
  .flow__act { min-height: 84px; }
  .flow__act { padding-left: 0; }
  .flow__act .btn { width: 100%; }
  .sectors { grid-template-columns: 1fr; }
  .reels { gap: 20px 12px; }
  .how { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.0625rem; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .foot__top { grid-template-columns: 1fr; }
  .wa { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .hero h1, .js .hero .lead, .js .hero__cta { opacity: 1; transform: none; }
  .js .step { opacity: 1; }
}

/* ───────── Páginas interiores (servicios y sectores) ───────── */
.sub { background: var(--sea); padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 104px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--t-small); color: var(--ink-2); margin-bottom: clamp(32px, 4.5vw, 64px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.sub__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: end; }
.sub h1 { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.5rem); letter-spacing: -0.035em; line-height: 1; max-width: 13em; }
.sub .lead { margin-top: 24px; color: var(--ink); max-width: 34em; }
.sub__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.sub .demo { margin-top: clamp(40px, 5vw, 72px); }
.ficha { background: var(--paper); border-radius: var(--r); padding: 6px clamp(20px, 2.4vw, 32px); box-shadow: var(--shadow); margin: 0; }
.ficha div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ficha div:last-child { border-bottom: 0; }
.ficha dt { font-size: var(--t-small); color: var(--ink-2); }
.ficha dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.svc--2 .svc__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.svc--2 .svc__row p { max-width: 58ch; }
.svc__row h3 a, .sector h3 a { text-decoration: none; }
.svc__row h3 a:hover, .sector h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); }
.duo ul { margin-top: 20px; display: grid; gap: 14px; }
.duo li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.duo svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
.duo .no svg { color: var(--ink-2); }
.story { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(24px, 4vw, 64px); align-items: start; }
.story h2 { font-size: var(--t-h3); letter-spacing: -0.015em; line-height: 1.2; color: var(--yellow); max-width: none; }
.story p { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; }
.plans--2 { grid-template-columns: 1fr 1fr; }
.plan .plan__txt { margin: 20px 0 0; }
.plan--main .plan__txt { color: #dbe6f3; }
.rel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); }
.rel h3 { font-size: var(--t-small); font-weight: 600; letter-spacing: 0; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.rel li { border-bottom: 1px solid var(--line); }
.rel a, .rel [aria-current] { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; text-decoration: none; font-size: 1.125rem; font-weight: 500; }
.rel a:hover { color: var(--blue-deep); }
.rel a svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.rel a:hover svg { transform: translateX(4px); }
.rel [aria-current] { color: var(--ink-2); font-weight: 400; }
@media (max-width: 1020px) {
  .sub__grid, .duo, .story, .rel { grid-template-columns: 1fr; }
  .svc--2 .svc__row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .plans--2 { grid-template-columns: 1fr; }
  .ficha div { grid-template-columns: 92px minmax(0, 1fr); }
  .sub__cta .btn { width: 100%; }
  .sub__grid { align-items: start; }
}
