/* Cuadre Technologies · estilos de la web.
   Sin fuentes externas ni librerías: la web no pide nada a terceros, y así no hace falta
   aviso de cookies ni contar en la política de privacidad a quién se manda la IP. */

:root {
  --ink: #0b1f3a;
  --ink-2: #13294b;
  --ink-3: #081629;
  --text: #1d2939;
  --muted: #52607a;
  --line: #e2e8f0;
  --line-2: #cfd8e3;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;

  --green: #0b7a55;
  --green-600: #08664a;
  --green-bright: #19c28f;
  --green-soft: #e7f5ef;
  --red: #b42318;
  --red-soft: #fdecea;
  --amber: #b54708;
  --amber-soft: #fff5e8;
  --marker: #fff0a3;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -16px rgba(16, 24, 40, 0.22);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 36px 70px -24px rgba(11, 31, 58, 0.38);
  --max: 1160px;

  /* Las curvas de movimiento de HappyRobot: una para casi todo y otra, más viva, para
     las entradas. */
  --curva: cubic-bezier(0.33, 0, 0.15, 1);
  --curva-entra: cubic-bezier(0.22, 1, 0.36, 1);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, "Liberation Mono", monospace;

  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.8vw, 3.55rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.55rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }

:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}


.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------------ botones */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.9em 1.35em; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 122, 85, 0.65); }
.btn-primary:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: #aab6c6; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); background: #eef3f8; transform: translateY(-1px); }
.btn-sm { padding: 0.62em 1em; font-size: 0.93rem; border-radius: 10px; }

/* ------------------------------------------------------------------ cabecera */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(16, 24, 40, 0.35); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

/* El logotipo, «Punto final» (marca/README.md). Lo dibuja web/imagenes.py. */
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }
@media (max-width: 380px) { .brand-logo { height: 34px; } }

/* El punto verde de la marca: el mismo cuadrado que el del logotipo, al final del titular. */
.punto { display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.05em; background: var(--green); }

.nav-desktop { display: none; }
.nav-desktop a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-desktop a:hover { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
@media (min-width: 420px) { .header-cta { display: inline-flex; } }

.menu > summary {
  list-style: none; cursor: pointer; height: 44px; padding: 0 16px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); background: #fff;
  font-weight: 700; font-size: 0.95rem;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 68px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(16, 24, 40, 0.35);
  padding: 8px 20px 20px;
}
.menu-panel a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 650;
}
.menu-panel .btn { display: flex; margin-top: 16px; width: 100%; border-bottom: 0; color: #fff; }

/* Los seis enlaces y el botón caben en una línea desde 1060 px; por debajo, el menú. */
@media (min-width: 1060px) {
  .nav-desktop { display: flex; gap: 26px; }
  .menu { display: none; }
}

/* ------------------------------------------------------------------ portada */

.hero { position: relative; padding: 48px 0 72px; overflow: hidden; background: #fff; --celda: 56px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1020px) {
  .hero { padding: 80px 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green);
  font-size: 0.85rem; font-weight: 700;
}

.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 36em; }
.hero h1 { max-width: 15em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.98rem; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 2px; background: var(--green); }

/* La cuadrícula de la marca, detrás de la portada. Las líneas salen de la esquina de
   arriba a la derecha, y las celdas se colocan contando desde ahí (--x columnas desde la
   derecha, --y filas desde arriba), así que siempre caen justo en la cuadrícula. */
