:root {
  --primary: #0877a8;
  --primary-hover: #075f86;
  --accent: #1d9bd1;
  --ink: #14212b;
  --muted: #53636e;
  --line: #d9e2e8;
  --surface: #ffffff;
  --bg: #f4f7f9;
  --btn: #d3f0e1;
  --btn-hover: #c1e8d2;
  --btn-border: #43946b;
  --btn-text: #14472b;
  --ok: #087f5b;
  --warn-bg: #ffe9a8;
  --warn-text: #5c3a00;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 33, 43, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Los enlaces del menú aterrizan con el título completo, por debajo de la cabecera fija */
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Cabecera */
header.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.nav img { height: 48px; width: auto; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Botones (verde pastel con texto oscuro, como en la app) */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1.5px solid var(--btn-border);
  background: var(--btn); color: var(--btn-text); transition: background 0.15s, transform 0.15s;
  cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn.sm { padding: 9px 16px; font-size: 0.92rem; }

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--primary); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.92rem; }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 6px; }

/* Maqueta del móvil */
.phone {
  width: 290px; margin-inline: auto; background: #fff; border: 8px solid var(--ink);
  border-radius: 38px; box-shadow: var(--shadow); padding: 18px 16px 22px; position: relative;
}
.phone::before { content: ''; display: block; width: 70px; height: 6px; border-radius: 4px; background: var(--ink); margin: -6px auto 14px; opacity: 0.85; }
.phone { text-align: center; }
.phone .who { font-size: 0.8rem; color: var(--muted); }
.phone .state { display: inline-block; background: var(--btn); color: var(--btn-text); font-weight: 700; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; margin: 6px 0 10px; }
.phone .clock { display: grid; place-items: center; width: 150px; aspect-ratio: 1; margin: 10px auto 8px; border: 5px solid #6aa84f; border-radius: 50%; color: #6aa84f; font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.phone .sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; text-align: center; }
.phone { text-align: center; }
.phone .who { margin-bottom: 2px; }
.phone .row { display: flex; gap: 8px; margin-bottom: 8px; }
.phone .pb { flex: 1; text-align: center; padding: 11px 6px; border-radius: 10px; font-weight: 700; font-size: 0.86rem; border: 1.5px solid var(--btn-border); background: var(--btn); color: var(--btn-text); }
.phone .pb.off { background: #eef1ef; color: #5a6a61; border-color: #d2dad5; }
.phone .log { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.78rem; color: var(--muted); }
.phone .log div { text-align: left; display: flex; justify-content: space-between; padding: 3px 0; }
.floating {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px 14px; font-size: 0.8rem; font-weight: 600;
}
.floating small { display: block; font-weight: 400; color: var(--muted); }
.f1 { right: -34px; top: 70px; }
.f2 { left: -40px; bottom: 80px; }
.hero-visual { position: relative; padding: 10px 40px; }

/* Cuadrículas de tarjetas */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: #e3f2f9; color: var(--primary);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 1.3rem;
}

.alt { background: #fff; border-block: 1px solid var(--line); }

/* Problema/solución */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.checklist li::before { content: '✓'; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-text); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: 0.95rem; }

/* Maqueta correcciones */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel h4 { margin: 0 0 14px; font-size: 0.95rem; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); margin-right: 4px; }
.tag.ok { background: var(--btn); color: var(--btn-text); }
.line { padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.line:first-of-type { border-top: 0; }
.line .mut { color: var(--muted); font-size: 0.82rem; }
.line s { color: var(--muted); }
.hash { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 0.8125rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; margin-top: 10px; word-break: break-all; }

/* Roles */
.role h3 { display: flex; align-items: center; gap: 10px; }
.role ul { padding-left: 18px; margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
.role li { margin-bottom: 4px; }

/* Pasos */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Franja de cifras */
.facts { background: var(--primary); color: #fff; padding: 44px 0; }
.facts .grid { margin: 0 auto; grid-template-columns: repeat(4, 1fr); text-align: center; }
.facts b { display: block; font-size: 1.8rem; letter-spacing: -0.02em; }
.facts span { opacity: 0.9; font-size: 0.92rem; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }
.faq { max-width: 780px; margin: 32px auto 0; }

/* CTA final y contacto */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: #fff;
  border-radius: 24px; padding: 56px 32px; text-align: center;
}
.cta p { opacity: 0.95; max-width: 560px; margin-inline: auto; }
.cta .btn { margin: 8px 6px 0; }
.cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta .btn.secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

footer { padding: 40px 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot img { height: 38px; width: auto; }
.foot ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot-fin { display: flex; align-items: center; gap: 14px; }
.foot-red { display: inline-flex; }
.foot .foot-red { color: #fff; }

/* Páginas legales */
.legal { padding: 56px 0; max-width: 760px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal .resumen { padding: 6px 10px; border-left: 4px solid #0b4f7a; background: #e6f1fa; color: #0b4f7a; font-weight: 700; border-radius: 4px; }
.legal .todo { background: var(--warn-bg); color: var(--warn-text); padding: 2px 6px; border-radius: 4px; }

/* Aparición */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts .grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .f1 { right: 0; } .f2 { left: 0; }
}
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 16px; gap: 14px; align-items: flex-start; }
  .nav ul.open { display: flex; }
  .g3, .g2, .steps { grid-template-columns: 1fr; }
  .floating { display: none; }
  .hero-visual { padding: 10px 0; }
}

@media (max-width: 720px) {
  .nav { height: 72px; }
  .nav img { height: 40px; }
  .nav ul { top: 72px; }
}

/* Cuadro de consulta */
.consulta { border: 0; border-radius: var(--radius); padding: 26px; width: min(520px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(20, 33, 43, 0.35); color: var(--ink); }
.consulta::backdrop { background: rgba(20, 33, 43, 0.55); }
.consulta h3 { margin: 0 0 6px; }
.consulta .mut { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.consulta label { display: block; font-weight: 600; font-size: 0.92rem; margin: 12px 0 4px; }
.consulta input, .consulta textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.consulta input:focus, .consulta textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.consulta textarea { resize: vertical; }
.consulta-botones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.consulta-botones .btn { margin: 0; }

/* ===== Diseño v7: negros, grises y azules ===== */
:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --accent: #38bdf8;
  --ink: #0b0f17;
  --muted: #5c6574;
  --line: #dde1e8;
  --bg: #eef0f4;
  --surface: #ffffff;
  --btn: #2563eb;
  --btn-hover: #1d4ed8;
  --btn-border: #2563eb;
  --btn-text: #ffffff;
  --ok: #1d4ed8;
  --warn-bg: #dbeafe;
  --warn-text: #1e3a8a;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(11, 15, 23, 0.18);
}
body { background: var(--bg); }
h1, h2 { letter-spacing: -0.04em; font-weight: 800; }
.eyebrow { background: #dbeafe; color: #1e40af; padding: 5px 14px; border-radius: 6px; }
header.top { background: rgba(255, 255, 255, 0.92); }
.nav a:hover { color: var(--primary); }

.btn { border-radius: 999px; padding: 14px 28px; border: 0; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); }
.btn:hover { box-shadow: 0 12px 26px rgba(37, 99, 235, 0.5); }
.btn.secondary { background: rgba(255, 255, 255, 0.06); color: #e5e9f0; border: 1.5px solid rgba(255, 255, 255, 0.35); box-shadow: none; }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

.hero { background: radial-gradient(800px 460px at 88% 0%, rgba(56, 189, 248, 0.28), transparent 65%), radial-gradient(500px 400px at 0% 100%, rgba(37, 99, 235, 0.25), transparent 70%), linear-gradient(160deg, #05070b 0%, #0f1520 60%, #1a2332 100%); color: #e5e9f0; padding: 88px 0 96px; }
.hero h1 { color: #fff; }
.hero h1 span { color: #60a5fa; }
.hero .lead { color: rgba(229, 233, 240, 0.78); }
.hero .eyebrow { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.hero .ticks { color: rgba(229, 233, 240, 0.78); }
.hero .ticks li::before { color: #38bdf8; }
.phone { border-color: #2a3446; border-radius: 40px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.08); background: #fff; }
.phone .state { background: #dbeafe; color: #1e40af; }
.phone .clock { color: #2563eb; border-color: #2563eb; }
.phone .pb { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.phone .pb.off { background: #eef0f4; color: #6b7482; border-color: #dde1e8; }
.floating { background: #fff; border: 0; border-radius: 12px; color: var(--ink); }

.facts { background: #0b0f17; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.facts b { font-size: 2rem; background: linear-gradient(90deg, #60a5fa, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: rgba(229, 233, 240, 0.7); opacity: 1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(11, 15, 23, 0.05); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-4px); border-color: #93c5fd; box-shadow: 0 16px 34px rgba(29, 78, 216, 0.16); }
.icon { background: #0f1520; color: #fff; border-radius: 12px; }
.grid .card:nth-of-type(3n+2) .icon { background: #1d4ed8; }
.grid .card:nth-of-type(3n) .icon { background: #475569; }
.alt { background: #e3e6ec; border-block: 0; }
.checklist li::before { background: #1d4ed8; color: #fff; }
.panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tag { background: #e2e8f0; color: #334155; }
.tag.ok { background: #dbeafe; color: #1e40af; }
.step { background: var(--surface); border: 1px solid var(--line); }
.step::before { background: #0b0f17; }
.step:nth-child(even)::before { background: #2563eb; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
details[open] summary { color: var(--primary); }
.hash { background: #eef0f4; }

.cta { background: radial-gradient(520px 260px at 90% 0, rgba(56, 189, 248, 0.4), transparent 65%), linear-gradient(135deg, #0b0f17, #172033 60%, #1e3a8a); border-radius: 24px; }
footer { background: #05070b; border-top: 0; color: rgba(229, 233, 240, 0.65); }
footer img { background: #fff; border-radius: 8px; padding: 4px 8px; }
.foot a { color: rgba(229, 233, 240, 0.65); }
.foot a:hover { color: #fff; }

.consulta { background: var(--surface); }
.consulta .btn.secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.consulta input, .consulta textarea { border: 1.5px solid var(--line); background: #fff; }
.consulta input:focus, .consulta textarea:focus { outline-color: var(--primary); border-color: var(--primary); }
.f2 { left: -20px; bottom: -14px; }
@media (max-width: 900px) { .f2 { left: 0; } }
@media (max-width: 720px) { .hero { padding: 56px 0 64px; } }

/* Ajustes: móvil girado y blancos pasados a crema pastel */
:root { --surface: #fbf5e6; --bg: #ebe8e1; --line: #ddd6c6; }
.alt { background: #e2ded4; }
header.top { background: rgba(255, 255, 255, 0.96); }
.phone { background: #fbf5e6; transform: rotate(3deg); }
.phone .pb.off { background: #efe8d6; border-color: #ddd3bb; }
.floating { background: #fbf5e6; }
.hash { background: #f1ead9; }
.consulta .btn.secondary, .consulta input, .consulta textarea { background: #fdf9ee; }
footer img { background: #fbf5e6; }
@media (max-width: 900px) { .phone { transform: none; } }

/* Botón «Volver» de las páginas legales: azul de la web, texto blanco y compacto */
.nav .btn.sm { color: var(--btn-text); padding: 10px 18px; font-size: 0.92rem; white-space: nowrap; }
.nav .btn.sm:hover { color: var(--btn-text); }

/* Planes publicados desde la consola: el precio principal es lo que cuesta al mes; el Anual es el protagonista */
.planes-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan-tarjeta { display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; padding: 24px 22px 22px; border-width: 2px; }
.plan-tarjeta h3 { margin: 0; font-size: 1.5rem; }
.plan-tarjeta h3 span { display: block; }
.plan-tarjeta .plan-nombre-2 { font-weight: 600; font-size: 1rem; }
.plan-tarjeta .plan-etiqueta { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 4px 14px; border-radius: 999px; }
.plan-tarjeta .plan-etiqueta-vacia { visibility: hidden; }
.plan-tarjeta .plan-precio { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1.05; margin-top: 6px; }
.plan-tarjeta .plan-precio-mes { font-size: 1.2rem; font-weight: 700; margin-left: 2px; }
.plan-tarjeta .plan-precio-iva { display: block; font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.plan-tarjeta .plan-real { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.plan-tarjeta .plan-descripcion { font-size: 0.92rem; }
.plan-tarjeta .plan-trabajadores { color: var(--ink); font-weight: 700; margin-top: 6px; }
.plan-tarjeta .plan-extra { font-size: 0.875rem; font-weight: 400; margin: -2px 0 8px; text-wrap: balance; min-height: 3.2em; }
.plan-tarjeta .btn { margin: auto 0 10px; justify-content: center; width: 100%; max-width: 280px; }
.plan-tarjeta .btn.secondary { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.plan-tarjeta .btn.secondary:hover { background: #eef7fc; color: var(--primary-hover); border-color: var(--primary-hover); }
.plan-tarjeta .plan-pie { width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.plan-tarjeta .plan-pie p { margin: 0; font-size: 0.88rem; }
.plan-tarjeta .plan-alta { font-weight: 600; color: var(--muted); }
.plan-tarjeta .plan-pie .plan-hoy { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.plan-tarjeta .plan-pie .plan-iva { font-size: 0.875rem; margin-bottom: 8px; }
.plan-tarjeta .plan-pie .plan-incluye { font-size: 0.85rem; }
.plan-tarjeta .plan-calma { display: flex; flex-direction: column; gap: 2px; }
.plan-tarjeta .plan-calma p { margin: 0; font-size: 0.88rem; }
.plan-tarjeta .plan-sin-renovar { font-weight: 700; color: var(--ok) !important; }
.plan-tarjeta .plan-renueva { text-wrap: balance; }
.plan-tarjeta .plan-precio-antes { color: #b91c1c; text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 600; margin-right: 6px; }
/* Plan protagonista: fondo azul muy suave, borde de la marca y etiqueta destacada */
.plan-tarjeta.plan-destacado { background: #eef7fc; border: 2px solid var(--primary); box-shadow: 0 14px 34px rgba(8, 119, 168, 0.18); }
.plan-tarjeta.plan-destacado .plan-etiqueta { color: #fff; background: var(--primary); border-radius: 999px; padding: 4px 14px; }
.plan-tarjeta.plan-destacado .plan-precio { color: var(--primary); }
.plan-tarjeta.plan-destacado .plan-pie { border-top-color: #bcdcec; }
#planes-nota { margin: 14px 0 0; }
.planes-prueba { margin: 28px 0 0; }
.planes-prueba, #planes-nota { padding: 20px 34px; font-size: 1.25rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.planes-prueba a, #planes-nota a { color: var(--primary); font-weight: 800; }
/* Bloque de valor y frase de lo incluido, antes de las tarjetas */
.planes-valor { margin: 28px auto 0; text-align: center; }
.planes-valor-titulo { margin: 0 0 14px; font-size: 1.25rem; }
.planes-valor-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.planes-valor-lista > div { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.pv-icono { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e3f2fa; color: var(--primary); }
.pv-icono svg { width: 22px; height: 22px; }
.planes-valor-lista h4 { margin: 0 0 2px; font-size: 1rem; line-height: 1.25; color: var(--ink); }
.planes-valor-lista p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.planes-incluye { margin: 28px 0 0; padding: 20px 28px; font-size: 1.12rem; line-height: 1.55; color: var(--ink); background: #e3f2fa; border: 2px solid var(--primary); border-radius: 16px; box-shadow: 0 8px 22px rgba(8, 119, 168, 0.14); }
.planes-incluye a { font-weight: 800; color: var(--primary); white-space: nowrap; }
.planes-incluye b { display: block; margin-bottom: 6px; font-size: 1.3rem; color: var(--primary); }
/* Personalización inicial: explicación bajo las tarjetas y desplegable con su alcance */
.planes-alta { margin: 28px 0 0; padding: 26px 34px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.planes-alta[hidden] { display: none; }
.planes-alta h3 { margin: 0 0 8px; font-size: 1.5rem; }
.planes-alta p { margin: 0 0 14px; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.planes-alta summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; color: var(--primary); }
.planes-alta ul { margin: 12px 0 0; padding-left: 22px; font-size: 1.1rem; }
.planes-alta li { margin: 6px 0; }
/* Pantallas estrechas: una columna, de mayor a menor duración (Anual, Semestral, Mensual) */
@media (max-width: 900px) {
  .planes-lista { display: flex; flex-direction: column-reverse; max-width: 420px; margin-inline: auto; }
  .planes-valor-lista { grid-template-columns: 1fr; }
}
/* Cuadros flotantes del móvil: azul claro, distinto del crema de la pantalla del teléfono */
.floating { background: #dbeafe; border: 1px solid #93c5fd; color: #1e3a8a; }
.floating small { color: #1e40af; }
.f2 { max-width: 230px; bottom: -58px; }

/* Móvil de la portada: la pantalla «Mi jornada» actual (barra «Estamos en / Ir a», marco gris y tarjeta blanca), con la misma inclinación */
.phone { padding: 0 0 14px; overflow: hidden; }
.phone::before { margin: 10px auto 8px; }
.phone .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; background: #fffbf0; border-top: 1px solid #e6dcc4; border-bottom: 1px solid #e6dcc4; text-align: left; }
.phone .bar small { display: block; font-size: 0.62rem; color: var(--muted); }
.phone .bar b { font-size: 1rem; color: #1e3a8a; }
.phone .ira { border: 1.5px solid #93c5fd; background: #dbeafe; color: #1e3a8a; font-weight: 700; font-size: 0.72rem; padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.phone .marco { margin: 12px 12px 0; padding: 8px; background: #ece8e0; border: 1px solid #cfc8ba; border-radius: 16px; }
.phone .tarjeta { background: #fff; border: 1px solid #cfc8ba; border-radius: 16px; padding: 12px 8px; }
.phone .fecha { font-size: 0.7rem; font-weight: 700; color: #1e3a8a; margin-bottom: 4px; }
.phone .clock { width: auto; aspect-ratio: auto; border-radius: 12px; border-width: 3px; padding: 8px; font-size: 1.55rem; margin: 8px 0 6px; }
.phone .pausas { font-size: 0.68rem; color: var(--muted); margin-top: 6px; }
.phone .pb, .phone .ira { display: flex; align-items: center; justify-content: center; gap: 6px; }
.phone .ira { gap: 5px; }
.phone svg { width: 16px; height: 16px; flex: none; color: #2563eb; }
.phone .ira svg { width: 14px; height: 14px; }
/* Cabecera de la app dentro del móvil: logo, empresa, persona y «Cerrar sesión» (datos inventados) */
.phone .cab { padding: 0 14px 8px; text-align: center; }
.phone .cab img { display: block; margin: 0 auto; width: 120px; height: auto; }
.phone .cab small { display: block; font-size: 0.55rem; color: var(--muted); line-height: 1.25; margin-top: 3px; }
.phone .cab .empresa { display: block; font-size: 0.8rem; color: #0a9c4a; margin: 1px 0 6px; }
.phone .sesion { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; }
.phone .sesion b { display: block; font-size: 0.72rem; color: var(--ink); line-height: 1.25; }
.phone .sesion small b { font-size: 0.58rem; }
.phone .salir { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 0.6rem; font-weight: 700; padding: 5px 8px; border-radius: 999px; background: #fde4d0; color: #5c2a08; border: 1.5px solid #c2672a; }
.phone .salir svg { width: 12px; height: 12px; color: #c2672a; }


/* Funciones: titular y una línea corta; «Detalle» abre un panel con los puntos */
.card .corto { color: var(--ink); font-size: 1rem; line-height: 1.5; }
.detalle-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 0; background: none; border: 0; font: inherit; font-size: 0.94rem; font-weight: 700; color: var(--primary); cursor: pointer; }
.detalle-btn:hover { text-decoration: underline; }
.detalle-btn svg { transition: transform 0.15s; }
.detalle-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.card.abierta { border-color: var(--primary); box-shadow: 0 8px 22px rgba(8, 119, 168, 0.18); }
.detalle-contenido ul, .detalle-panel ul { margin: 10px 0 0; padding-left: 20px; }
.detalle-contenido li, .detalle-panel li { margin: 6px 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }
.detalle-panel { grid-column: 1 / -1; padding: 20px 28px; background: #eef7fc; border: 2px solid var(--primary); border-radius: var(--radius); }
.detalle-panel h4 { margin: 0; font-size: 1.15rem; color: var(--primary); }
.detalle-panel li { font-size: 1.02rem; }

/* Funciones: el icono va a la izquierda del titular (que puede ocupar dos líneas) para ganar altura */
:is(#funciones, #roles, #seguridad) .grid > article.card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-content: start; padding: 20px 22px; }
:is(#funciones, #roles, #seguridad) .grid > article.card .icon { margin: 0; grid-column: 1; grid-row: 1; align-self: center; }
:is(#funciones, #roles, #seguridad) .grid > article.card h3 { margin: 0; grid-column: 2; grid-row: 1; align-self: center; line-height: 1.25; }
:is(#funciones, #roles, #seguridad) .grid > article.card .corto { grid-column: 1 / -1; margin: 12px 0 0; }
:is(#funciones, #roles, #seguridad) .grid > article.card .detalle-btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
:is(#funciones, #roles, #seguridad) .grid > article.card .detalle-contenido { grid-column: 1 / -1; }

/* Roles: puntos cortos visibles; la lista completa queda en «Ver detalle» */
#roles .role ul.puntos { grid-column: 1 / -1; margin: 12px 0 0; padding-left: 20px; }
#roles .role ul.puntos li { margin: 6px 0; font-size: 0.97rem; line-height: 1.5; color: var(--ink); }
/* Roles: un matiz muy suave por perfil (los iconos mantienen su contraste) */
#roles .role:nth-of-type(1) { background: #f7f9fc; }
#roles .role:nth-of-type(2) { background: #f3f8ff; }
#roles .role:nth-of-type(3) { background: #f8f6ff; }

/* Seguridad: los cuatro principios pesan lo mismo (mismo icono, tarjeta clara con borde azul grisáceo tenue) */
#seguridad .grid > article.card { background: #fff; border: 1px solid #cbd5e1; }
#seguridad .grid > article.card .icon { background: #0f1520; }

/* Menú de escritorio: algo mayor y bajado para alinearlo con las letras del logo */
@media (min-width: 901px) {
  .nav ul { padding-top: 28px; }
  .nav a { font-size: 1.05rem; }
}

/* Cómo empezar: tres pasos en horizontal, con el número como elemento principal y una línea fina que los une */
#empezar { background: #eef4fb; }
#empezar .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
#empezar .step { background: #fff; border: 1px solid #cbd5e1; padding: 22px 24px 24px; position: relative; }
#empezar .step::before {
  width: auto; height: auto; border-radius: 0; background: none; display: block; place-items: unset;
  margin: 0 0 12px; font-size: 2.6rem; line-height: 1; font-weight: 800; color: #1e3a8a;
}
#empezar .step:nth-child(even)::before { background: none; }
#empezar .step h3 { margin: 0 0 6px; }
#empezar .step:not(:last-child)::after {
  content: ''; position: absolute; top: 44px; left: 64px; right: -36px; height: 0; border-top: 2px solid #b6c4d6;
}
@media (max-width: 900px) {
  #empezar .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  #empezar .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-content: start; }
  #empezar .step::before { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  #empezar .step h3, #empezar .step p { grid-column: 2; }
  #empezar .step:not(:last-child)::after {
    top: 64px; left: 36px; right: auto; width: 0; height: auto; bottom: -38px; border-top: 0; border-left: 2px solid #b6c4d6;
  }
}

/* Planes: mientras llegan de la consola se reserva un mínimo de altura (solo con la lista vacía) para que la página no salte */
#planes-lista:empty { min-height: 34rem; }
@media (max-width: 900px) {
  #planes-lista:empty { min-height: 88rem; }
}

/* Etiquetas de sección: una raya corta y el texto, sin cápsula; cabecera alineada al borde izquierdo del contenido */
:is(#planes, #empezar, #funciones, #trazabilidad, #roles, #seguridad, #faq) .eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; background: none; border-radius: 0;
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #1e3a8a;
}
:is(#planes, #empezar, #funciones, #trazabilidad, #roles, #seguridad, #faq) .eyebrow::before {
  content: ''; width: 28px; height: 3px; background: #1e3a8a; flex: none;
}
:is(#planes, #empezar, #funciones, #roles, #seguridad, #faq) .center.reveal:first-child { text-align: left; }
:is(#planes, #empezar, #funciones, #roles, #seguridad, #faq) .center.reveal:first-child .lead { margin-inline: 0; }
:is(#planes, #empezar, #funciones, #trazabilidad, #roles, #seguridad, #faq) h2 { margin: 0 0 16px; }
:is(#planes, #empezar, #funciones, #trazabilidad, #roles, #seguridad, #faq) .lead { margin-top: 0; }
/* Preguntas: la cabecera y la lista empiezan en el mismo borde izquierdo que el resto de secciones; las respuestas no se alargan */
#faq .faq { max-width: none; margin-inline: 0; }
#faq .faq details p { max-width: 780px; }

/* Menú de escritorio con siete accesos: sin partir las palabras y algo más compacto en pantallas medianas */
@media (min-width: 901px) {
  .nav a { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .nav ul { gap: 16px; }
  .nav a { font-size: 0.95rem; }
}

/* Móvil del hero: cabecera como la de la app hoy (Ayuda a la derecha; datos de la persona y «Cerrar sesión» a la izquierda, uno bajo otro) */
.phone .cab { position: relative; }
.phone .ayuda { position: absolute; right: 12px; top: 2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: #fde4d0; border: 1.5px solid #c2672a; }
.phone .ayuda svg { width: 14px; height: 14px; color: #c2672a; }
.phone .sesion { display: block; margin-top: 4px; }
.phone .sesion .salir { display: inline-flex; margin-top: 5px; }

/* El cuadro de la hora baja junto al reloj para no tapar la cabecera del móvil (Ayuda, «Ir a» y «Control de tiempos») */
.f1 { top: 300px; right: -60px; max-width: 190px; }
@media (max-width: 900px) { .f1 { right: 0; } }

/* Cabecera: accesos de solo texto, alineados con la base del logo */
@media (min-width: 901px) {
  .nav ul { align-self: center; position: relative; top: 6px; height: 48px; align-items: flex-end; gap: 26px; }
  .nav ul a { color: #0b0f17; font-weight: 500; }
  .nav ul a:hover { color: var(--primary); }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .nav ul { gap: 16px; }
}

/* Aviso de cookies (analítica): los dos botones pesan lo mismo, aceptar y rechazar */
.vf-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin-inline: auto; display: grid; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid #d9d3c2; border-radius: 14px; box-shadow: 0 10px 30px rgba(11, 15, 23, 0.22); color: #0b0f17; font-size: 0.92rem; line-height: 1.45; }
.vf-cookies p { margin: 0; }
.vf-cookies a { color: #1d4ed8; }
.vf-cookies-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.vf-cookies-boton { flex: 1 1 140px; padding: 10px 16px; border: 1.5px solid #1d4ed8; border-radius: 999px; background: #1d4ed8; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vf-cookies-boton:hover { background: #1e40af; border-color: #1e40af; }

/* Pantalla de PC con estadísticas simuladas: un monitor arriba a la derecha de la cabecera, detrás del móvil */
.hero-grid { grid-template-columns: 0.9fr 1.1fr; }
.hero-visual { padding: 0; min-height: 590px; }
.pc { position: absolute; top: 0; right: -24px; width: 520px; z-index: 1; text-align: left; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.pc .pc-monitor { position: relative; padding: 14px 12px 16px; background: linear-gradient(180deg, #2b3445, #161c28); border: 1px solid #3c475b; border-radius: 16px; }
.pc .pc-camara { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #0b0f17; box-shadow: 0 0 0 1px #3c475b; }
.pc .pc-pantalla { overflow: hidden; border-radius: 6px; background: #fff; }
.pc .pc-navegador { display: flex; align-items: center; gap: 5px; padding: 6px 10px; background: #dfe5ee; border-bottom: 1px solid #c7d0de; }
.pc .pc-navegador i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #aab5c7; }
.pc .pc-navegador span { flex: 1; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #fff; font-size: 0.56rem; color: #5b6472; }
.pc .pc-app { background: #eef3fa; }
.pc .pc-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; background: #fff; border-bottom: 1px solid #d6dfec; }
.pc .pc-cab img { display: block; width: 84px; height: auto; }
.pc .pc-cab nav { display: flex; gap: 12px; font-size: 0.58rem; color: #5b6472; }
.pc .pc-cab nav b { color: #1e3a8a; padding-bottom: 2px; border-bottom: 2px solid #2563eb; }
.pc .pc-titulo { padding: 8px 12px 0; font-size: 0.8rem; font-weight: 800; color: #1e293b; }
.pc .pc-cuerpo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px 12px; }
.pc .pc-card { background: #fff; border: 1px solid #d6dfec; border-radius: 8px; padding: 8px 9px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.pc .pc-mapa { grid-row: 2 / span 2; }
.pc .pc-card h4 { margin: 0 0 6px; font-size: 0.62rem; color: #1e293b; }
.pc .pc-card svg { display: block; width: 100%; height: auto; }
.pc .pc-seg { display: flex; gap: 2px; height: 20px; }
.pc .pc-seg i { display: flex; align-items: center; padding-left: 6px; border-radius: 4px; font-style: normal; font-size: 0.62rem; font-weight: 700; color: #fff; min-width: 0; }
.pc .pc-leyenda { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 6px 0 0; font-size: 0.55rem; color: #5b6472; }
.pc .pc-leyenda span { display: inline-flex; align-items: center; gap: 4px; }
.pc .pc-donut { display: flex; align-items: center; gap: 10px; }
.pc .pc-donut svg { flex: none; width: 46%; max-width: 110px; }
.pc .pc-donut .pc-leyenda { flex-direction: column; margin: 0; gap: 4px; font-size: 0.6rem; }
.pc .pc-asistencia .pc-donut { padding-left: 50%; }
.pc .pc-leyenda b { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.pc .pc-cifra { margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; color: #1e293b; }
.pc .pc-cifra small { font-size: 0.62rem; font-weight: 600; color: #5b6472; }
.pc .pc-medidor { position: relative; height: 8px; border-radius: 4px; background: #cde2fb; }
.pc .pc-medidor i { display: block; height: 100%; border-radius: 4px; background: #2a78d6; }
.pc .pc-medidor b { position: absolute; top: -3px; width: 1.5px; height: 14px; background: #1e293b; }
.pc .pc-cuello { width: 90px; height: 26px; margin: 0 auto; background: linear-gradient(90deg, #121824, #3a4558 50%, #121824); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.pc .pc-base { width: 210px; height: 9px; margin: 0 auto; border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, #4a566b, #1b2230); }
.hero-visual .phone { position: relative; z-index: 2; margin: 215px auto 0 -30px; transform-origin: left bottom; }
.f1 { left: auto; right: 0; top: 590px; bottom: auto; z-index: 3; max-width: 250px; }
.f2 { left: auto; right: 24px; top: 682px; bottom: auto; z-index: 3; max-width: 250px; }
/* Ventana de navegador ancha e inclinada, con el móvil delante y los avisos flotantes sobre sus esquinas */
@media (min-width: 901px) { .hero .hero-grid { width: min(1480px, 100% - 64px); } }
.pc { width: 108%; max-width: 880px; right: -3%; top: 4px; filter: none; transform: perspective(2200px) rotateY(-5deg) rotateZ(-1.2deg); transform-origin: right center; }
.pc .pc-monitor { padding: 0; background: none; border: 0; border-radius: 0; }
.pc .pc-camara, .pc .pc-cuello, .pc .pc-base { display: none; }
.pc .pc-pantalla { border-radius: 14px; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.hero-visual .phone { margin: 24px auto 0 -46px; transform: scale(0.7) rotate(2deg); transform-origin: left bottom; }
.f1 { left: 152px; right: auto; top: 392px; bottom: auto; max-width: 310px; }
.f2 { left: 34px; right: auto; top: 602px; bottom: auto; max-width: 310px; }
/* Tarjetas flotantes: blancas, con sombra marcada, icono de color a la izquierda y estado a la derecha */
.floating { display: flex; align-items: center; gap: 12px; max-width: 310px; padding: 12px 16px 12px 12px; border: 0; border-radius: 18px; background: #ffffff; color: #0f172a; font-size: 0.92rem; font-weight: 700; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.06); }
.floating b { display: block; font-size: 0.95rem; color: #0f172a; }
.floating small { display: block; margin-top: 2px; color: #475569; font-size: 0.74rem; font-weight: 500; line-height: 1.35; }
.floating .fl-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.floating .fl-ico svg { width: 22px; height: 22px; }
.floating .fl-verde { background: #dcfce7; color: #15803d; }
.floating .fl-azul { background: #dbeafe; color: #1d4ed8; }
.floating .fl-ok { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #16a34a; color: #fff; }
.floating .fl-ok.azul { background: #2563eb; }
.floating .fl-ok svg { width: 13px; height: 13px; }
@media (max-width: 1100px) { .pc { width: 460px; right: 0; transform: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pc { display: none; }
  .hero-visual { min-height: 0; }
  .hero-visual .phone { margin: 0 auto; transform: none; }
  .floating { display: none; }
}

/* Logo y menú alineados con el ancho de la cabecera (hero) en pantallas grandes */
@media (min-width: 901px) { header.top .wrap.nav { width: min(1480px, 100% - 64px); } }

/* Móvil de la cabecera: como la app actual (Cerrar sesión y Ayuda solo con icono, en las esquinas; estado en verde). */
.phone .salir { position: absolute; left: 12px; top: 2px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 8px; }
.phone .salir svg { width: 14px; height: 14px; }
.phone .ayuda { border-radius: 8px; }
.phone .state { background: #d3f0e1; color: #14472b; }

/* Frase de garantía bajo el título de la cabecera: grande y con una barra a la izquierda, en verde para que destaque. */
.hero .garantia { margin: 0 0 1.2rem; padding: 0.15rem 0 0.15rem 0.9rem; border-left: 4px solid #4ade80; font-size: clamp(1.35rem, 2.9vw, 1.8rem); font-weight: 800; line-height: 1.25; color: #4ade80; }

/* «Control horario para empresas» en la cabecera: fondo claro y texto azul oscuro para que se lea bien sobre el fondo oscuro. */
.hero .eyebrow { background: #dbeafe; color: #1e3a8a; font-weight: 800; }

/* Móvil de la portada: «Time» a la derecha del logo, sobre su misma línea de base. */
.phone .cab .marca-movil { display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.phone .cab .marca-movil img { display: block; margin: 0; }
.phone .cab .marca-movil span { color: #4ade80; font-family: Lato, Carlito, Calibri, "Segoe UI", sans-serif; font-size: 1.15rem; font-weight: 700; line-height: 1; }
