/* Landing pública de Gestión SST · tudela.io/landing/gestion y gestion.tudela.io
   ---------------------------------------------------------------------------
   E1b · fiel al original. Este archivo es la transcripción del legacy
   `tgestion/public_html`: los tokens salen de `assets/css/gestion.css`
   (líneas 11-40) y las reglas, del `<style>` inline de `index.php`, verbatim.

   Las únicas diferencias con el original, y sus razones:
     1. El reset base de `gestion.css` se copia aquí. La landing no carga ese
        archivo (son 900 líneas de panel); necesita el reset y los tokens. Ojo
        con `p`: el legacy NO resetea su margen, y varias separaciones de la
        página dependen de eso. Aquí tampoco se resetea.
     2. Los íconos son SVG inline de Tabler 3.46, no la webfont: donde el
        legacy dice `i`, aquí dice `.ti`, con el mismo `font-size` (el svg mide
        1em, así el valor del original sigue siendo el tamaño del ícono).
     3. El logo baja a 30 px bajo 440 px. El de Tudela es 658×106 —mucho más
        ancho que el del legacy— y a 380 px empujaba el botón *Ingresar* fuera
        del encabezado. Es el único ajuste propio que queda.
     4. Al final, los estilos de `/diagnostico`: es una página de Tudela, no
        existe en el legacy, y comparte esta hoja. */

/* ── Tokens · verbatim de assets/css/gestion.css, líneas 11-40 ── */
:root {
    /* ── Tokens matriz (verbatim) ── */
    --td-black: #050505;
    --td-text: #111111;
    --td-muted: #6f6f6f;
    --td-line: #e9e9e9;
    --td-soft: #f7f8fa;
    --td-white: #ffffff;
    --td-ease: cubic-bezier(.22, 1, .36, 1);

    --sa-bg: #f6f7f9;
    --sa-surface: #ffffff;
    --sa-line: #e7e8eb;
    --sa-line-2: #dcdee2;
    --sa-text-3: #9aa0a6;
    --sa-radius: 18px;
    --sa-radius-sm: 12px;
    --sa-maxw: 1120px;

    /* ── Extensiones Gestión ── */
    --g-accent: #73C15D;
    --g-accent-ink: #2f6b22;          /* texto sobre superficies verdes claras */
    --g-accent-soft: rgba(115, 193, 93, .14);
    --g-accent-ring: rgba(115, 193, 93, .30);
}

/* ── Reset / base · verbatim de assets/css/gestion.css ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    color: var(--td-text);
    background: var(--sa-bg);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; color: var(--td-black); }

/* El ícono, en vez de la webfont de Tabler: 1em de lado, para que los
   `font-size` del original sigan siendo el tamaño del glifo. */
