/* Lecogram · sitio público (landing, herramientas gratuitas, acceso) */
:root {
  --p: #1d4ed8; --p2: #06b6d4; --ink: #0f172a; --muted: #64748b; --bg: #f8fafc; --border: #e2e8f0; --ok: #10b981; --warn: #f59e0b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--p); text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.pub-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.pub-nav .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.pub-nav .brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.pub-nav .brand img { height: 38px; width: 38px; }
.pub-nav .links { display: flex; align-items: center; gap: 1.1rem; }
.pub-nav .links a { font-weight: 600; color: #334155; }
.pub-nav .links a.btn-primary { color: #fff; }
.pub-nav .links a, .pub-nav .brand { white-space: nowrap; }
@media (max-width: 600px) {          /* teléfono: la barra en un solo renglón, sin salirse */
  .pub-nav .inner { gap: .5rem; }
  .pub-nav .links { gap: .6rem; }
  .pub-nav .brand { font-size: 1.1rem; gap: .45rem; }
  .pub-nav .brand img { height: 32px; width: 32px; }
  .pub-nav .links a { font-size: .88rem; }
  .pub-nav .links .btn-sm { padding: .4rem .65rem; }
  .pub-nav .hide-xs { display: none; }
}
@media (max-width: 380px) { .pub-nav .brand .nombre { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 12px; padding: .62rem 1.15rem; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; box-shadow: 0 10px 20px -10px rgba(29,78,216,.6); }
.btn-outline { border-color: #cbd5e1; color: var(--ink); background: #fff; }
.btn-light { background: #fff; color: var(--p); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-google { background: #fff; border-color: #cbd5e1; color: #1f2937; width: 100%; }
.btn-facebook { background: #1877f2; color: #fff; width: 100%; }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.hero { padding: 64px 0 48px; background: radial-gradient(1200px 500px at 80% -10%, rgba(6,182,212,.18), transparent), radial-gradient(900px 400px at 0% 10%, rgba(29,78,216,.14), transparent); }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 1rem; }
.hero h1 span { background: linear-gradient(135deg, var(--p), var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #334155; margin: 0 0 1.5rem; }
.hero .cta { display: flex; gap: .9rem .8rem; flex-wrap: wrap; align-items: center; }
.hero .cta .btn { margin: 0; }
.hero .figure { text-align: center; }
.hero .figure img { max-width: 100%; width: 360px; filter: drop-shadow(0 20px 30px rgba(15,23,42,.18)); }
.hero .figure .caption { margin-top: .6rem; color: var(--muted); font-weight: 600; }
.section { padding: 56px 0; }
.section h2 { font-size: 1.9rem; letter-spacing: -.02em; margin: 0 0 .4rem; }
.section .sub { color: var(--muted); margin: 0 0 2rem; font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(15,23,42,.35); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; margin-bottom: .8rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.card p { margin: 0 0 1rem; color: #475569; font-size: .95rem; flex: 1; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; position: relative; }
.plan.featured { border: 2px solid var(--p); box-shadow: 0 20px 40px -24px rgba(29,78,216,.5); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--p); color: #fff; font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .05em; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.plan li { padding: .3rem 0; color: #334155; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.feature { display: flex; gap: .75rem; align-items: flex-start; }
.feature i { color: var(--p); font-size: 1.3rem; margin-top: .2rem; }
.feature b { display: block; }
.feature span { color: #475569; font-size: .93rem; }
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 16px; }
.auth .box { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); }
.auth .side { background: linear-gradient(160deg, #0f172a, #1e3a8a 70%, #06b6d4); color: #fff; padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.auth .side img.hero-img { width: 200px; align-self: center; margin-bottom: 1rem; filter: drop-shadow(0 16px 24px rgba(0,0,0,.35)); }
.auth .side h2 { margin: 0 0 .5rem; font-size: 1.6rem; }
.auth .side p { color: #cbd5e1; margin: 0 0 .6rem; }
.auth .side ul { padding-left: 1.1rem; color: #e2e8f0; margin: .6rem 0 0; }
.auth .form { padding: 2.2rem; }
.auth .form h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
.auth .form .hint { color: var(--muted); margin: 0 0 1.2rem; }
.auth label { display: block; font-weight: 700; font-size: .88rem; margin: .8rem 0 .3rem; }
.auth input[type=text], .auth input[type=email], .auth input[type=password], .auth input[type=number], .form-control { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: .7rem .9rem; font-size: 1rem; font-family: inherit; }
.auth input:focus, .form-control:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgba(29,78,216,.15); }
.auth .help { font-size: .8rem; color: var(--muted); }
.auth .help ul { padding-left: 1rem; margin: .3rem 0; }
.auth .sep { display: flex; align-items: center; gap: .8rem; color: var(--muted); margin: 1.2rem 0; font-size: .85rem; }
.auth .sep::before, .auth .sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth .links { margin-top: 1.2rem; font-size: .92rem; display: flex; flex-direction: column; gap: .35rem; }
.auth .social { display: grid; gap: .6rem; }
.check { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; margin-top: .9rem; }
.check input { margin-top: .25rem; }
.code-input { font-size: 2rem !important; letter-spacing: .5em; text-align: center; font-weight: 800; }
.pub-footer { border-top: 1px solid var(--border); padding: 2.4rem 0; color: var(--muted); font-size: .92rem; background: #fff; }
.pub-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pub-footer .social a img { width: 30px; height: 30px; margin-left: .4rem; opacity: .85; }
.pub-footer .social a:hover img { opacity: 1; }
.alert { border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; font-weight: 600; }
.alert-info { background: #dbeafe; color: #1e3a8a; }
.alert-warn { background: #fef3c7; color: #92400e; }
.alert-error { background: #fee2e2; color: #991b1b; }
.badge { display: inline-block; padding: .22em .6em; font-size: .75rem; border-radius: 999px; font-weight: 800; background: #e2e8f0; color: #334155; }
.badge-free { background: #d1fae5; color: #065f46; }
.badge-premium { background: #fef3c7; color: #92400e; }

/* Herramientas (calculadoras) */
.tool-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; padding: 2rem 0; }
.tool-side { position: sticky; top: 80px; align-self: start; }
.tool-side > a { display: block; padding: .55rem .75rem; border-radius: 10px; color: #334155; font-weight: 600; font-size: .92rem; }
.tool-side > a.active, .tool-side > a:hover { background: var(--suave, #e0e7ff); color: var(--p); }
.tool { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem; margin-bottom: 1.2rem; }
.tool h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.tool .desc { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.tool .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.tool label { font-size: .82rem; font-weight: 700; display: block; margin-bottom: .25rem; color: #334155; }
.tool input, .tool select, .tool textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: .55rem .7rem; font-size: .95rem; font-family: inherit; }
.tool textarea { min-height: 90px; font-family: ui-monospace, Consolas, monospace; }
.tool .actions { margin-top: .9rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.result { margin-top: 1rem; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: .9rem 1rem; }
.result .r { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid #eef2f7; }
.result .r:last-child { border-bottom: 0; }
.result .r b { color: var(--ink); }
.result .r .v { font-weight: 800; color: var(--p); font-variant-numeric: tabular-nums; }
.result .interp { margin-top: .6rem; font-size: .9rem; color: #334155; }
.premium-note { background: linear-gradient(135deg, #fff7ed, #fef3c7); border: 1px solid #fcd34d; border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; margin-top: 1rem; }
canvas.tool-chart { width: 100%; max-height: 320px; background: #fff; border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .45rem .55rem; border-bottom: 1px solid var(--border); text-align: left; }
.table th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: .4rem .9rem; font-weight: 700; cursor: pointer; font-size: .85rem; }
.tabs button.active { background: var(--p); color: #fff; border-color: var(--p); }
.viewer { position: relative; height: 70vh; min-height: 480px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #0f172a; }
.viewer canvas { display: block; }
.viewer .panel { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.96); color: #0f172a; border-radius: 12px; padding: .8rem; width: 260px; max-height: calc(100% - 24px); overflow: auto; font-size: .85rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.viewer .panel h4 { margin: 0 0 .4rem; font-size: .95rem; color: #0f172a; }
.viewer .panel label, .viewer .panel p, .viewer .panel div { color: #0f172a; }
.viewer .panel select { color: #0f172a; background: #fff; }
.viewer .legend span { display: inline-flex; align-items: center; gap: .3rem; margin-right: .6rem; font-size: .8rem; color: #0f172a; }
.viewer .legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.viewer .tooltip { position: absolute; pointer-events: none; background: #ffffff; color: #0f172a; padding: .55rem .75rem; border-radius: 10px; font-size: .82rem; display: none; max-width: 300px; box-shadow: 0 12px 30px rgba(0,0,0,.4); border-left: 5px solid #1d4ed8; line-height: 1.4; }
.viewer .tooltip b { color: #0f172a; }
@media (max-width: 900px) { .hero .grid, .auth .box, .tool-layout { grid-template-columns: 1fr; } .auth .side { display: none; } .tool-side { position: static; } .pub-nav .links a.hide-sm { display: none; } }

/* Landing: dolores, todo incluido, pasos, FAQ y banda final */
.dolores-sec { background: #0f172a; color: #fff; } .dolores-sec h2 { color: #fff; } .dolores-sec .sub { color: #cbd5e1; }
.dolores { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.dolores > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 1.1rem 1.2rem; }
.dolores i { font-size: 1.5rem; color: #fbbf24; margin-bottom: .5rem; display: block; }
.dolores h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: #fff; } .dolores p { margin: 0; color: #cbd5e1; font-size: .93rem; } .dolores p b { color: #93c5fd; font-weight: 600; }
.mod .mas { display: inline-block; margin-top: .4rem; font-weight: 700; color: #1d4ed8; text-decoration: none; font-size: .9rem; } .mod .mas:hover { text-decoration: underline; }
.incluido-sec { background: #f8fafc; }
.incluido { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.incluido > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: .9rem 1rem; display: grid; grid-template-columns: 34px 1fr; gap: .2rem .6rem; align-items: center; }
.incluido i { grid-row: 1 / 3; font-size: 1.3rem; color: #1d4ed8; } .incluido b { color: #0f172a; font-size: .95rem; } .incluido span { color: #64748b; font-size: .82rem; }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.pasos > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.1rem 1.2rem; }
.pasos span { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #1d4ed8, #06b6d4); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: .5rem; }
.pasos h3 { font-size: 1.05rem; margin: 0 0 .3rem; } .pasos p { margin: 0; color: #475569; font-size: .93rem; }
.faq-sec { background: #fff; } .faq { max-width: 860px; margin: 1rem auto 0; }
.faq details { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: .75rem 1rem; margin-bottom: .6rem; }
.faq summary { font-weight: 700; cursor: pointer; color: #0f172a; } .faq p { margin: .5rem 0 0; color: #475569; }
.banda-cta { background: linear-gradient(135deg, #1d4ed8, #0f172a); color: #fff; text-align: center; padding: 56px 0; }
.banda-cta h2 { color: #fff; font-size: 1.8rem; margin: 0 0 .5rem; letter-spacing: -.02em; } .banda-cta p { color: #cbd5e1; margin: 0 0 1.2rem; }

/* Calculadoras divididas por aplicación: filtro por tipo, grupos y lista de calculadoras de cada página */
.calc-tipos { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.6rem; }
.calc-tipos a { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .85rem; border-radius: 999px; border: 1.5px solid var(--c, #94a3b8); background: #fff; color: #0f172a; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.calc-tipos a i { color: var(--c, #475569); }
.calc-tipos a.activa, .calc-tipos a:hover { background: var(--c, #0f172a); border-color: var(--c, #0f172a); color: #fff; }
.calc-tipos a.activa i, .calc-tipos a:hover i { color: #fff; }
.calc-grupo { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin: 2rem 0 .8rem; }
.calc-grupo .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: .95rem; flex: none; }
.calc-grupo a { margin-left: auto; font-size: .85rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) { .calc-grupo a { display: none; } }      /* en teléfono el filtro de arriba hace lo mismo */
.card.calc-card h3 a { color: var(--ink); }
.calc-lista { list-style: none; margin: 0 0 1rem; padding: 0; flex: 1; }
.calc-lista li { border-bottom: 1px solid #f1f5f9; }
.calc-lista li:last-child { border-bottom: 0; }
.calc-lista a { display: block; padding: .3rem 0; color: #334155; font-weight: 600; font-size: .92rem; }
.calc-lista a:hover { color: var(--c, var(--p)); }
.calc-lista a i { color: #cbd5e1; font-size: .7rem; margin-right: .35rem; }
.tool-side-titulo { font-weight: 800; margin: .2rem .75rem .6rem; color: #64748b; font-size: .75rem; letter-spacing: .1em; }
.tool-side > a.tool-side-todas { margin-top: .5rem; color: #64748b; }
.premium-note a:not(.btn) { font-weight: 700; }
/* Teléfono: la calculadora primero y la lista de las demás debajo; en los resultados, el dato debajo de su nombre */
@media (max-width: 900px) { .tool-layout > main { order: 1; min-width: 0; } .tool-layout > .tool-side { order: 2; } }
@media (max-width: 480px) { .result .r { flex-direction: column; gap: .1rem; } }
/* Resultado de una calculadora: compartir, copiar, imprimir y guardar */
.res-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #e2e8f0; }
.res-acciones .btn-sm { padding: .32rem .7rem; font-size: .8rem; }
.res-aviso { font-size: .85rem; color: #334155; flex: 1 1 100%; }
.res-aviso:empty { display: none; }
/* Cómo se calcula: enlaces a los artículos de cada calculadora */
.como-calcular { margin-top: 1.4rem; }
.como-calcular h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.como-calcular ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .35rem .9rem; }
.como-calcular a { font-weight: 600; font-size: .92rem; }
.articulo { max-width: 820px; }
.articulo h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; margin: .4rem 0 .8rem; }
.articulo h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.articulo p, .articulo li { font-size: 1.02rem; color: #1e293b; }
.articulo .formula { background: #f1f5f9; border-left: 4px solid var(--p); border-radius: 10px; padding: .8rem 1rem; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; overflow-x: auto; }
.articulo table { border-collapse: collapse; width: 100%; margin: .4rem 0 1rem; }
.articulo td { border-bottom: 1px solid #e2e8f0; padding: .35rem .5rem; font-size: .95rem; vertical-align: top; }
.articulo td:last-child { text-align: right; font-weight: 700; white-space: pre-line; }
.calculo { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .9rem; }
.calculo h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.calculo .meta { color: var(--muted); font-size: .82rem; margin-bottom: .5rem; }
.calculo .acc { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .7rem; }
.calculo .acc form { display: inline-flex; gap: .35rem; align-items: center; margin: 0; }
.calculo select { border: 1px solid #cbd5e1; border-radius: 10px; padding: .35rem .5rem; font-size: .85rem; max-width: 220px; }
.video-app { position: relative; display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0f172a center / cover no-repeat; border: 0; padding: 0; cursor: pointer; }
.video-app .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 3.4rem; background: rgba(15,23,42,.28); }
.video-app iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media print {       /* se imprime sólo la calculadora abierta, con sus datos y su resultado */
  .pub-nav, .pub-footer, .tool-side, .tabs, .tool .actions, .res-acciones, .premium-note, .como-calcular, .lg-instalar { display: none !important; }
  .tool-layout { display: block; padding: 0; }
  .tool { border: 0; padding: 0; }
  body { background: #fff; }
}
[hidden] { display: none !important; }

/* Formatos para imprimir (/formatos/): la hoja se ve en pantalla como saldrá en papel y es lo único que se imprime */
.formato-intro { max-width: 880px; margin: 0 auto; }
.formato-intro h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; margin: .4rem 0 .5rem; }
.formato-barra { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.formato-barra input { flex: 1 1 240px; min-width: 0; padding: .62rem .8rem; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; }
.formato-hoja { max-width: 880px; margin: 0 auto; background: #fff; color: #000; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 18px 40px -24px rgba(15,23,42,.45); padding: 26px 30px 16px; font-size: 12.5px; line-height: 1.3; overflow-x: auto; }
.formato-hoja.horizontal { max-width: 1100px; }
.fh-cabecera { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border-bottom: 2.5px solid #000; padding-bottom: 6px; margin-bottom: 12px; }
.fh-empresa { font-size: 13px; font-weight: 700; min-height: 16px; }
.fh-titulo { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.fh-folio { font-size: 11px; white-space: nowrap; }
.fh-campos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 22px; margin: 0 0 12px; }
.formato-hoja.horizontal .fh-campos { grid-template-columns: repeat(4, 1fr); }
.fh-campo { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.fh-campo span { font-weight: 700; white-space: nowrap; flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.fh-campo i, .fh-texto i { flex: 1; border-bottom: 1px solid #000; height: 17px; display: block; }
.fh-subtitulo { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; margin: 10px 0 4px; }
.fh-tabla { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.fh-tabla th, .fh-tabla td { border: 1px solid #000; padding: 4px 6px; height: 23px; text-align: left; vertical-align: middle; }
.fh-tabla th { background: #e5e7eb; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.fh-tabla .fh-op { width: 54px; text-align: center; padding: 3px 2px; }
.fh-tabla .fh-obs { width: 30%; }
.fh-caja { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #000; vertical-align: middle; }
.fh-texto { margin: 0 0 12px; } .fh-texto i { height: 21px; }
.fh-nota { margin: 0 0 12px; text-align: justify; }
.fh-firmas { display: flex; gap: 26px; margin: 34px 0 6px; }
.fh-firmas div { flex: 1; text-align: center; min-width: 0; }
.fh-firmas i { display: block; border-bottom: 1px solid #000; height: 1px; margin-bottom: 4px; }
.fh-firmas span { font-weight: 700; font-size: 11px; }
.fh-pie { margin-top: 10px; text-align: right; font-size: 9px; color: #6b7280; }
@media (max-width: 640px) { .formato-hoja { padding: 16px 14px 12px; font-size: 11.5px; } .fh-campos, .formato-hoja.horizontal .fh-campos { grid-template-columns: 1fr; } .fh-firmas { gap: 12px; } .fh-tabla { min-width: 520px; } }
@media print {
  .formato-pagina { padding: 0 !important; } .formato-pagina .container { max-width: none; padding: 0; }
  .formato-intro { display: none !important; }
  .formato-hoja, .formato-hoja.horizontal { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; font-size: 11.5px; }
  .fh-tabla { min-width: 0; } .fh-tabla tr, .fh-firmas, .fh-texto, .fh-campos { break-inside: avoid; }
  .fh-tabla th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
