/* Jornuvia Web. Paleta e Inter según docs/identidad-visual/. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("../docs/identidad-visual/fuentes/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url("../docs/identidad-visual/fuentes/inter-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("../docs/identidad-visual/fuentes/inter-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url("../docs/identidad-visual/fuentes/inter-700.woff2") format("woff2"); }

:root {
  --principal: #0F172A;
  --marca: #0D9488;
  --acento: #14B8A6;
  --fondo: #F8FAFC;
  --texto: #0F172A;
  --suave: #475569;
  --linea: #DBE4EE;
  --enlace: #0F766E;
  --radio: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; color: var(--texto); background: var(--fondo); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--enlace); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--acento); color: var(--principal); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.4rem; border-radius: var(--radio); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--acento); color: var(--principal); }
.btn-primary:hover { background: var(--marca); }
.btn-outline { border-color: #475569; color: #F8FAFC; }
.btn-outline:hover { border-color: var(--acento); }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--principal); border-bottom: 1px solid #1E293B; }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: #E2E8F0; text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--acento); }
.nav .btn { min-height: 40px; padding: .4rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #F8FAFC; margin: 5px 0; }

/* Sección principal */
.hero { background: var(--principal); color: #F8FAFC; padding: 4.5rem 0 5rem; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.badge { display: inline-block; padding: .3rem .85rem; border: 1px solid var(--acento); color: #5EEAD4; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
.lead { font-size: 1.35rem; font-weight: 600; color: #F8FAFC; margin-top: 1rem; }
.hero-desc { color: #CBD5E1; margin-top: 1rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* Vista ilustrativa del panel */
.mock { margin: 0; }
.mock figcaption { margin-top: .75rem; font-size: .85rem; color: #94A3B8; text-align: center; }
.mock-win { display: grid; grid-template-columns: 150px 1fr; background: var(--fondo); border: 1px solid #334155; border-radius: 12px; overflow: hidden; color: var(--texto); font-size: .8rem; line-height: 1.4; }
.mock-side { background: var(--principal); color: #E2E8F0; padding: .9rem .6rem; display: flex; flex-direction: column; gap: .15rem; border-right: 1px solid #1E293B; }
.mock-side img { margin: 0 0 .7rem .35rem; }
.mock-item { padding: .4rem .6rem; border-radius: 6px; }
.mock-item.on { background: var(--marca); color: #fff; font-weight: 700; }
.mock-main { padding: .8rem 1rem 1rem; min-width: 0; }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--linea); color: var(--suave); }
.mock-top i { font-style: normal; font-weight: 600; font-size: .7rem; background: #99F6E4; color: #115E59; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.mock h3 { font-size: 1rem; margin: .8rem 0 .6rem; }
.mock-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.mock-cards div { background: #fff; border: 1px solid var(--linea); border-radius: 6px; padding: .5rem .6rem; }
.mock-cards small { display: block; color: var(--suave); font-size: .68rem; }
.mock-cards b { font-size: 1.25rem; }
.mock-table { margin-top: .8rem; background: #fff; border: 1px solid var(--linea); border-radius: 6px; padding: .6rem .7rem; }
.mock-table p { font-weight: 700; margin-bottom: .3rem; }
.mock-table div { display: grid; grid-template-columns: 1fr auto 3rem; gap: .5rem; align-items: center; padding: .3rem 0; border-top: 1px solid var(--linea); }
.mock-table em { font-style: normal; font-size: .7rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; }
.mock-table .in { background: #D1FAE5; color: #047857; }
.mock-table .out { background: #FEE2E2; color: #B91C1C; }
.mock-table time { text-align: right; color: var(--suave); }

/* Secciones */
.section { padding: 5rem 0; }
.section h2, .cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
.section-lead { color: var(--suave); margin-top: 1rem; max-width: 46rem; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; margin-top: 3rem; }
.features svg { width: 32px; height: 32px; fill: none; stroke: var(--marca); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 1.1rem; margin: .8rem 0 .4rem; }
.features p { color: var(--suave); }

/* Reforma laboral */
.reforma { background: #fff; border-block: 1px solid var(--linea); }
.reforma .badge { color: var(--enlace); border-color: var(--marca); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; margin-top: 2.5rem; }
.facts div { background: var(--fondo); padding: 1.4rem 1.2rem; }
.facts b { display: block; font-size: 1.15rem; color: var(--principal); margin-bottom: .5rem; }
.facts span { color: var(--suave); font-size: .92rem; display: block; }
.reforma-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; margin-top: 3rem; }
.reforma-cols h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.checks li { position: relative; padding-left: 1.8rem; margin-bottom: .8rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 14px; height: 8px; border-left: 3px solid var(--marca); border-bottom: 3px solid var(--marca); transform: rotate(-45deg); }
.note { background: var(--fondo); border: 1px solid var(--linea); border-left: 4px solid var(--marca); border-radius: var(--radio); padding: 1.4rem; }
.note p { color: var(--suave); font-size: .95rem; margin-bottom: 1rem; }
.note p:last-child { margin: 0; }
.link { font-weight: 600; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.5rem; }
.benefits li { border-top: 3px solid var(--marca); padding-top: 1rem; }
.benefits strong { display: block; margin-bottom: .4rem; }
.benefits span { color: var(--suave); font-size: .95rem; }

/* Contacto */
.cta { background: var(--principal); color: #F8FAFC; padding: 5rem 0; text-align: center; }
.cta p { color: #CBD5E1; margin: 1rem 0 2rem; }
.cta p a { color: #5EEAD4; }

/* Pie */
.site-footer { background: var(--principal); color: #CBD5E1; border-top: 1px solid #1E293B; padding: 2.5rem 0; font-size: .95rem; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-in ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-in a { color: #E2E8F0; }

/* Tablet */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 3rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .reforma-cols { grid-template-columns: 1fr; gap: 2rem; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}

/* Móvil */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--principal); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid #1E293B; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid #1E293B; }
  .nav .btn { margin-top: 1rem; }
  .hero { padding: 3rem 0 3.5rem; }
  .actions .btn { width: 100%; }
  .mock-win { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-cards { grid-template-columns: repeat(2, 1fr); }
  .section, .cta { padding: 3.5rem 0; }
  .features, .facts, .benefits { grid-template-columns: 1fr; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