.hero-rejilla {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to left, rgba(11, 31, 58, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 31, 58, 0.085) 1px, transparent 1px);
  background-size: var(--celda) var(--celda);
  background-position: right top;
  -webkit-mask-image: linear-gradient(250deg, #000 30%, transparent 70%);
  mask-image: linear-gradient(250deg, #000 30%, transparent 70%);
  animation: rejilla-entra 1.6s var(--curva) both;
}
@keyframes rejilla-entra { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

.celda {
  position: absolute;
  right: calc(var(--celda) * var(--x));
  top: calc(var(--celda) * var(--y) + 1px);
  width: calc(var(--celda) * var(--w, 1) - 1px);
  height: calc(var(--celda) * var(--h, 1) - 1px);
}
/* Las fotos aparecen de abajo arriba, como en el vídeo, se quedan unos segundos y se van;
   cada una a su tiempo, de modo que casi siempre hay una a la vista. */
.celda-foto {
  background-color: var(--ink-2); background-size: cover; background-position: center;
  opacity: 0; animation: celda-foto 15s var(--curva) infinite;
}
@keyframes celda-foto {
  0% { opacity: 1; clip-path: inset(100% 0 0 0); }
  7%, 30% { opacity: 1; clip-path: inset(0 0 0 0); }
  38%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
}
/* Todas en la franja de la derecha, la que la incidencia deja libre. */
.foto-1 { --x: 0; --y: 1; --w: 2; --h: 2; background-image: url("fotos/revisa-transporte.jpg"); animation-delay: 0.8s; }
.foto-2 { --x: 0; --y: 5; --w: 2; --h: 3; background-image: url("fotos/revisa-compras.jpg"); animation-delay: 5.8s; }
.foto-3 { --x: 1; --y: 9; --w: 2; --h: 2; background-image: url("fotos/revisa-luz.jpg"); animation-delay: 10.8s; }
.celda-verde { --x: 0; --y: 3; background: var(--green); animation: punto-entra 0.8s 1.1s var(--curva-entra) both; }
@keyframes punto-entra { from { opacity: 0; transform: translateY(-60%); } to { opacity: 1; transform: none; } }

@media (max-width: 1019px) {
  .hero { --celda: 44px; }
  .hero-rejilla {
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
    mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
  }
  .celda-foto { display: none; }
  .celda-verde { --x: 1; --y: 1; }
}

/* La portada entra como la de HappyRobot: sube 16 px y aparece, cada parte un poco
   después de la anterior. Solo con CSS: si el JavaScript tarda, no hay que esperarlo. */
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-grid > div:first-child > * { animation: subir 0.7s var(--curva-entra) both; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: 0.06s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: 0.12s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: 0.18s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: 0.24s; }
/* La tarjeta espera un poco más: así web.js llega antes de que se vea y puede rellenarla. */
.hero-visual { animation: subir 0.9s 0.45s var(--curva-entra) both; }

/* La incidencia de ejemplo y su carta */
.hero-visual { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.hero-figure { margin: 0; position: relative; padding-top: 104px; }

.letter {
  position: absolute; top: 0; right: 0; width: 74%;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px 18px 14px; transform: rotate(2.5deg); transform-origin: top right;
}
.letter-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.letter-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.letter-to { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.letter-lines { display: grid; gap: 6px; margin: 10px 0 40px; }
.letter-lines span { display: block; height: 6px; border-radius: 3px; background: #e8edf3; }
.letter-lines span:nth-child(2) { width: 92%; }
.letter-lines span:nth-child(3) { width: 64%; }
.letter-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; padding: 8px 0; font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.letter-total strong { color: var(--green); font-size: 0.86rem; }

.incident {
  position: relative; margin-right: 6%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.incident-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.incident-id { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.incident-body { padding: 16px 18px 18px; }
.incident-title { margin: 0 0 2px; font-size: 1.02rem; font-weight: 750; color: var(--ink); }
.incident-meta { margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); }

.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 750; white-space: nowrap; }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-grey { background: #eef1f5; color: var(--muted); }

.snippet {
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: #3b4656;
  background: #fbfbf7; border: 1px dashed var(--line-2); border-radius: 8px; padding: 8px 8px 6px;
}
.snippet-row {
  display: grid; grid-template-columns: 3.3em minmax(0, 1fr) 2.6em 4.4em; gap: 6px; padding: 2px 4px;
}
.snippet-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snippet-row span:nth-child(3), .snippet-row span:nth-child(4) { text-align: right; }
.snippet-row.is-head { color: #8a94a3; border-bottom: 1px solid #e6e9ee; margin-bottom: 2px; }
.snippet-row.is-hit { background: var(--marker); border-radius: 4px; box-shadow: inset 3px 0 0 #e2b100; color: var(--ink); font-weight: 700; }
.snippet-row { transition: background-color 0.4s var(--curva), box-shadow 0.4s var(--curva), color 0.4s var(--curva); }
.snippet { position: relative; }
.escaner {
  position: absolute; left: 6px; right: 6px; top: 0; height: 2px; border-radius: 2px;
  background: var(--green); box-shadow: 0 -10px 16px -4px rgba(11, 122, 85, 0.35); pointer-events: none;
}
.letter-total strong { border-radius: 6px; padding: 0 4px; margin-right: -4px; transition: background-color 0.6s var(--curva); }
.letter-total strong.is-sumando { background: var(--green-soft); }
.snippet-cap { margin-top: 6px; font-family: var(--font); font-size: 0.7rem; color: var(--muted); }

.amounts { margin: 14px 0 0; display: grid; gap: 8px; }
.amounts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9rem; }
.amounts dt { color: var(--muted); }
.amounts dt small { display: block; font-size: 0.74rem; color: #8592a6; }
.amounts dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amounts .is-diff { padding-top: 10px; border-top: 1px solid var(--line); }
.amounts .is-diff dt { color: var(--ink); font-weight: 700; }
.amounts .is-diff dd { color: var(--red); font-size: 1.15rem; }

.incident-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fcfdfd; }
.pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 0.76rem; font-weight: 700;
}

.figure-note { margin: 14px 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }

/* ------------------------------------------------------------------ misión */

/* El manifiesto, en el crema del banner de LinkedIn. Al bajar, las palabras pasan de
   apagadas a encendidas una a una (web.js), como en la web de HappyRobot. */
.manifiesto { background: #f6f3ea; padding: 88px 0 96px; }
@media (min-width: 900px) { .manifiesto { padding: 120px 0 128px; } }
.manifiesto-texto {
  margin: 0; max-width: 30em;
  font-size: clamp(1.55rem, 3.3vw, 2.6rem); font-weight: 650; line-height: 1.24; letter-spacing: -0.025em;
  color: var(--ink); text-wrap: pretty;
}
.manifiesto-texto em { font-style: normal; color: var(--green); white-space: nowrap; }
.manifiesto-texto .palabra { transition: opacity 0.25s linear; }

@media (max-width: 420px) {
  .letter { width: 86%; }
  .incident { margin-right: 0; }
}

/* ------------------------------------------------------------------ sectores */

.sectors { background: #fff; padding: 36px 0 40px; border-top: 1px solid var(--line); }
.sectors-title { margin: 0 0 16px; text-align: center; font-size: 0.86rem; font-weight: 700; color: var(--muted); }
.sector-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tile {
  flex: 1 1 140px; min-height: 108px; position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; padding: 14px 16px; border-radius: 14px;
  background-color: var(--ink-2); background-size: cover; background-position: center;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 31, 58, 0.05) 15%, rgba(11, 31, 58, 0.82) 100%); }
.tile span { color: #fff; font-weight: 700; font-size: 0.98rem; line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
@media (min-width: 1020px) { .tile { min-height: 132px; } }

/* ------------------------------------------------------------------ secciones */

.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 740px; margin: 0 0 48px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }

.grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) and (max-width: 1019px) {
  .grid-3.is-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) { .grid { gap: 24px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.card h3 { margin-bottom: 0.45em; }
.card > p { color: var(--muted); }
.card .card-benefit { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 0.95rem; font-weight: 650; color: var(--green); }

.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 24px; font-size: 0.97rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 2px; background: var(--green); }

/* El problema */
.problem-grid .card { box-shadow: var(--shadow); }
.card-label { display: inline-block; margin-bottom: 12px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

.callout {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--amber-soft); border: 1px solid #f6d7ae; border-left: 4px solid var(--amber); color: #5a2e0a;
}
.callout strong { color: #4a2507; }

/* Qué revisamos */
.scope-card { padding: 0; overflow: hidden; }
.scope-photo {
  height: 150px; position: relative; isolation: isolate; display: flex; align-items: flex-end; padding: 18px 26px;
  background-color: var(--ink-2); background-size: cover; background-position: center;
}
.scope-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 31, 58, 0.08) 0%, rgba(11, 31, 58, 0.84) 100%); }
.scope-photo h3 { margin: 0; color: #fff; font-size: 1.25rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.scope-card .checklist { margin: 0; padding: 22px 26px 26px; }

.formats {
  margin-top: 24px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius);
}
.formats p { margin: 0; color: var(--muted); }

/* Cómo funciona */
.steps { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 940px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.step-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.step p { color: var(--muted); }
.step-foot { margin-top: auto; padding-top: 16px; }
.step-foot p { padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 0.93rem; font-weight: 650; color: var(--green); }
@media (min-width: 940px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 48px; right: -29px; width: 30px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px);
  }
}

/* El vídeo */
.pelicula { margin: 0; }
.pelicula-marco { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); box-shadow: var(--shadow-lg); }
.pelicula-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink-3); }
.pelicula-controles { position: absolute; right: 14px; bottom: 20px; display: flex; gap: 8px; }
.pelicula-controles[hidden] { display: none; }
/* La barra de progreso: una línea fina en el borde de abajo, verde hasta donde va el
   vídeo. Se toca o se arrastra para ir a otro momento (web.js), en una franja más alta
   que la línea; con el teclado, con el control deslizante invisible que lleva dentro. */
