/* 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; }
/* Solo para lectores de pantalla y buscadores: el h1 del hero (E12 B1c). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ═══ 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; }
  .lp-top__brand { height: 58px; width: auto; display: block; }
  .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 B1c: las tres preguntas del hero son tarjetas en fila (apiladas en móvil, ver 760px): fondo
     de superficie de acento, sin sombra, ícono arriba a la izquierda y la frase clave en verde. */
  .lp-preguntas { list-style: none; margin: 0; padding: 0; width: min(1060px, 94vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
  .lp-pregunta { background: var(--g-accent-soft); border-radius: 16px; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
  .lp-pregunta .ti { font-size: 20px; color: var(--g-accent-ink); }
  .lp-pregunta__t { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--td-black); letter-spacing: -.015em; text-wrap: balance; }
  .lp-pregunta__t strong { font-weight: 600; color: var(--g-accent-ink); }
  .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; }
  .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; }
  .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; }

  /* ── 3 · Consecuencia ── */
  .lp-conseq { margin: 0 auto; text-align: center; }
  .lp-conseq__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px; align-items: center; width: min(1280px, 94vw); position: relative; left: 50%; transform: translateX(-50%); text-align: left; }
  .lp-conseq__media img { width: 100%; max-width: 500px; height: auto; display: block; margin: 0 auto; }
  .lp-conseq__copy { max-width: 62ch; }
  .lp-conseq__copy .lp-sec__title { text-wrap: balance; }
  .lp-conseq__copy .lp-conseq__txt, .lp-conseq__copy .lp-conseq__claim { text-align: left; }
  .lp-conseq__txt { font-size: 15.5px; color: var(--td-muted); line-height: 1.75; }
  .lp-conseq__txt b { color: var(--td-text); font-weight: 600; }
  .lp-conseq__claim { font-size: clamp(18px, 3vw, 22px); font-weight: 600; color: var(--td-black); line-height: 1.4; margin-top: 22px; }
  .lp-conseq__claim em { font-style: normal; color: var(--g-accent-ink); }

  /* ── 4 · Promesa ── */
  .lp-promise__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; 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; }

  /* ── 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; }
  }

  /* ── Responsive ── */
  @media (max-width: 760px) {
    .lp-top { padding-top: 20px; }
    .lp-top__brand { height: 46px; }
    .lp-roles, .lp-conseq__grid { grid-template-columns: 1fr; }
    .lp-preguntas { grid-template-columns: 1fr; }
    .lp-conseq__copy { max-width: none; padding: 0 4px; }
    .lp-conseq__copy .lp-sec__title { font-size: 25px; line-height: 1.2; text-wrap: pretty; }
    .lp-conseq__txt, .lp-conseq__claim { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
    .lp-conseq__claim { font-size: 19px; line-height: 1.45; }
    .lp-promise__list { grid-template-columns: 1fr; }
    .lp-roles { gap: 38px; }
    .lp-sec { padding: 44px 18px; }

    .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: 440px) {
    .lp-promise__list { grid-template-columns: 1fr; }
    /* Ajuste propio: el logo de Tudela es más ancho que el del legacy y a
       380 px empuja el botón *Ingresar* fuera del encabezado. */
    .lp-top__brand { height: 30px; }
  }

/* ═══ 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; }
}