.ti { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ Desde aquí, el <style> inline de index.php, verbatim ═══════════════ */

  body { background: #fff; overflow-x: hidden; }
  .lp { display: flex; flex-direction: column; min-height: 100dvh; }

  /* ── Top: logo + acceso discreto ── */
  .lp-top { padding: 26px 24px 8px; display: flex; align-items: center; justify-content: space-between; }
  /* E12: la medida del logo de la landing de Shops; bajo 560px, el isotipo. */
  .lp-top__brand { height: 34px; width: auto; display: block; }
  .lp-top__iso { height: 36px; width: auto; display: none; }
  .lp-top__login { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--td-muted); text-decoration: none; border: 1.5px solid #E4E8E1; padding: 8px 16px; border-radius: 999px; transition: .15s var(--td-ease); background: #fff; flex-shrink: 0; }
  .lp-top__login:hover { border-color: var(--g-accent); color: var(--g-accent-ink); box-shadow: 0 0 0 3px var(--g-accent-ring), 0 4px 16px -4px rgba(115, 193, 93, .5); }
  .lp-top__login .ti { font-size: 15px; }

  /* ── 1 · Hero ── */
  .lp-hero { padding: 72px 20px 80px; text-align: center; background: radial-gradient(620px 340px at 50% 0%, var(--g-accent-soft), transparent 62%); }
  .lp-hero__inner { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
  .lp-hero__title { font-size: clamp(34px, 5.2vw, 56px); font-weight: 600; line-height: 1.08; color: var(--td-black); letter-spacing: -.028em; }
  .lp-hero__title em { font-style: normal; color: var(--g-accent-ink); }
  /* E12 B1d: las tres preguntas en el h1. Sin JS, una por línea; con JS (`--on`) comparten celda
     de grilla —el alto es el de la más larga, también en móvil— y solo la `.on` se ve, con fundido. */
  .lp-rota { text-wrap: balance; }
  .lp-rota__f { display: block; }
  .lp-rota__f + .lp-rota__f { margin-top: .28em; }
  .lp-rota--on { display: grid; }
  .lp-rota--on .lp-rota__f { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity .7s ease; }
  .lp-rota--on .lp-rota__f.on { opacity: 1; }
  .lp-hero__sub { font-size: clamp(15px, 2vw, 18px); font-weight: 400; color: var(--td-muted); line-height: 1.6; max-width: 56ch; text-wrap: balance; }
  .lp-hero__go { font-size: 15px; font-weight: 500; color: var(--td-muted); margin-top: 6px; margin-bottom: -16px; }

  .lp-cta { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--g-accent); border: 1.5px solid var(--g-accent); color: #fff; font-weight: 600; font-size: 16px; padding: 15px 30px; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(115, 193, 93, .65); transition: .15s var(--td-ease); }
  .lp-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
  .lp-cta .ti { font-size: 18px; }
  /* E12: el precio bajo los dos botones "Construye tu Sistema…", a 10px. */
  .lp-precio { margin: 10px 0 0; font-size: 14px; color: var(--td-muted); text-align: center; line-height: 1.5; }
  .lp-precio b { color: var(--td-text); font-weight: 600; white-space: nowrap; }
  .lp-trust { font-size: 12.5px; color: var(--td-muted); }
  .lp-trust b { color: var(--td-text); font-weight: 500; }

  /* ── Secciones base ── */
  .lp-sec { padding: 54px 20px; }
  .lp-sec--soft { background: #F3F5F1; }
  /* E12: la promesa, simétrica: el recuadro del CTA no deja aire propio debajo y la sección
     tiene el mismo padding arriba y abajo (72px; 40px en móvil), así recuadro → tarjetas y
     tarjetas → pie miden lo mismo. */
  .lp-sec--cierre { padding-top: 0; padding-bottom: 0; }
  .lp-sec--promesa { padding-top: 72px; padding-bottom: 72px; }
  .lp-sec__inner { max-width: 900px; margin: 0 auto; }
  .lp-sec__kicker { text-align: center; font-size: 12px; font-weight: 600; color: var(--g-accent-ink); text-transform: uppercase; letter-spacing: .08em; }
  .lp-sec__title { text-align: center; font-size: clamp(22px, 3.6vw, 28px); font-weight: 600; color: var(--td-black); margin-top: 8px; letter-spacing: -.01em; }
  .lp-sec__sub { text-align: center; font-size: 14px; color: var(--td-muted); margin-top: 10px; max-width: 58ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

  /* ── 4 · Promesa (E12: sección propia, sin el bloque de Consecuencia encima) ── */
  .lp-promise__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; width: min(1280px, 94vw); position: relative; left: 50%; transform: translateX(-50%); }
  .lp-promise__item { display: flex; align-items: flex-start; gap: 11px; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px -20px rgba(20, 30, 25, .35); padding: 15px 16px; }
  .lp-promise__item .ti { font-size: 20px; color: var(--g-accent-ink); flex-shrink: 0; margin-top: 1px; }
  .lp-promise__item span { font-size: 13.5px; color: var(--td-text); line-height: 1.5; }
  .lp-promise__item b { font-weight: 600; }

  /* ── Bono (13-11-2026): Personas, Sign y Capacita incluidos. Las tarjetas son las del home
     (`.service` de corp/css/tudela.css): el isotipo SVG 512×512 trae el nombre adentro y el dibujo
     ocupa el tercio central, por eso los márgenes negativos. La sección no pone aire arriba: lo
     trae el padding inferior de la promesa. ── */
  .lp-sec--bono { padding-top: 0; padding-bottom: 72px; }
  .lp-bono { max-width: 900px; margin: 0 auto; }
  .lp-bono .lp-sec__title { margin-top: 6px; }
  .lp-bono .lp-sec__title em { font-style: normal; color: var(--g-accent-ink); }
  .lp-bono__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; text-align: center; }
  .lp-bono__item { background: #fff; border-radius: 22px; box-shadow: 0 12px 30px -20px rgba(20, 30, 25, .35); padding: 24px 16px 24px; }
  .lp-bono__icon { width: 160px; height: 160px; object-fit: contain; display: block; margin: -32px auto -24px; }
  .lp-bono__desc { max-width: 236px; margin: 0 auto; font-size: 13.5px; line-height: 1.5; color: var(--td-muted); }

  /* ── Pie (E12): las reglas .ftr de landing-assets/shops/landing.css, con el `.wrap` y el
     `--muted` de Shops resueltos aquí, porque esta hoja no los tiene. Va sobre el fondo de
     la promesa (sin franja blanca) y la .sep queda como línea sutil dentro de ese fondo. En
     una ventana más alta que el contenido crece el pie, no la promesa, para no romper su
     simetría; el sobrante queda bajo el contenido del pie, en el mismo fondo. Sin padding
     superior: la .sep pega con el fin de la promesa, y la simetría (72/72, 40/40) se mide
     hasta ella. ── */
  .ftr{flex:1 0 auto;padding:0 0 28px;background:#F3F5F1;font-size:13px;color:rgba(25,25,25,.60)}
  .ftr .sep{height:1px;margin:0 auto 28px;width:92%;max-width:1120px;background:linear-gradient(90deg,transparent,rgba(25,25,35,.28) 20%,rgba(25,25,35,.28) 80%,transparent)}
  .ftr .wrap{width:92%;max-width:1120px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
  .ftr .l{display:flex;align-items:center;gap:0;line-height:1}
  .ftr .l a{display:block}
  .ftr .l img{height:22px;display:block}
  .ftr .l img.slogan{height:15px;margin-left:14px;padding-left:14px;border-left:1px solid rgba(25,25,35,.18);position:relative;top:1px}
  .ftr .l span{margin-left:14px;padding-left:14px;border-left:1px solid rgba(25,25,35,.18);line-height:1;font-size:14.5px;font-weight:500;color:rgba(25,25,25,.62);letter-spacing:.02em}
  .ftr .legal{display:flex;gap:18px;flex-wrap:wrap;justify-content:center}
  .ftr .legal a{color:rgba(25,25,25,.62);text-decoration:none;font-weight:500}
  .ftr .legal a:hover{text-decoration:underline}
  .ftr .flags{display:flex;gap:8px}
  .ftr .flags img{width:22px;height:16px;border-radius:3px;object-fit:cover;box-shadow:0 1px 3px rgba(0,0,0,.15)}
  @media(max-width:720px){.ftr .wrap{flex-direction:column;align-items:center;gap:18px}.ftr .l{justify-content:center;flex-wrap:wrap}.ftr .flags{justify-content:center}}

  /* ── 7 · Roles (hero) ── */
  .lp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .lp-roles--hero { width: min(1060px, 94vw); margin-top: 30px; }
  .lp-role { position: relative; background: #fff; border-radius: 18px; box-shadow: 0 18px 44px -26px rgba(20, 30, 25, .35), 0 3px 10px rgba(20, 30, 25, .04); padding: 44px 20px 24px; text-align: center; }
  .lp-role__badge { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--g-accent); border: 4px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -10px rgba(115, 193, 93, .75); }
  .lp-role__badge .ti { font-size: 23px; color: #fff; }
  .lp-role__name { font-size: 15.5px; font-weight: 600; color: var(--td-text); }
  .lp-role__txt { font-size: 13px; color: var(--td-muted); line-height: 1.6; margin-top: 6px; }
  .lp-roles__claim { text-align: center; font-size: 16.5px; font-weight: 600; color: var(--td-black); margin-top: 32px; }

  /* ── Cómo funciona · timeline ──
     El trazo verde es la única línea. Su altura (--fill) la interpola el JS
     con inercia; --tip enciende la punta luminosa mientras avanza.        */
  .lp-tl { position: relative; width: min(1150px, 96vw); left: 50%; transform: translateX(-50%); margin: 44px 0 0; }
  .lp-tl::before { content: ''; position: absolute; left: 50%; top: 30px; width: 3px; height: var(--fill, 0px); transform: translateX(-50%); background: var(--g-accent); border-radius: 999px 999px 0 0; will-change: height; }
  .lp-tl::after { content: ''; position: absolute; left: 50%; top: calc(30px + var(--fill, 0px)); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--g-accent); box-shadow: 0 0 0 5px rgba(115, 193, 93, .16); opacity: var(--tip, 0); transition: opacity .45s ease; pointer-events: none; }

  .lp-tl__row { position: relative; display: grid; grid-template-columns: 1fr 76px 1fr; align-items: start; gap: 18px; padding: 26px 0; }
  .lp-tl__info { text-align: right; }
  .lp-tl__name { font-size: 16.5px; font-weight: 600; color: var(--td-text); }
  .lp-tl__desc { font-size: 13px; color: var(--td-muted); line-height: 1.65; margin-top: 5px; }

  .lp-tl__disc { position: relative; z-index: 2; width: 76px; height: 76px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; border: 5px solid #fff; box-shadow: 0 12px 28px -12px rgba(20, 30, 25, .45); transform: scale(.6); opacity: 0; align-self: start; margin-top: -6px; transition: transform .45s cubic-bezier(.34, 1.45, .64, 1), opacity .28s ease; }
  .lp-tl__row.on .lp-tl__disc { transform: scale(1); opacity: 1; }

  .lp-tl__row:nth-child(1) { --step: var(--g-accent); --step-soft: rgba(115, 193, 93, .28); }
  .lp-tl__row:nth-child(2) { --step: #4E9A3C; --step-soft: rgba(78, 154, 60, .28); }
  .lp-tl__row:nth-child(3) { --step: var(--g-accent-ink); --step-soft: rgba(45, 92, 33, .28); }
  .lp-tl__row .lp-tl__disc { background: var(--step); }
  .lp-tl__disc small { font-size: 9px; font-weight: 600; letter-spacing: .12em; opacity: .85; }
  .lp-tl__disc b { font-size: 26px; font-weight: 600; line-height: 1; }

  .lp-tl__hitos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--step) 5%, transparent); }
  .lp-hito { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--td-text); background: #fff; border: 1.5px solid var(--step-soft, #E4E8E1); border-left: 3px solid var(--step, #E4E8E1); border-radius: 12px; padding: 11px 15px 11px 14px; opacity: 0; transform: translateY(9px) scale(.975); transition: opacity .36s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
  .lp-hito .ti { font-size: 17px; color: var(--step, var(--g-accent-ink)); }
  .lp-tl__row.on .lp-hito { opacity: 1; transform: translateY(0) scale(1); }
  .lp-brk { flex-basis: 100%; height: 0; }

  /* Sin elemento conector: el propio trazo se prolonga más allá de la
     timeline y termina 3px bajo el borde de la caja, que va en z-index
     superior y oculta la punta. Un solo recorrido, sin empalme posible. */

  /* ── 10 · CTA final ── */
  @property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
  .lp-final { position: relative; z-index: 2; max-width: 580px; margin: 0 auto; border: 3px solid transparent; border-radius: 20px; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from 0deg at 50% 50%, var(--g-accent) 0deg, var(--g-accent) var(--sweep), rgba(115, 193, 93, 0) var(--sweep)) border-box; box-shadow: 0 24px 60px -28px rgba(20, 30, 25, .28), 0 4px 14px rgba(20, 30, 25, .05); padding: 34px 24px 32px; text-align: center; transition: --sweep 1.5s linear; }
  .lp-final.on { --sweep: 360deg; animation: lpPulse 2.6s var(--td-ease) 1.7s infinite; }
  .lp-final.on .lp-cta { animation: lpCtaPulse 2.6s var(--td-ease) 1.7s infinite; }
  .lp-final.on .lp-cta:hover { animation: none; }
  @keyframes lpPulse {
    0%, 100% { box-shadow: 0 24px 60px -28px rgba(20, 30, 25, .28), 0 4px 14px rgba(20, 30, 25, .05), 0 0 0 0 rgba(115, 193, 93, .42); }
    50%      { box-shadow: 0 24px 60px -28px rgba(20, 30, 25, .28), 0 4px 14px rgba(20, 30, 25, .05), 0 0 0 12px rgba(115, 193, 93, 0); }
  }
  @keyframes lpCtaPulse {
    0%, 100% { transform: scale(1);     box-shadow: 0 14px 30px -12px rgba(115, 193, 93, .65); }
    50%      { transform: scale(1.035); box-shadow: 0 18px 40px -10px rgba(115, 193, 93, .85); }
  }

  .lp-final__title { font-size: 15px; font-weight: 500; color: var(--td-muted); line-height: 1.35; }
  .lp-final__cta { margin-top: 10px; }

  @media (prefers-reduced-motion: reduce) {
    .lp-final.on, .lp-final.on .lp-cta { animation: none; }
    .lp-tl::after { display: none; }
    .lp-hito, .lp-tl__disc { transition: none; }
    .lp-rota--on .lp-rota__f { transition: none; }
  }

  /* ── Responsive ── */
  @media (max-width: 760px) {
    .lp-top { padding-top: 20px; }
    .lp-top__brand { height: 30px; }
    .lp-roles { grid-template-columns: 1fr; }
    .lp-promise__list { grid-template-columns: 1fr; }
    .lp-roles { gap: 38px; }
    .lp-sec { padding: 44px 18px; }
    .lp-sec--cierre { padding-top: 0; padding-bottom: 0; }
    .lp-sec--promesa { padding-top: 40px; padding-bottom: 40px; }
    .lp-sec--bono { padding-top: 0; padding-bottom: 40px; }
    .lp-bono__list { grid-template-columns: 1fr; gap: 14px; max-width: 380px; margin-left: auto; margin-right: auto; }
    .lp-bono__icon { width: 136px; height: 136px; margin: -28px auto -20px; }

    .lp-tl::before { left: 38px; transform: none; }
    .lp-tl::after { left: 38px; }
    .lp-tl__row { grid-template-columns: 76px 1fr; align-items: start; }
    .lp-tl__info { grid-column: 2; text-align: left; order: 2; }
    .lp-tl__disc { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: -6px; }
    .lp-tl__hitos { grid-column: 2; order: 3; margin-top: 14px; }

    /* El trazo entra por 2vw+38px, no por el centro: el barrido del
       perímetro debe nacer en ese mismo punto. Restamos el padding
       lateral de la sección (18px) para pasarlo a coords de la caja. */
    .lp-final { background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from 0deg at calc(2vw + 20px) 50%, var(--g-accent) 0deg, var(--g-accent) var(--sweep), rgba(115, 193, 93, 0) var(--sweep)) border-box; }
  }
  @media (max-width: 560px) {
    .lp-top__brand { display: none; }
    .lp-top__iso { display: block; }
  }
  @media (max-width: 440px) {
    .lp-promise__list { grid-template-columns: 1fr; }
  }

/* ═══ Fin del <style> de index.php ═══════════════════════════════════════ */

/* ── /diagnostico · placeholder honesto hasta E2. No existe en el legacy: es
      una página de Tudela que comparte esta hoja. ── */
.lp-foot { margin-top: auto; padding: 30px 20px 34px; text-align: center; font-size: 13px; color: var(--td-muted); }
.lp-foot a { color: var(--g-accent-ink); font-weight: 500; }

.lp-soon { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px 72px; background: radial-gradient(620px 340px at 50% 0%, var(--g-accent-soft), transparent 62%); }
.lp-soon__card { max-width: 520px; width: 100%; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px -28px rgba(20, 30, 25, .28), 0 4px 14px rgba(20, 30, 25, .05); padding: 40px 30px 34px; text-align: center; }
.lp-soon__iso { width: 120px; height: 120px; margin: 0 auto 10px; display: block; }
.lp-soon__title { font-size: clamp(22px, 4vw, 28px); font-weight: 600; color: var(--td-black); letter-spacing: -.02em; }
.lp-soon__title em { font-style: normal; color: var(--g-accent-ink); }
.lp-soon__txt { font-size: 15px; color: var(--td-muted); line-height: 1.65; margin: 14px 0 0; }
.lp-soon__wa { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; border-radius: 999px; background: #25D366; color: #0b2b16; font-weight: 600; font-size: 15px; padding: 13px 24px; box-shadow: 0 12px 26px -12px rgba(37, 211, 102, .6); transition: .15s var(--td-ease); }
.lp-soon__wa:hover { transform: translateY(-1px); filter: brightness(1.04); }
.lp-soon__wa svg { width: 20px; height: 20px; fill: currentColor; }
.lp-soon__back { display: block; margin-top: 20px; font-size: 13.5px; color: var(--td-muted); }
.lp-soon__back:hover { color: var(--g-accent-ink); }

@media (max-width: 440px) {
  .lp-soon__card { padding: 32px 22px 28px; }
  .lp-soon__iso { width: 96px; height: 96px; }
}