.pelicula-progreso { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; cursor: pointer; touch-action: pan-y; }
.pelicula-progreso[hidden] { display: none; }
.pelicula-barra { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pelicula-linea { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.22); transition: height 0.15s var(--curva); }
.pelicula-visto { position: absolute; inset: 0; background: var(--green-bright); transform: scaleX(0); transform-origin: left center; }
.pelicula-progreso:hover .pelicula-linea, .pelicula-progreso.arrastrando .pelicula-linea { height: 6px; }
.pelicula-barra:focus-visible + .pelicula-linea { height: 8px; background: rgba(255, 255, 255, 0.45); }
@media (pointer: coarse) {
  .pelicula-progreso { height: 22px; }
  .pelicula-linea { height: 4px; }
}
.pelicula-boton {
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  background: rgba(7, 20, 37, 0.55); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.2s var(--curva), border-color 0.2s var(--curva);
}
.pelicula-boton:hover { background: rgba(7, 20, 37, 0.8); border-color: var(--green-bright); }
.pelicula-boton .corto { display: none; }
/* En el móvil, botones algo más pequeños y «Ampliar» en vez de «Pantalla completa», para
   que quepan en una línea sin tapar el vídeo. */
@media (max-width: 560px) {
  .pelicula-controles { right: 10px; bottom: 16px; gap: 6px; }
  .pelicula-boton { padding: 6px 11px; font-size: 0.76rem; }
  .pelicula-boton .largo { display: none; }
  .pelicula-boton .corto { display: inline; }
}
.pelicula-guion { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.pelicula-guion summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.pelicula-guion p { margin: 12px 0 0; max-width: 46em; }
.section-ink .pelicula-marco { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -32px rgba(0, 0, 0, 0.7); }
.section-ink .pelicula-guion { color: #b5c3d6; }
.section-ink .pelicula-guion summary { color: #fff; }
/* Ampliado: a pantalla completa o, si el navegador no lo deja, ocupando toda la ventana.
   Los botones se apartan cuando nadie mueve el ratón ni toca la pantalla (web.js). */
.pelicula-marco.ampliado { display: flex; align-items: center; justify-content: center; border-radius: 0; background: #000; box-shadow: none; }
.pelicula-marco.ampliado .pelicula-video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: #000; }
.pelicula-marco.en-pagina { position: fixed; inset: 0; z-index: 1000; }
.ampliado .pelicula-controles {
  right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 30px);
  transition: opacity 0.3s var(--curva);
}
.ampliado .pelicula-progreso {
  left: max(18px, env(safe-area-inset-left, 0px)); right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  transition: opacity 0.3s var(--curva);
}
.ampliado .pelicula-linea { border-radius: 3px; }
.ampliado.quieto { cursor: none; }
.ampliado.quieto .pelicula-controles, .ampliado.quieto .pelicula-progreso { opacity: 0; pointer-events: none; }
.sin-desplazar, .sin-desplazar body { overflow: hidden; }

/* Pruebas */
.section-ink { background: var(--ink); color: #c7d2e1; position: relative; overflow: hidden; }
.section-ink h2, .section-ink h3, .section-ink strong { color: #fff; }
.section-ink .kicker { color: var(--green-bright); }
.section-ink .lead { color: #b5c3d6; }
.section-ink .container { position: relative; }

.proof { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1020px) { .proof { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.stats { display: grid; gap: 16px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 24px 22px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
.stat-num { font-size: clamp(2.1rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-num.is-green { color: var(--green-bright); }
.stat-label { margin-top: 10px; font-size: 0.95rem; color: #c7d2e1; }
.fineprint { margin-top: 18px; font-size: 0.84rem; color: #92a2b8; }

.how-proof { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.how-proof li { position: relative; padding-left: 26px; }
.how-proof li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 2px; background: var(--green-bright); }

/* Ventajas */
.adv-card { border-top: 3px solid var(--green); }

/* Comparativa */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare caption { text-align: left; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--bg-soft); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.compare thead th.is-us { background: var(--ink); color: #fff; }
.compare tbody th { width: 26%; font-weight: 700; color: var(--ink); }
.compare td { color: var(--muted); }
.compare td.is-us { background: var(--green-soft); color: var(--ink); font-weight: 650; }
.mark { font-weight: 800; }
.mark.is-yes { color: var(--green); }
.mark.is-no { color: #6b778c; }
.mark.is-part { color: var(--amber); }
.table-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 6px 0 10px; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { width: 100%; border: 0; padding: 14px 18px 6px; font-size: 1rem; }
  .compare td { border: 0; padding: 6px 18px; display: grid; grid-template-columns: 42% 1fr; gap: 12px; }
  .compare td::before { content: attr(data-label); font-size: 0.8rem; font-weight: 700; color: var(--muted); padding-top: 2px; }
  .compare td.is-us { background: var(--green-soft); border-radius: 10px; margin: 4px 0; width: calc(100% - 24px); margin-left: 12px; padding: 10px 6px; }
}

/* Precio */
.pricing { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1020px) { .pricing { grid-template-columns: 1fr 1fr; gap: 32px; } }
.plans { display: grid; gap: 18px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.is-featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 16px; margin-bottom: 4px; }
.plan-name { margin: 0; font-size: 1.12rem; }
.plan-step { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.price { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.price small { font-size: 0.95rem; font-weight: 650; letter-spacing: 0; color: var(--muted); }
.plan .checklist { margin-top: 18px; }

.calc { background: var(--ink); color: #c7d2e1; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
@media (min-width: 1020px) { .calc { position: sticky; top: 92px; } }
.calc h3 { color: #fff; margin-bottom: 0.3em; }
.calc > p { color: #a9b8cc; font-size: 0.95rem; }
.calc-label { display: block; margin-top: 20px; font-size: 0.9rem; font-weight: 700; color: #fff; }
.calc-field {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; padding: 10px 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px;
}
.calc-field:focus-within { border-color: var(--green-bright); }
.calc-field input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff;
  font: inherit; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.calc-field span { font-size: 1.5rem; font-weight: 800; color: #8fa1b9; }
.calc-range { width: 100%; accent-color: var(--green-bright); margin: 0; height: 28px; cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: #7f91aa; margin-top: 2px; }

.calc-bar { display: flex; height: 14px; margin: 22px 0 18px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.calc-bar .is-keep { background: var(--green-bright); transition: width 0.25s; }
.calc-bar .is-fee { background: #8ea3c2; transition: width 0.25s; }

.calc-rows { margin: 0; display: grid; gap: 10px; }
.calc-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-rows dt { font-size: 0.95rem; }
.calc-rows dt small { display: block; color: #8193ab; font-size: 0.8rem; }
.calc-rows dd { margin: 0; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-rows .is-keep { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.calc-rows .is-keep dt { color: #fff; font-weight: 700; }
.calc-rows .is-keep dd { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--green-bright); }
.calc-rows .is-keep dd.is-negative { color: #ffb4a8; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.is-keep { background: var(--green-bright); }
.dot.is-fee { background: #8ea3c2; }
.calc-note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(25, 194, 143, 0.1); color: #cfeee2; font-size: 0.9rem; }
.calc-fine { margin-top: 12px; font-size: 0.8rem; color: #7f91aa; }

/* Sus datos */
.trust-item { border-left: 4px solid var(--green); }
.trust-item h3 { margin-bottom: 0.3em; }
.trust-item p { color: var(--muted); margin: 0; }

/* Quién */
.about { display: grid; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .about { grid-template-columns: 210px 1fr; gap: 44px; padding: 40px; } }
.about-photo {
  width: 168px; height: auto; aspect-ratio: 3 / 4; border-radius: 20px;
  object-fit: cover; object-position: center top; background: var(--bg-soft); box-shadow: var(--shadow);
}
@media (min-width: 760px) { .about-photo { width: 210px; } }
.about h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.about .about-role { margin: -0.3em 0 1em; color: var(--green); font-weight: 700; }
.about p { color: var(--muted); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Preguntas */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color 0.15s, box-shadow 0.15s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.05rem; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); }

/* Contacto */
.cta { text-align: center; }
.cta .section-head { margin-bottom: 36px; }
/* Llamar, escribir y guardar el contacto: en tres columnas si caben; si no, la tercera
   ocupa la fila entera debajo de las otras dos. */
.contact-options { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
@media (min-width: 700px) {
  .contact-options { grid-template-columns: 1fr 1fr; }
  .contact-option:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .contact-options { grid-template-columns: repeat(3, 1fr); }
  .contact-option:nth-child(3) { grid-column: auto; }
}
.contact-option {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; text-align: left; text-decoration: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
  color: #fff; transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.contact-option:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: var(--green-bright); transform: translateY(-2px); }
.contact-option small { display: block; color: var(--green-bright); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-option strong { color: #fff; font-size: 1.12rem; word-break: break-word; }
.cta-note { margin-top: 26px; font-size: 0.88rem; color: #92a2b8; }

/* ------------------------------------------------------------------ pie */

.site-footer { background: var(--ink-3); color: #9aaac0; padding: 56px 0 32px; font-size: 0.93rem; }
.site-footer a { color: #d3dce8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-about p { margin-top: 14px; max-width: 30em; }
.footer-title { margin: 0 0 12px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.84rem;
}

/* ------------------------------------------------------------------ páginas legales */

.legal { padding: 56px 0 88px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; letter-spacing: -0.015em; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 2em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.97rem; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { width: 32%; color: var(--ink); font-weight: 700; background: var(--bg-soft); }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 650; text-decoration: none; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }

/* ------------------------------------------------------------------ fotos de fondo */

/* Fotos reales de Unsplash, ya difuminadas y reducidas por web/fotos.py. Van al final para
   ganar a los fondos lisos de cada sección. El velo de ::before es lo que garantiza que el
   texto se lea encima: no se quita sin comprobar el contraste. */
.has-photo { position: relative; isolation: isolate; background-size: cover; background-position: center; }
.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.has-photo > .container { position: relative; }

.photo-problema { background-color: var(--bg-soft); background-image: url("fotos/problema.jpg"); }
.photo-problema::before { background: rgba(244, 247, 250, 0.8); }

.photo-pruebas { background-image: url("fotos/pruebas.jpg"); }
.photo-pruebas::before { background: linear-gradient(90deg, rgba(11, 31, 58, 0.94) 0%, rgba(11, 31, 58, 0.76) 100%); }

.photo-contacto { background-image: url("fotos/contacto.jpg"); background-position: center 70%; }
.photo-contacto::before { background: rgba(11, 31, 58, 0.84); }

.photo-revisa-transporte { background-image: url("fotos/revisa-transporte.jpg"); }
.photo-revisa-compras { background-image: url("fotos/revisa-compras.jpg"); }
.photo-revisa-luz { background-image: url("fotos/revisa-luz.jpg"); }
.photo-revisa-duplicados { background-image: url("fotos/revisa-duplicados.jpg"); }

.photo-sector-distribucion { background-image: url("fotos/sector-distribucion.jpg"); }
.photo-sector-transporte { background-image: url("fotos/sector-transporte.jpg"); }
.photo-sector-hoteles { background-image: url("fotos/sector-hoteles.jpg"); }
.photo-sector-locales { background-image: url("fotos/sector-locales.jpg"); }
.photo-sector-clinicas { background-image: url("fotos/sector-clinicas.jpg"); }

/* ------------------------------------------------------------------ movimiento */

/* Lo que entra al bajar: web.js marca con .revela lo que aún no se ve y le pone .visto
   cuando llega. Sin JavaScript no se marca nada y todo está quieto y a la vista. */
.revela { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--curva), transform 0.7s var(--curva); }
.revela.visto { opacity: 1; transform: none; }
/* La línea discontinua entre los pasos se dibuja después de que entre cada paso. */
@media (min-width: 940px) {
  .step.revela::after { transform: scaleX(0); transform-origin: left; transition: transform 0.6s 0.35s var(--curva); }
  .step.revela.visto::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .celda-foto.foto-1 { opacity: 1; }
}

@media print {
  .site-header, .hero-visual, .hero-rejilla, .calc, .menu, .pelicula-marco { display: none !important; }
  .section-ink, .site-footer { background: #fff; color: #000; }
}
