/* ============================================================
   Portada de xestio.com · rediseño 2027 (aprobado el 11/11/2026)

   El producto es el héroe: cada sección enseña una pantalla de la
   intranet real con datos de ejemplo. Marca intacta (Manual v1.1 ·
   kit v1.6): petróleo, turquesa, naranja; Poppins; Tabler Outline.

   Los tokens van en `.portada` y no en `:root`: así no alteran la
   barra común ni nada fuera de la página. Sus dos bloques oscuros
   dicen lo mismo, como en sistema.css.

   La vigila tests/test_sistema_publico.py como hoja del sistema:
   sin blancos a pelo, sin tokens de la intranet y sin colores de
   marca como tinta fuera de la banda.
   ============================================================ */
/* Producto primero: hero a dos columnas con el panel real a la derecha; después
   bandas alternas claro / petróleo, cada una con una vista de la app como figura. */
.portada {
  --petroleo: #0F3D3E;
  --turquesa: #14B8A6;
  --naranja:  #FF3B00;
  --crema:    #F2EFE7;
  --mint:     #E6FAF7;

  --bg:        #F7FAF9;
  --surface:   #FFFFFF;
  --soft:      #EEF7F5;
  --ink:       #0F3D3E;
  --ink-2:     #4C6B6C;
  --ink-3:     #7B9394;
  --rule:      #DCE7E5;
  --rule-2:    #E9F0EE;
  --acc:       #0E8F82;     /* turquesa legible sobre claro */
  --acc-soft:  rgba(20,184,166,.14);
  --warn:      #C22D00;     /* naranja legible sobre claro */
  --warn-soft: rgba(255,59,0,.10);
  --mid:       #B7791F;
  --mid-soft:  rgba(233,180,76,.18);
  --band:      #0F3D3E;
  --band-2:    #16494B;
  --band-rule: #22585A;
  --on-band:   #FFFFFF;
  --on-band-2: #A9C9C7;
  --side:      #0F3D3E;
  --side-ink:  #A9C9C7;
  --chart-a:   #14B8A6;
  --chart-b:   #BFE9E3;
  /* colores semánticos de la intranet (tarjetas, agenda, estados) */
  --lime:      #5E8A12;
  --coral:     #D64545;
  --orange:    #D9601F;
  --violet:    #7C4DDB;
  --blue:      #2A6FA8;
  --coral-bg:  rgba(214,69,69,.10);

  --papel: #FFFFFF;                 /* blanco fijo: tarjetas sobre petroleo en los dos temas */
  --sobre-oscuro-acento: #14B8A6;   /* turquesa como tinta, solo sobre superficies oscuras fijas */
  --sobre-oscuro-alerta: #FF3B00;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --sh: 0 1px 2px rgba(15,61,62,.05), 0 14px 34px -14px rgba(15,61,62,.20);
  --sh-hi: 0 2px 6px rgba(15,61,62,.06), 0 40px 80px -30px rgba(15,61,62,.38);
  --paso: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(.16,1,.3,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .portada {
    --bg: #082223; --surface: #0E3233; --soft: #0B2B2C; --ink: #EBF6F4; --ink-2: #A7C6C4; --ink-3: #7FA5A3;
    --rule: #1E5153; --rule-2: #174142; --acc: #2ED3BF; --acc-soft: rgba(46,211,191,.16);
    --warn: #FF7A4D; --warn-soft: rgba(255,122,77,.14); --mid: #E9B44C; --mid-soft: rgba(233,180,76,.16);
    --band: #051A1B; --band-2: #0C2A2B; --band-rule: #174142; --side: #061E1F; --chart-b: #1F5C5A;
    --lime: #A8CF4F; --coral: #FF7A7A; --orange: #FF9A5C; --violet: #A98BF0; --blue: #6FB0E6; --coral-bg: rgba(255,122,122,.12);
    --sh: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
    --sh-hi: 0 2px 6px rgba(0,0,0,.3), 0 40px 80px -30px rgba(0,0,0,.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .portada {
  --bg: #082223; --surface: #0E3233; --soft: #0B2B2C; --ink: #EBF6F4; --ink-2: #A7C6C4; --ink-3: #7FA5A3;
  --rule: #1E5153; --rule-2: #174142; --acc: #2ED3BF; --acc-soft: rgba(46,211,191,.16);
  --warn: #FF7A4D; --warn-soft: rgba(255,122,77,.14); --mid: #E9B44C; --mid-soft: rgba(233,180,76,.16);
  --band: #051A1B; --band-2: #0C2A2B; --band-rule: #174142; --side: #061E1F; --chart-b: #1F5C5A;
    --lime: #A8CF4F; --coral: #FF7A7A; --orange: #FF9A5C; --violet: #A98BF0; --blue: #6FB0E6; --coral-bg: rgba(255,122,122,.12);
  --sh: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
  --sh-hi: 0 2px 6px rgba(0,0,0,.3), 0 40px 80px -30px rgba(0,0,0,.75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.portada {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.env {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.portada h1, .portada h2, .portada h3, .portada h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.portada h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.1rem); line-height: 1.04; }
.portada h2 { font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem); line-height: 1.1; }
.portada h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.015em; }
.portada p { margin: 0; }
.conecta { color: var(--acc); }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); color: var(--ink-2); max-width: 52ch; }
.num { font-variant-numeric: tabular-nums; }

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 14px; height: 14px; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 .98rem/1 var(--font); padding: 16px 26px; border-radius: 12px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic-go { transform: translateX(4px); }
.btn-petroleo { background: var(--petroleo); color: #fff; box-shadow: 0 14px 28px -14px rgba(15,61,62,.7); }
.btn-petroleo:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(15,61,62,.75); background: #134a4b; }
.btn-petroleo:active { transform: translateY(0); }
:root[data-theme="dark"] .btn-petroleo { background: var(--turquesa); color: #06312C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-petroleo { background: var(--turquesa); color: #06312C; } }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--sobre-oscuro-acento); color: var(--acc); }
.btn-ghost .ic { color: var(--acc); }
.btn-turq { background: var(--turquesa); color: #06312C; box-shadow: 0 14px 30px -12px rgba(20,184,166,.8); }
.btn-turq:hover { background: #3FCBBA; transform: translateY(-2px); }
.btn-band { color: #fff; border-color: var(--band-rule); background: transparent; }
.btn-band:hover { border-color: var(--sobre-oscuro-acento); color: var(--sobre-oscuro-acento); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2.5px solid var(--turquesa); outline-offset: 3px; border-radius: 8px; }

/* ── hero ── */
.hero { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; border-radius: 50%; background: radial-gradient(closest-side, var(--acc-soft), transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(36px, 4vw, 60px); align-items: center; }
@media (max-width: 1020px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
.hero-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--acc); background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--turquesa) 30%, transparent); padding: 7px 14px; border-radius: 999px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--turquesa); box-shadow: 0 0 0 4px var(--acc-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.checks li { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: .98rem; }
.checks .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--petroleo); color: #fff; display: grid; place-items: center; flex: none; }
:root[data-theme="dark"] .checks .tick { background: var(--turquesa); color: #06312C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checks .tick { background: var(--turquesa); color: #06312C; } }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .84rem; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { color: var(--acc); }

/* ── marco de aplicación (réplica de app.xestio.com) ── */
.app { position: relative; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 20px; box-shadow: var(--sh-hi); overflow: hidden; font-size: 13px; line-height: 1.4; min-width: 0; }
.app svg.ic { width: 16px; height: 16px; }
.app-grid { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.app-side { position: relative; overflow: hidden; background: linear-gradient(180deg, #0F3D3E 0%, #0A2D2E 100%); padding: 16px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-side .wm { position: absolute; right: -46px; top: -6px; width: 130px; height: 130px; opacity: .07; pointer-events: none; }
.app-side .brand { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 2px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.app .app-side .brand svg { width: 30px; height: 30px; }
.app-side .brand b { font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.app-side .brand small { font-size: 10px; color: #CFE3E1; }
.app-side .grp { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 4px; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #CFE3E1; }
.app .app-side .grp svg.ic { width: 12px; height: 12px; }
.app-side .usr { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid rgba(20,184,166,.35); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; font-size: 11px; line-height: 1.25; }
.app-side .usr small { display: block; color: #A9C9C7; font-size: 9.5px; }
.app-side .m { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); font-weight: 500; font-size: 12.5px; }
.app-side .m.on { background: rgba(20,184,166,.22); color: #fff; }
.app-side .m.on .ic { color: var(--sobre-oscuro-acento); }

.app-main { min-width: 0; display: flex; flex-direction: column; }

.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--turquesa), var(--petroleo)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11px; flex: none; }

.app-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.tag-ej { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); white-space: nowrap; }

.p-card { border: 1px solid var(--rule-2); border-radius: 12px; padding: 12px 13px; min-width: 0; }

.chip { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.chip.ok { background: var(--acc-soft); color: var(--acc); }
.chip.mid { background: var(--mid-soft); color: var(--mid); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.n { background: var(--soft); color: var(--ink-2); }

@keyframes grow { from { transform: scaleY(0); } }

/* ── réplica de la intranet: barra superior, cabecera, tarjetas ── */
.x-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 2px solid color-mix(in srgb, var(--coral) 55%, transparent); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.x-top .crumb { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink); margin-right: auto; }
.x-top span { display: inline-flex; align-items: center; gap: 5px; }
.app .x-top svg.ic { width: 13px; height: 13px; }
.x-top .nb { border: 1px solid var(--rule); border-radius: 7px; padding: 4px 8px; }
@media (max-width: 760px) { .x-top .opt { display: none; } }
.x-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; color: #fff; background: linear-gradient(115deg, #0F3D3E 0%, #124849 60%, #17595A 100%); }
.x-head .ib { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--turquesa); border: 1px solid rgba(20,184,166,.5); background: rgba(20,184,166,.10); }
.app .x-head .ib svg.ic { width: 20px; height: 20px; }
.x-head h4 { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.x-head p { font-size: 11px; color: #CFE3E1; }
.x-head .yr { font-size: 9.5px; font-weight: 600; color: var(--sobre-oscuro-acento); border: 1px solid rgba(20,184,166,.5); border-radius: 999px; padding: 2px 8px; letter-spacing: .06em; }
.x-head .acts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.x-head .clock { margin-left: auto; text-align: right; line-height: 1.1; }
.x-head .clock b { display: block; font-size: 30px; font-weight: 700; color: var(--sobre-oscuro-alerta); }
.x-head .clock small { display: block; font-size: 9px; letter-spacing: .14em; color: #CFE3E1; text-transform: uppercase; }
.x-head .clock span { font-size: 13px; font-weight: 600; }
.xb { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; font-size: 10.5px; font-weight: 600; white-space: nowrap; color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.xb.w { background: var(--papel); color: #0F3D3E; border-color: #fff; }
.xb.t { background: var(--turquesa); border-color: var(--turquesa); color: #fff; }
.xb.p { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
.app .xb svg.ic { width: 12px; height: 12px; }
.x-sel { background: var(--papel); color: #0F3D3E; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.app .x-sel svg.ic { width: 12px; height: 12px; }
.x-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.xk { --c: var(--acc); background: var(--surface); border: 1px solid var(--rule-2); border-left: 3px solid var(--c); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.xk .k { display: block; font-size: 8.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.xk .v { display: block; font-size: 18px; font-weight: 700; color: var(--c); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-t { --c: var(--acc); } .c-r { --c: var(--coral); } .c-l { --c: var(--lime); } .c-o { --c: var(--orange); } .c-p { --c: var(--ink); }
.x-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.xc { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border: 1px solid transparent; }
.xc.d { background: var(--petroleo); color: #fff; }
.xc.t { background: var(--acc-soft); color: var(--acc); border-color: color-mix(in srgb, var(--turquesa) 35%, transparent); }
.xc.r { background: var(--coral-bg); color: var(--coral); border-color: color-mix(in srgb, var(--coral) 30%, transparent); }
.app .xc svg.ic { width: 12px; height: 12px; }
.xs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .xs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xs { --c: var(--acc); background: var(--surface); border: 1px solid var(--rule-2); border-left: 3px solid var(--c); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xs .sq { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); margin-bottom: 4px; }
.app .xs .sq svg.ic { width: 14px; height: 14px; }
.xs .k { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.xs .v { font-size: 24px; font-weight: 700; color: var(--c); line-height: 1.05; letter-spacing: -.03em; }
.xs .v small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.xs .s { font-size: 9.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* agenda del día */
.x-day { border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; }
.x-day-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: linear-gradient(90deg, #0F3D3E, #17595A); color: #fff; font-size: 11.5px; font-weight: 600; }
.x-day-h small { font-size: 10px; font-weight: 500; color: #CFE3E1; }
.x-day-g { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, 34px); gap: 4px 6px; padding: 8px 10px 10px; }
.x-day-g .h { font-size: 9px; color: var(--ink-3); grid-column: 1; }
.xe { --c: var(--acc); border-radius: 8px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; font-size: 9.5px; color: var(--ink-2); }
.xe b { color: var(--c); font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xe .acc { margin-top: auto; align-self: flex-start; font-size: 9px; font-weight: 600; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 5px; padding: 1px 6px; }
.xe.o { --c: var(--orange); } .xe.v { --c: var(--violet); } .xe.b { --c: var(--blue); }
/* calendario mensual */
.x-tabs { display: inline-flex; gap: 2px; background: var(--soft); padding: 3px; border-radius: 9px; }
.x-tabs span { font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: 7px; color: var(--ink-2); }
.x-tabs span.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15,61,62,.12); }
.x-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10.5px; color: var(--ink-2); }
.x-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.x-month-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--rule-2); }
.x-month { display: grid; grid-template-columns: repeat(5, minmax(118px, 1fr)) repeat(2, minmax(64px, .5fr)); min-width: 720px; }
.x-month .dh { background: var(--petroleo); color: #fff; font-size: 10.5px; font-weight: 600; text-align: center; padding: 7px; }
.x-month .dh.we { background: var(--soft); color: var(--ink-3); }
.x-month .dc { border-right: 1px solid var(--rule-2); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 168px; }
.x-month .dc.we { background: var(--soft); }
.x-month .dc.today { background: var(--acc-soft); }
.x-month .n { align-self: flex-end; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.x-month .today .n { color: #fff; background: var(--turquesa); border-radius: 999px; padding: 0 7px; }
.x-month .nl { font-size: 8.5px; letter-spacing: .08em; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; align-self: flex-start; }
.ln { --c: var(--acc); font-size: 9.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ln::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }
.ln.bx { color: var(--surface); background: var(--c); border-radius: 4px; padding: 2px 6px; font-weight: 600; }
.ln.bx::before { display: none; }
.ln.o { --c: var(--orange); } .ln.v { --c: var(--violet); } .ln.r { --c: var(--coral); } .ln.b { --c: var(--blue); } .ln.l { --c: var(--lime); } .ln.p { --c: var(--ink); }
/* imparticiones */
.x-alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; font-size: 11px; color: var(--ink-2); background: var(--mid-soft); border: 1px solid color-mix(in srgb, #E9B44C 60%, transparent); }
.x-alert b { color: var(--warn); }
.x-alert svg.ic { color: var(--mid); }
.x-alert .go { margin-left: auto; color: var(--ink); font-weight: 600; text-decoration: underline; }
.x-search { display: flex; gap: 6px; }
.x-search .in { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 9px; padding: 7px 10px; font-size: 11px; color: var(--ink-3); background: var(--surface); min-width: 0; white-space: nowrap; overflow: hidden; }
table.t.dk th { background: var(--petroleo); color: #fff; border-bottom: 0; }
.st { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st.px { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.st.ec { background: var(--acc-soft); color: var(--acc); }
.st.fn { background: var(--soft); color: var(--ink-3); }
.ref { font: 500 10px ui-monospace, Consolas, monospace; background: var(--soft); border-radius: 4px; padding: 2px 6px; color: var(--ink-2); }
.sub { display: block; font-size: 10px; color: var(--ink-3); font-style: italic; }
.acts-row { display: flex; gap: 4px; }
.acts-row i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: var(--c, var(--petroleo)); }
.app .acts-row svg.ic { width: 12px; height: 12px; }
/* informe de rentabilidad */
.x-sub { display: flex; gap: 4px; flex-wrap: wrap; font-size: 10.5px; font-weight: 500; color: var(--ink-2); }
.x-sub span { padding: 5px 9px; border-radius: 7px; display: inline-flex; gap: 5px; align-items: center; }
.x-sub span.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }

.panel-x { border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; min-width: 0; }
.panel-x > h5 { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--rule-2); }
.panel-x > h5 .cnt { margin-left: auto; font-size: 10px; background: var(--ink-2); color: var(--surface); border-radius: 999px; padding: 1px 8px; }

table.t td.neg { color: var(--coral); }
table.t td.pos { color: var(--lime); font-weight: 600; }
.eye { width: 26px; height: 22px; border: 1.5px solid var(--ink); border-radius: 6px; display: grid; place-items: center; color: var(--ink); }
.app .eye svg.ic { width: 13px; height: 13px; }

/* chips flotantes del hero */
.hero-fig { position: relative; min-width: 0; }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 14px; padding: 11px 15px; box-shadow: var(--sh); font-size: 12.5px; line-height: 1.3; animation: floaty 7s ease-in-out infinite; }
.float b { display: block; font-weight: 600; font-size: 13px; }
.float span { color: var(--ink-3); font-size: 11.5px; }
.float .badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); flex: none; }
.float.f1 { left: -28px; bottom: 40px; }
.float.f2 { right: -18px; top: -20px; animation-delay: -3.5s; }
.float.f2 .badge { background: var(--warn-soft); color: var(--warn); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 1240px) { .float.f1 { left: 10px; bottom: -22px; } .float.f2 { right: 10px; } }
@media (max-width: 640px) { .float { display: none; } .app-grid { grid-template-columns: minmax(0, 1fr); } .app-side { display: none; } }
.enter > * { animation: rise .8s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .08s; } .enter > *:nth-child(3) { animation-delay: .16s; }
.enter > *:nth-child(4) { animation-delay: .24s; } .enter > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

/* ── barra de confianza ── */
.trust { padding-block: 26px 10px; }
.trust-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--rule-2); padding-top: 26px; }
.trust-in > p { font-size: .82rem; color: var(--ink-3); font-weight: 500; flex: none; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; flex: 1; }
.seal { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 1px solid var(--rule-2); background: var(--surface); border-radius: 12px; transition: border-color .2s, transform .25s var(--ease); }
.seal:hover { border-color: var(--sobre-oscuro-acento); transform: translateY(-2px); }
.seal .ic { color: var(--acc); width: 22px; height: 22px; }
.seal b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.seal small { display: block; font-size: .72rem; color: var(--ink-3); line-height: 1.2; }

/* ── secciones ── */
.sec { padding-block: var(--paso); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }
.sec-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.05rem; }
.link-go { display: inline-flex; align-items: center; gap: 8px; color: var(--acc); font-weight: 500; text-decoration: none; }
.link-go:hover .ic { transform: translateX(4px); }
.link-go .ic { transition: transform .25s var(--ease); }

/* ── flujo operativo ── */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 37px; height: 2px; background: linear-gradient(90deg, var(--turquesa), var(--turquesa) 70%, var(--naranja)); opacity: .35; }
.flow::after { content: ""; position: absolute; top: 33px; left: 6%; width: 10px; height: 10px; border-radius: 50%; background: var(--turquesa); box-shadow: 0 0 0 6px var(--acc-soft); animation: travel 6s linear infinite; }
@keyframes travel { 0% { left: 6%; } 85% { left: calc(94% - 10px); background: var(--naranja); } 100% { left: calc(94% - 10px); opacity: 0; } }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; counter-increment: paso; }
.step .node { width: 76px; height: 76px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--acc); box-shadow: var(--sh); position: relative; z-index: 1; transition: transform .3s var(--ease), border-color .2s, background-color .2s; }
.step .node .ic { width: 28px; height: 28px; }
.step .node::after { content: counter(paso); position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--petroleo); color: #fff; font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.step:last-child .node { color: var(--warn); }
.step:last-child .node::after { background: var(--naranja); }
.step:hover .node { transform: translateY(-4px); border-color: var(--sobre-oscuro-acento); }
.step h3 { font-size: 1rem; }
.step .datum { width: 100%; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 12px; padding: 10px 12px; font-size: .78rem; line-height: 1.35; text-align: left; transition: border-color .2s, box-shadow .3s; }
.step:hover .datum { border-color: var(--sobre-oscuro-acento); box-shadow: var(--sh); }
.step .datum b { display: block; font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .datum span { color: var(--ink-3); }
.step .datum .chip { margin-top: 6px; }
.flow-note { margin-top: 30px; display: flex; justify-content: center; }
.flow-note p { font-size: .92rem; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--rule); border-radius: 999px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 10px; }
.flow-note .ic { color: var(--acc); }
@media (max-width: 1020px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .flow::before, .flow::after { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .step { display: grid; grid-template-columns: 60px minmax(0, 1fr); text-align: left; align-items: center; gap: 4px 14px; }
  .step .node { width: 60px; height: 60px; grid-row: span 2; border-radius: 18px; }
  .step .datum { grid-column: 2; }
}

/* ── funcionalidades ── */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feats { grid-template-columns: minmax(0, 1fr); } }
.feat { background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: 24px 22px 0; display: flex; flex-direction: column; gap: 16px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; min-width: 0; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--sh-hi); border-color: color-mix(in srgb, var(--turquesa) 40%, var(--rule-2)); }
.feat-h { display: flex; gap: 14px; align-items: flex-start; }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; background: var(--petroleo); }
.feat-ic.t { background: var(--turquesa); color: #06312C; }
.feat-ic.o { background: var(--naranja); }
.feat-ic.g { background: linear-gradient(135deg, var(--petroleo), var(--turquesa)); }
.feat h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feat-h p { color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.mini { margin-top: auto; background: var(--bg); border: 1px solid var(--rule-2); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 12px 13px; font-size: 11.5px; line-height: 1.35; transform: translateY(6px); transition: transform .4s var(--ease); min-width: 0; }
.feat:hover .mini { transform: translateY(0); }
.mini-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; gap: 8px; }
.mini-h b { font-size: 12px; font-weight: 600; }
.mini .btn-mini { font-size: 10px; font-weight: 600; background: var(--petroleo); color: #fff; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tabs-mini { display: flex; gap: 4px; margin-bottom: 8px; }
.tabs-mini span { font-size: 10px; padding: 3px 8px; border-radius: 6px; color: var(--ink-3); }
.tabs-mini span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,61,62,.1); }
.li { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--rule-2); min-width: 0; }
.li:first-of-type { border-top: 0; }
.li .sq { width: 30px; height: 30px; border-radius: 8px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; }
.li .sq .ic { width: 15px; height: 15px; }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-weight: 500; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t span { color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.inv { background: var(--surface); border: 1px solid var(--rule-2); border-radius: 10px; padding: 11px; display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 6px 10px; }
.inv .h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.inv .h b { font-size: 11px; display: inline-flex; gap: 5px; align-items: center; color: var(--acc); }
.inv dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 10.5px; }
.inv dt { color: var(--ink-3); } .inv dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.qr { width: 62px; height: 62px; border-radius: 6px; background: var(--surface); padding: 4px; border: 1px solid var(--rule-2); }
.qr svg { width: 100%; height: 100%; display: block; }
.qr rect { fill: var(--ink); }
.vf { font-size: 10px; font-weight: 700; color: var(--acc); border: 1px solid currentColor; padding: 2px 7px; border-radius: 6px; display: inline-flex; gap: 4px; align-items: center; }
.rbar { display: grid; grid-template-columns: minmax(0, 1fr) 42px 74px; gap: 8px; align-items: center; padding: 5px 0; font-size: 10.5px; }
.rbar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbar b { text-align: right; font-weight: 600; color: var(--acc); font-variant-numeric: tabular-nums; }
.rbar b.o { color: var(--warn); }
.meter { height: 7px; background: var(--rule-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--turquesa); transform-origin: left; animation: fill 1.1s var(--ease) both; }
.meter i.o { background: var(--naranja); }
.meter i.m { background: #E9B44C; }
@keyframes fill { from { transform: scaleX(0); } }

/* ── rentabilidad ── */
.rent { background: var(--surface); border-block: 1px solid var(--rule-2); }
.rent-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 1020px) { .rent-grid { grid-template-columns: minmax(0, 1fr); } }
.rent-txt { display: flex; flex-direction: column; gap: 22px; }
.big-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.big-stat { border: 1px solid var(--rule-2); border-radius: var(--r); padding: 16px 18px; background: var(--bg); }
.big-stat b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-stat span { font-size: .82rem; color: var(--ink-2); }
.big-stat.acc b { color: var(--acc); }
.split { display: flex; height: 38px; border-radius: 10px; overflow: hidden; gap: 2px; }
.split > div { display: flex; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; transform-origin: left; animation: fill 1.2s var(--ease) both; }
.split .s1 { background: var(--petroleo); } .split .s2 { background: #3C7273; } .split .s3 { background: #7FA5A3; }
.split .s4 { background: var(--turquesa); color: #06312C; }
.split .s5 { background: #A85F45; } .split .s6 { background: #E9B44C; }
.rent .x-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .rent .x-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; color: var(--ink-2); margin-top: 8px; }
.split-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule-2); border-radius: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 560px; }
table.t th { text-align: left; font-weight: 600; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; background: var(--bg); }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; color: var(--ink-2); }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: var(--soft); }
table.t td b { color: var(--ink); font-weight: 500; }
table.t .r { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.r { color: var(--ink); }
table.t tfoot td { font-weight: 600; color: var(--ink); background: var(--bg); border-top: 1px solid var(--rule); }

/* ── VeriFactu ── */
.banda { background: var(--band); color: var(--on-band); position: relative; overflow: hidden; }
.banda::before { content: ""; position: absolute; width: 760px; height: 760px; left: -280px; bottom: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,184,166,.22), transparent); }
.banda .eyebrow { color: var(--turquesa); }
.banda h2 { color: #fff; }
.banda .lead { color: var(--on-band-2); }
.vf-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 1020px) { .vf-grid { grid-template-columns: minmax(0, 1fr); } }
.vf-txt { display: flex; flex-direction: column; gap: 24px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { background: var(--band-2); border: 1px solid var(--band-rule); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .3s var(--ease); }
.pillar:hover { border-color: var(--sobre-oscuro-acento); transform: translateY(-3px); }
.banda .pillar .ic { color: var(--turquesa); }
.pillar b { font-size: .95rem; font-weight: 600; }
.pillar span { font-size: .82rem; color: var(--on-band-2); line-height: 1.45; }
.vf-fig { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vf-card { background: var(--band-2); border: 1px solid var(--band-rule); border-radius: var(--r-lg); padding: 20px; font-size: 13px; }
.vf-card h4 { font-size: 13px; font-weight: 600; color: var(--on-band-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 26px; font-size: 11.5px; color: var(--on-band-2); min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--turquesa); box-shadow: 0 0 0 4px rgba(20,184,166,.2); }
.timeline li::after { content: ""; position: absolute; top: 10px; left: 18px; right: -2px; height: 2px; background: rgba(20,184,166,.5); }
.timeline li:last-child::after { display: none; }
.timeline li b { color: #fff; font-weight: 600; font-size: 12.5px; }
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.blk { background: var(--band); border: 1px solid var(--band-rule); border-radius: 12px; padding: 12px; font-size: 11px; color: var(--on-band-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.blk + .blk { margin-left: 22px; }
.blk + .blk::before { content: ""; position: absolute; left: -23px; top: 50%; width: 22px; height: 2px; background: var(--turquesa); }
.blk b { color: #fff; font-size: 12.5px; font-weight: 600; }
.banda .blk code { font: 500 10.5px ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--turquesa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.blk .prev { color: var(--on-band-2); opacity: .8; }
.blk.last { border-color: var(--sobre-oscuro-acento); box-shadow: 0 0 0 4px rgba(20,184,166,.12); }
@media (max-width: 560px) { .chain { grid-template-columns: minmax(0, 1fr); gap: 18px; } .blk + .blk { margin-left: 0; } .blk + .blk::before { left: 24px; top: -19px; width: 2px; height: 18px; } .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } .timeline li:nth-child(2)::after { display: none; } }
.vf-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--papel); color: #0F3D3E; border-radius: var(--r-lg); padding: 18px 20px; }
.vf-inv dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; font-size: 12px; }
.vf-inv dt { color: #7B9394; } .vf-inv dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.vf-inv .qr { width: 86px; height: 86px; border-color: #E9F0EE; background: var(--papel); }
.vf-inv .qr rect { fill: #0F3D3E; }
.vf-inv .top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.vf-inv .top b { font-size: 15px; letter-spacing: -.01em; }
.vf-inv .chip.ok { background: rgba(20,184,166,.14); color: #0E8F82; }

/* ── casos de uso (bento) ── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; min-width: 0; }
.case:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: color-mix(in srgb, var(--turquesa) 40%, var(--rule-2)); }
.case .ic-b { width: 42px; height: 42px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; }
.case h3 { font-size: 1.05rem; }
.case p { color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.case.wide { grid-column: span 2; }

.case.dark { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
.case.dark p { color: #A9C9C7; }
.case.dark .ic-b { background: rgba(20,184,166,.22); color: var(--turquesa); }
.case.dark .chip.n { background: rgba(255,255,255,.08); color: #D5E7E5; }
.case .agenda-mini { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.case .agenda-mini div { background: rgba(255,255,255,.07); border-left: 3px solid var(--turquesa); border-radius: 6px; padding: 6px 8px; font-size: 10.5px; line-height: 1.3; color: #D5E7E5; min-width: 0; }
.case .agenda-mini div.o { border-left-color: var(--sobre-oscuro-alerta); }
.case .agenda-mini b { display: block; color: #fff; font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* autónomos: su tarjeta va a la par que la de centros, con el acento naranja */
.case.auto { border-color: color-mix(in srgb, var(--naranja) 35%, var(--rule-2)); }
.case.auto .ic-b { background: var(--warn-soft); color: var(--warn); }
.auto-mini { margin-top: 4px; border: 1px solid var(--rule-2); border-radius: 12px; overflow: hidden; font-size: 11px; background: var(--bg); }
.auto-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; font-weight: 600; font-size: 11.5px; border-bottom: 1px solid var(--rule-2); }
.auto-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 78px; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--rule-2); }
.auto-h + .auto-row { border-top: 0; }
.auto-row b { display: block; font-weight: 600; font-size: 11.5px; color: var(--ink); }
.auto-row small { display: block; color: var(--ink-3); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auto-row .neto { text-align: right; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--lime); }
.auto-row .neto.o { color: var(--warn); }
.auto-row .neto small { font-weight: 500; color: var(--ink-3); overflow: visible; }
.auto-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); border: 1px dashed color-mix(in srgb, var(--naranja) 50%, var(--rule)); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.auto-cta:hover { border-style: solid; transform: translateY(-2px); box-shadow: var(--sh); }
.auto-cta .ib2 { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }
.auto-cta .t { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.auto-cta .t b { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; }
.auto-cta .ic-go { margin-left: auto; color: var(--warn); flex: none; transition: transform .25s var(--ease); }
.auto-cta:hover .ic-go { transform: translateX(4px); }
@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .case.wide { grid-column: auto; } }

/* ── producto en profundidad ── */
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1020px) { .tour { grid-template-columns: minmax(0, 1fr); } }
.tour-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 100px; }
.tour-tab { appearance: none; border: 1px solid transparent; background: transparent; text-align: left; font: inherit; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: background-color .2s, border-color .2s, color .2s; }
.tour-tab .ic { color: var(--ink-3); margin-top: 2px; transition: color .2s; }
.tour-tab b { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); }
.tour-tab span { display: block; font-size: .8rem; line-height: 1.4; }
.tour-tab:hover { background: var(--surface); }
.tour-tab[aria-selected="true"] { background: var(--surface); border-color: var(--rule-2); box-shadow: var(--sh); }
.tour-tab[aria-selected="true"] .ic { color: var(--acc); }
@media (max-width: 1020px) {
  .tour-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .tour-tab { flex: none; padding: 9px 14px; align-items: center; border-color: var(--rule-2); background: var(--surface); }
  .tour-tab span { display: none; }
  .tour-tab b { font-size: .88rem; }
}
.tour-panel { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.app-url { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--rule-2); background: var(--bg); flex-wrap: wrap; }
.app-url .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-url .u { margin-left: 6px; font-size: 11.5px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--rule-2); padding: 3px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.app-url .tag-ej { margin-left: auto; }

.prof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .prof { grid-template-columns: minmax(0, 1fr); } }
.pcard { border: 1px solid var(--rule-2); border-radius: 12px; padding: 13px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pcard .who { display: flex; gap: 10px; align-items: center; }
.pcard .who b { display: block; font-size: 12.5px; }
.pcard .who span { font-size: 10.5px; color: var(--ink-3); }
.pcard dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 11px; }
.pcard dt { color: var(--ink-3); } .pcard dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* ── prueba social ── */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--rule-2); display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); font-weight: 600; letter-spacing: -.04em; color: var(--acc); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: .88rem; color: var(--ink-2); }
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote { border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.quote.real { background: var(--petroleo); color: #fff; }
.quote.real p { font-size: 1.05rem; line-height: 1.5; }
.quote.real small { color: #A9C9C7; font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.quote.slot { border: 1.5px dashed var(--rule); color: var(--ink-3); justify-content: center; }
.quote.slot p { font-size: .9rem; }
.quote.slot b { color: var(--ink-2); font-weight: 600; display: block; margin-bottom: 4px; font-size: .95rem; }
.logos-slot { margin-top: 16px; border: 1.5px dashed var(--rule); border-radius: var(--r-lg); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; color: var(--ink-3); font-size: .86rem; }
.logos-slot i { width: 110px; height: 26px; border-radius: 6px; background: var(--rule-2); }

/* ── cierre ── */
.close-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .close-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cta-card { grid-column: 1 / -1; } }
@media (max-width: 640px) { .close-grid { grid-template-columns: minmax(0, 1fr); } }
.close-txt { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 8px 4px; }
.close-txt h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.close-txt p { color: var(--ink-2); }
.vs { background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs h4 { font-size: .92rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.vs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: .84rem; color: var(--ink-2); }
.vs li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.vs .no { color: var(--warn); } .vs .si { color: var(--acc); }
.vs .ic { width: 16px; height: 16px; margin-top: 1px; }
.cta-card { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--petroleo); color: #fff; padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.cta-card > * { position: relative; }
.cta-card .x-bg { position: absolute; right: -60px; bottom: -70px; width: 300px; height: 300px; opacity: .16; pointer-events: none; }
.cta-card h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); max-width: 16ch; }
.cta-card p { color: #A9C9C7; max-width: 40ch; }
.cta-card .ctas .btn-band:hover { color: var(--sobre-oscuro-acento); }
.cta-card small { color: #A9C9C7; font-size: .8rem; display: flex; gap: 8px; align-items: center; }
.cta-card small .ic { color: var(--sobre-oscuro-acento); }

/* scroll: el contenido está siempre visible; solo se desplaza un poco al entrar */
.reveal { transition: transform .8s var(--ease); }
.reveal.pre { transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pre { transform: none; }
}

/* `hidden` tiene que ganar a los `display` de las pantallas de «Por dentro»:
   sin esto se ven las siete a la vez. */
.portada [hidden] { display: none !important; }

/* En el móvil el rótulo de los sellos va encima, no a su izquierda. */
@media (max-width: 640px) { .trust-in { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ── precios ── */
.oferta { display: flex; align-items: flex-start; gap: 13px; background: var(--surface); border: 1px solid var(--rule-2); border-left: 3px solid var(--naranja); border-radius: var(--r); padding: 19px 22px; margin-bottom: 28px; max-width: 74ch; }
.oferta .ic { color: var(--warn); margin-top: 2px; }
.oferta p { font-size: .93rem; color: var(--ink-2); }
.oferta strong { color: var(--ink); font-weight: 600; }
.planes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.plan.pref { border-color: var(--turquesa); box-shadow: var(--sh); }
.plan .precio { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .precio b { font-size: 2.4rem; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.plan .precio span, .plan .nota { font-size: .9rem; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.plan li .ic { color: var(--acc); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.precios-mas { text-align: center; margin-top: 24px; }
.precios-mas a { color: var(--acc); font-weight: 500; text-decoration: none; }

/* ── Xestio Labs ── */
.eco-banda-in { position: relative; max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.eco-banda-lamina { display: block; width: min(240px, 60vw); height: auto; margin-bottom: 6px; }
.eco-banda-lead { max-width: 58ch; }
.banda .eco-banda-labs { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.banda .eco-banda-lab { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.eco-banda-punto { width: 10px; height: 10px; border-radius: 50%; background: var(--turquesa); }
.eco-banda-lab--codelab   .eco-banda-punto { background: var(--codelab-accent); }
.eco-banda-lab--createlab .eco-banda-punto { background: var(--createlab-accent); }
.eco-banda-lab--focuslab  .eco-banda-punto { background: var(--focuslab-accent); }
.eco-banda-lab--breaklab  .eco-banda-punto { background: var(--breaklab-accent); }
.eco-banda-lab--aulalab   .eco-banda-punto { background: var(--aulalab-accent); }

/* ── formulario de la demo, dentro de la tarjeta petroleo ── */
.form-contacto { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.campos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.cta-card .campo { display: flex; flex-direction: column; gap: 6px; }
.cta-card .campo > span { font-size: .82rem; font-weight: 500; color: var(--on-band-2); }
.cta-card .campo input, .cta-card .campo textarea { font-family: inherit; font-size: .95rem; color: var(--on-band); background: var(--band-2); border: 1px solid var(--band-rule); border-radius: var(--r-sm); padding: 11px 14px; width: 100%; transition: border-color .18s; }
.cta-card .campo textarea { resize: vertical; min-height: 88px; }
.cta-card .campo input:focus, .cta-card .campo textarea:focus { outline: none; border-color: var(--turquesa); }
.campo-captcha { max-width: 220px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-contacto .btn { align-self: flex-start; }
.quote.real .q-ic { color: var(--sobre-oscuro-acento); }

/* ── pie propio de la portada ── */
.pie { background: var(--band); color: var(--on-band-2); border-top: 1px solid var(--band-rule); padding-block: 52px 34px; margin-top: var(--paso); }
.pie-in { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .pie-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pie-marca { display: flex; flex-direction: column; gap: 14px; }
.pie-marca svg { height: 32px; width: auto; }
.pie-marca p { font-size: .86rem; max-width: 34ch; }
.pie-col h4 { margin: 0 0 12px; font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--on-band); }
.pie-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pie-col a { color: var(--on-band-2); text-decoration: none; font-size: .87rem; }
.pie-col a:hover { color: var(--sobre-oscuro-acento); }
.pie-fin { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--band-rule); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .8rem; }
