/* ============================================================
   Portada pública (landing) — Portal Cliente Workmed.

   Design system portado 1:1 desde portal_produccion
   (apps/api/assets/styles/styles.css). Es CSS plano servido por
   AssetMapper y se carga SOLO en la portada (templates/home/index.html.twig),
   después de Tailwind, para no contaminar el resto de la app (que es Tailwind).

   Todo el contenido de la portada vive bajo `.landing-root`; los estilos de
   componente (.hero, .btn, .featured-card…) son globales pero inocuos porque
   este archivo no se carga en ninguna otra página.
   ============================================================ */

:root {
  /* Marca */
  --wm-azul: #535A75;
  --wm-azul-oscuro: #2D334E;
  --wm-rojo: #CC2D3B;
  --wm-rojo-700: #A6232E;
  --wm-gris: #E2E9EF;
  --wm-negro: #0A0E1A;

  /* Derivados */
  --bg: #FAFBFD;
  --bg-soft: #E2E9EF;
  --bg-dark: #2D334E;
  --fg: #2D334E;
  --fg-muted: #535A75;
  --fg-soft: #7A8197;
  --line: #D5DCE5;
  --line-soft: #EAEEF3;
  --accent: #CC2D3B;

  /* Tipografía */
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Escala */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Densidad */
  --pad-section-y: 120px;
  --pad-card: 28px;
  --gap-card: 20px;

  --shadow-sm: 0 1px 2px rgba(45,51,78,0.05), 0 0 0 1px rgba(45,51,78,0.04);
  --shadow-md: 0 4px 16px rgba(45,51,78,0.08), 0 0 0 1px rgba(45,51,78,0.04);
  --shadow-lg: 0 18px 40px -12px rgba(45,51,78,0.18), 0 0 0 1px rgba(45,51,78,0.05);
}

/* Wrapper de la portada: fija fondo, color y tipografía base (gana sobre las
   utilidades Tailwind del <body>/<main> porque el contenido vive aquí dentro). */
.landing-root {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--fg);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.landing-root * { box-sizing: border-box; }
.landing-root a { color: inherit; text-decoration: none; }
.landing-root button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.landing-root img, .landing-root svg { display: block; max-width: 100%; }

/* Tipografía */
.landing-root h1, .landing-root h2, .landing-root h3, .landing-root h4 {
  font-family: var(--font-sans); font-weight: 700; color: var(--fg);
  margin: 0; letter-spacing: -0.02em; line-height: 1.05;
}
.landing-root h1 { font-size: clamp(44px, 5.8vw, 88px); letter-spacing: -0.035em; }
.landing-root h2 { font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -0.028em; }
.landing-root h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.015em; }
.landing-root h4 { font-size: 18px; letter-spacing: -0.01em; }
.landing-root p { margin: 0; }

.landing-root .eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--wm-rojo);
}
.landing-root .lead {
  font-size: clamp(18px, 1.4vw, 22px); color: var(--fg-muted);
  font-weight: 300; line-height: 1.5; max-width: 56ch;
}

.landing-root .container { width: min(1320px, 92vw); margin: 0 auto; }
.landing-root section { padding: var(--pad-section-y) 0; }

/* ---------- Botones ---------- */
.landing-root .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.landing-root .btn-primary {
  background: var(--wm-rojo); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 14px -6px rgba(204,45,59,0.6);
}
.landing-root .btn-primary:hover { background: var(--wm-rojo-700); transform: translateY(-1px); }
.landing-root .btn-dark { background: var(--wm-azul-oscuro); color: #fff; }
.landing-root .btn-dark:hover { background: #1F2541; transform: translateY(-1px); }
.landing-root .btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--fg); }
.landing-root .btn-ghost:hover { border-color: var(--fg); }
.landing-root .btn .arr { transition: transform .2s ease; }
.landing-root .btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.landing-root .site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,251,253,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.landing-root .site-header__inner { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
.landing-root .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; }
.landing-root .brand--logo .brand__img { height: 30px; width: auto; display: block; }
.landing-root .brand--logo .brand__sub {
  font-size: 10.5px; font-weight: 500; color: var(--fg-muted);
  letter-spacing: 0.15em; text-transform: uppercase;
  padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.1;
}
.landing-root .site-nav { display: flex; gap: 28px; margin-left: auto; }
.landing-root .site-nav a { font-size: 14.5px; font-weight: 400; color: var(--fg-muted); position: relative; }
.landing-root .site-nav a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.landing-root .hero { padding-top: 60px; padding-bottom: var(--pad-section-y); position: relative; overflow: hidden; }
.landing-root .hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.landing-root .hero h1 .accent { color: var(--wm-rojo); position: relative; display: inline-block; }
.landing-root .hero-meta { display: flex; gap: 36px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.landing-root .hero-meta__item { flex: 1; }
.landing-root .hero-meta__num { font-size: 36px; font-weight: 700; color: var(--wm-azul-oscuro); letter-spacing: -0.04em; line-height: 1; }
.landing-root .hero-meta__label { font-size: 13px; color: var(--fg-muted); margin-top: 6px; }
.landing-root .hero-cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.landing-root .hero-card { background: var(--wm-azul-oscuro); color: #fff; border-radius: var(--r-xl); padding: 36px; position: relative; overflow: hidden; }
.landing-root .hero-card__eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 500; }
.landing-root .hero-card h3 { color: #fff; margin: 14px 0 8px; }
.landing-root .hero-card p { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.landing-root .hero-card__list { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; }
.landing-root .hero-card__list li { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.landing-root .hero-card__list .dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.07); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; flex-shrink: 0; }
.landing-root .hero-card__list a { color: #fff; flex: 1; display: flex; justify-content: space-between; align-items: center; }
.landing-root .hero-card__list a:hover { color: var(--wm-rojo); }
.landing-root .hero-card__list .arr { opacity: 0.5; }
.landing-root .hero-card__list a:hover .arr { opacity: 1; transform: translateX(2px); }
.landing-root .hero-card__cta { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; background: var(--wm-rojo); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 500; font-size: 14.5px; }
.landing-root .hero-card__cta:hover { background: var(--wm-rojo-700); }
.landing-root .hero-deco { position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(204,45,59,0.18), transparent 60%); pointer-events: none; }

/* ---------- Section heading ---------- */
.landing-root .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.landing-root .sec-head__title { max-width: 26ch; }
.landing-root .sec-head__title h2 { margin-top: 12px; }
.landing-root .sec-head__aside { max-width: 38ch; }

/* ---------- Featured cards ---------- */
.landing-root .featured-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap-card); }
.landing-root .featured-card { border-radius: var(--r-xl); padding: 36px; display: flex; flex-direction: column; min-height: 320px; position: relative; overflow: hidden; transition: transform .2s ease; }
.landing-root .featured-card:hover { transform: translateY(-3px); }
.landing-root .featured-card--dark { background: var(--wm-azul-oscuro); color: #fff; }
.landing-root .featured-card--rojo { background: var(--wm-rojo); color: #fff; }
.landing-root .featured-card--gris { background: var(--wm-gris); color: var(--fg); }
.landing-root .featured-card .eyebrow { color: rgba(255,255,255,0.55); }
.landing-root .featured-card--gris .eyebrow { color: var(--wm-rojo); }
.landing-root .featured-card h3 { color: inherit; font-size: clamp(24px, 2vw, 32px); margin: 14px 0; }
.landing-root .featured-card p { color: rgba(255,255,255,0.75); font-size: 14.5px; margin-bottom: 22px; max-width: 36ch; }
.landing-root .featured-card--gris p { color: var(--fg-muted); }
.landing-root .featured-card__bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing-root .featured-card__bottom .num { font-size: clamp(36px, 3vw, 52px); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.landing-root .featured-card__arr { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; }
.landing-root .featured-card--gris .featured-card__arr { background: rgba(45,51,78,0.08); color: var(--wm-azul-oscuro); }

/* ---------- Proceso ---------- */
.landing-root .process { background: var(--wm-azul-oscuro); color: #fff; }
.landing-root .process h2 { color: #fff; }
.landing-root .process .eyebrow { color: rgba(255,255,255,0.6); }
.landing-root .process .lead { color: rgba(255,255,255,0.75); }
.landing-root .process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-card); margin-top: 60px; }
.landing-root .step { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: 28px; position: relative; }
.landing-root .step__num { font-size: 13px; font-weight: 500; color: var(--wm-rojo); display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.landing-root .step__num::before { content: ''; width: 28px; height: 1px; background: var(--wm-rojo); }
.landing-root .step h4 { color: #fff; font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.landing-root .step p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.55; }

/* ---------- Empresas / Contacto ---------- */
.landing-root .contact { background: var(--wm-gris); }
.landing-root .contact a.mail { color: var(--wm-azul-oscuro); font-weight: 500; }
.landing-root .contact a.mail:hover { color: var(--wm-rojo); }

/* ---------- Footer ---------- */
.landing-root .site-footer { background: var(--wm-negro); color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
.landing-root .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.landing-root .footer-brand .brand { color: #fff; }
.landing-root .footer-brand .brand__img { height: 30px; }
.landing-root .footer-brand p { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 16px; max-width: 30ch; line-height: 1.55; }
.landing-root .footer-col h5 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin: 0 0 18px; }
.landing-root .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.landing-root .footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); }
.landing-root .footer-col a:hover { color: #fff; }
.landing-root .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
.landing-root .footer-bottom .slogan { font-style: italic; color: rgba(255,255,255,0.6); }

/* ============================================================
   Login (auth) — portado de portal_produccion/portal-styles.css.
   Dos columnas: aside oscuro con copy + tarjeta con el form real.
   ============================================================ */
.landing-root .field { display: flex; flex-direction: column; gap: 6px; }
.landing-root .field label { font-size: 12.5px; font-weight: 500; color: var(--fg-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.landing-root .field input {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font: inherit; background: #fff; color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.landing-root .field input:focus { outline: none; border-color: var(--wm-azul-oscuro); box-shadow: 0 0 0 4px rgba(45,51,78,0.07); }

.landing-root .auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.landing-root .auth-aside { background: var(--wm-azul-oscuro); color: #fff; padding: 64px 64px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.landing-root .auth-aside::before { content: ''; position: absolute; right: -180px; bottom: -180px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(204,45,59,0.22), transparent 60%); }
.landing-root .auth-aside .brand { position: relative; z-index: 1; margin-bottom: 48px; }
.landing-root .auth-aside .brand__img { height: 30px; }
.landing-root .auth-aside .eyebrow { color: rgba(255,255,255,0.55); }
.landing-root .auth-aside h1 { color: #fff; font-size: clamp(34px, 3.4vw, 52px); margin-top: 16px; position: relative; z-index: 1; }
.landing-root .auth-aside p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.6; max-width: 38ch; margin-top: 24px; position: relative; z-index: 1; }
.landing-root .auth-aside__bullets { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.landing-root .auth-aside__bullets li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,0.8); font-size: 14.5px; line-height: 1.55; }
.landing-root .auth-aside__bullets .num { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.landing-root .auth-aside__foot { margin-top: auto; padding-top: 40px; font-size: 13px; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.08); position: relative; z-index: 1; }
.landing-root .auth-aside__foot a { color: #fff; }

.landing-root .auth-main { display: grid; place-items: center; padding: 60px; }
.landing-root .auth-card { width: 100%; max-width: 440px; }
.landing-root .auth-card h2 { font-size: 30px; letter-spacing: -0.02em; }
.landing-root .auth-card .lead { margin-top: 10px; font-size: 16px; }

.landing-root .auth-error { background: rgba(204,45,59,0.08); border: 1px solid var(--wm-rojo); color: var(--wm-rojo-700); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; }
.landing-root .auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.landing-root .auth-form .field-with-ico { position: relative; }
.landing-root .auth-form .field-with-ico .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-soft); display: grid; place-items: center; }
.landing-root .auth-form .field-with-ico input { padding-left: 42px; }
.landing-root .auth-form .field-with-ico--eye input { padding-right: 42px; }
.landing-root .auth-form .pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: var(--fg-soft); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.landing-root .auth-form .pw-toggle:hover { color: var(--fg); }
.landing-root .auth-form .btn-primary { justify-content: center; margin-top: 8px; }
.landing-root .auth-back { margin-top: 28px; font-size: 13px; color: var(--fg-soft); text-align: center; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.landing-root .auth-back a { color: var(--fg-muted); }
.landing-root .auth-back a:hover { color: var(--wm-rojo); }
.landing-root .auth-staff { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--wm-gris); display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--fg-soft); text-align: center; }
.landing-root .auth-staff svg { color: var(--fg-muted); }
.landing-root .auth-staff a { color: var(--wm-azul-oscuro); font-weight: 600; }
.landing-root .auth-staff a:hover { text-decoration: underline; }

/* ---------- Puerta interna (personal Workmed) ----------
   Reusa el auth-shell del cliente pero cambia el acento de rojo a azul para
   señalizar "operación interna" sin romper la coherencia de marca. */
.landing-root .auth-aside--interno { background: var(--wm-negro); }
.landing-root .auth-aside--interno::before { background: radial-gradient(circle at 30% 30%, rgba(83,90,117,0.35), transparent 60%); }
.landing-root .auth-aside--interno .eyebrow { color: rgba(255,255,255,0.55); }
.landing-root .auth-shell--interno .btn-primary { background: var(--wm-azul-oscuro); }
.landing-root .auth-shell--interno .btn-primary:hover { background: var(--wm-negro); }
.landing-root .auth-shell--interno .auth-error { background: rgba(83,90,117,0.10); border-color: var(--wm-azul); color: var(--wm-azul-oscuro); }
.landing-root .auth-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wm-azul-oscuro); background: var(--wm-gris); border-radius: var(--r-pill); padding: 6px 14px; margin-bottom: 16px; }
.landing-root .auth-sso { width: 100%; margin-top: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.landing-root .auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 4px; color: var(--fg-soft); font-size: 12.5px; }
.landing-root .auth-divider::before, .landing-root .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--wm-gris); }

@media (max-width: 900px) {
  .landing-root .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .landing-root .auth-aside { padding: 56px 32px; }
  .landing-root .auth-main { padding: 56px 32px; }
}

/* ============================================================
   Portal personal (portal.workmed.cl · Personas) — portado 1:1
   desde el mockup "Workmed Home". Dos piezas:
     1. Login con RUT + código de acceso (OTP de 6 dígitos).
     2. Panel del trabajador: resumen, exámenes y solicitudes.
   ============================================================ */

/* ---------- Login personal: aside con pasos en anillo ---------- */
.landing-root .auth-aside__bullets--ring .num {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
}
.landing-root .auth-aside__bullets--ring li { align-items: center; }

/* ---------- Login personal: RUT + OTP ---------- */
.landing-root .otp-hint {
  font-size: 13px; line-height: 1.5; color: var(--fg-soft);
  font-weight: 300; margin-top: 14px; text-align: center;
}
.landing-root .otp-sent {
  margin-top: 22px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(31,138,91,0.10); border: 1px solid rgba(31,138,91,0.25);
  display: flex; gap: 10px; align-items: flex-start;
}
.landing-root .otp-sent .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1F8A5B; margin-top: 6px; }
.landing-root .otp-sent span:last-child { font-size: 13.5px; line-height: 1.5; color: #1F6E4C; font-weight: 400; }
.landing-root .otp-sent strong { font-weight: 600; }
.landing-root .otp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.landing-root .otp-grid input {
  width: 100%; padding: 14px 0; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 20px; font-weight: 600; color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.landing-root .otp-grid input:focus { outline: none; border-color: var(--wm-azul-oscuro); box-shadow: 0 0 0 4px rgba(45,51,78,0.07); }
.landing-root .auth-form .btn-block { width: 100%; justify-content: center; }
.landing-root .auth-link-center { text-align: center; margin-top: 14px; }
.landing-root .auth-link-center a,
.landing-root .auth-link-center button { font-size: 14px; color: var(--fg-muted); background: none; border: 0; cursor: pointer; font-family: inherit; }
.landing-root .auth-link-center a:hover,
.landing-root .auth-link-center button:hover { color: var(--wm-rojo); }

/* ---------- Panel personal: shell ---------- */
.landing-root .pp { min-height: 100vh; background: #F3F6F9; }
.landing-root .pp-topbar { background: #fff; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 50; }
.landing-root .pp-topbar__inner { width: min(1180px, 92vw); margin: 0 auto; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing-root .pp-brand { display: flex; align-items: center; gap: 14px; }
.landing-root .pp-brand img { height: 26px; width: auto; }
.landing-root .pp-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-soft); border-left: 1px solid var(--line); padding-left: 14px; }
.landing-root .pp-user { display: flex; align-items: center; gap: 14px; }
.landing-root .pp-user__id { display: flex; align-items: center; gap: 10px; }
.landing-root .pp-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--wm-gris); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--fg); }
.landing-root .pp-user__name { font-size: 14px; font-weight: 500; color: var(--fg); }
.landing-root .pp-logout { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--fg); font-size: 13.5px; font-weight: 500; }
.landing-root .pp-logout:hover { border-color: var(--fg); }

.landing-root .pp-layout { width: min(1240px, 92vw); margin: 0 auto; padding: 40px 0 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.landing-root .pp-side { flex: 0 0 220px; position: sticky; top: 98px; }
.landing-root .pp-nav { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 12px; display: grid; gap: 4px; }
.landing-root .pp-nav a { display: block; padding: 11px 14px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 500; color: var(--fg-muted); }
.landing-root .pp-nav a:hover { background: #F3F6F9; color: var(--fg); }
.landing-root .pp-nav a.is-active { background: var(--wm-azul-oscuro); color: #fff; }
.landing-root .pp-pedir { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 12px 18px; border-radius: var(--r-pill); background: var(--wm-rojo); color: #fff; font-size: 14px; font-weight: 500; width: 100%; justify-content: center; }
.landing-root .pp-pedir:hover { background: var(--wm-rojo-700); }
.landing-root .pp-main { flex: 1 1 520px; min-width: 0; }

.landing-root .pp-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wm-rojo); }
.landing-root .pp-main h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.028em; line-height: 1.06; margin: 12px 0 0; }
.landing-root .pp-main h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.1; margin: 12px 0 0; }
.landing-root .pp-sub { font-size: 16px; line-height: 1.55; color: var(--fg-muted); font-weight: 300; margin: 8px 0 0; }
.landing-root .pp-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }

/* Tarjetas de estadística */
.landing-root .pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.landing-root .pp-stat { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 24px; }
.landing-root .pp-stat__num { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.landing-root .pp-stat__num--rojo { color: var(--wm-rojo); }
.landing-root .pp-stat__num--sm { font-size: 22px; margin-top: 2px; }
.landing-root .pp-stat__label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-soft); margin-top: 4px; }
.landing-root .pp-stat__note { font-size: 13px; color: var(--fg-muted); font-weight: 300; margin-top: 4px; }

/* Panel/tarjeta blanca genérica */
.landing-root .pp-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; margin-top: 20px; }
.landing-root .pp-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.landing-root .pp-list { display: grid; gap: 10px; margin-top: 18px; }

/* Fila de solicitud */
.landing-root .pp-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px; }
.landing-root .pp-row__title { font-size: 15px; font-weight: 600; color: var(--fg); }
.landing-root .pp-row__meta { font-size: 13px; color: var(--fg-soft); font-weight: 300; margin-top: 3px; }
.landing-root .pp-row__status { font-size: 12.5px; font-weight: 500; color: var(--fg-muted); }

/* Chips de filtro */
.landing-root .pp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.landing-root .pp-chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--fg-muted); font-size: 13px; font-weight: 500; }
.landing-root .pp-chip:hover { border-color: var(--fg); color: var(--fg); }
.landing-root .pp-chip.is-active { background: var(--wm-azul-oscuro); border-color: var(--wm-azul-oscuro); color: #fff; }

/* Grupo de resultados (Mis exámenes) */
.landing-root .pp-groups { display: grid; gap: 16px; }
.landing-root .pp-group { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.landing-root .pp-group__head { padding: 18px 24px; background: #F3F6F9; border-bottom: 1px solid var(--line-soft); }
.landing-root .pp-group__title { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.landing-root .pp-group__meta { font-size: 12.5px; color: var(--fg-soft); font-weight: 300; margin-top: 3px; }
.landing-root .pp-exam { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.landing-root .pp-exam:last-child { border-bottom: 0; }
.landing-root .pp-exam__name { font-size: 15px; font-weight: 600; color: var(--fg); }
.landing-root .pp-exam__meta { font-size: 13px; color: var(--fg-soft); font-weight: 300; margin-top: 3px; }
.landing-root .pp-pdf { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--fg); font-size: 13px; font-weight: 500; }
.landing-root .pp-pdf:hover { border-color: var(--fg); }

/* Reevaluación: instrucción de Contraloría + subir antecedentes */
.landing-root .pp-reeval { flex-basis: 100%; margin: 14px 0 2px; padding: 16px 18px; border-radius: 14px; background: rgba(181,120,16,0.07); border: 1px solid rgba(181,120,16,0.28); }
.landing-root .pp-reeval__title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8A5B0E; }
.landing-root .pp-reeval__title .dot { width: 7px; height: 7px; border-radius: 50%; background: #B57810; }
.landing-root .pp-reeval p { font-size: 14px; line-height: 1.55; color: var(--fg-muted); font-weight: 300; margin: 10px 0 0; }
.landing-root .pp-reeval__req { font-size: 13.5px; color: var(--fg); font-weight: 500; margin-top: 8px; }
.landing-root .pp-aportes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.landing-root .pp-aportes li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1F6E4C; font-weight: 400; }
.landing-root .pp-aportes li svg { color: #1F8A5B; flex: none; }
.landing-root .pp-aportes .meta { color: var(--fg-soft); font-weight: 300; }
.landing-root .pp-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.landing-root .pp-upload input[type="file"] { font: inherit; font-size: 13px; color: var(--fg-muted); max-width: 100%; }
.landing-root .pp-upload input[type="file"]::file-selector-button { font: inherit; font-size: 13px; font-weight: 500; color: var(--fg); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.landing-root .pp-upload input[type="file"]::file-selector-button:hover { border-color: var(--fg); }
.landing-root .pp-upload button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--r-pill); background: var(--wm-rojo); color: #fff; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.landing-root .pp-upload button:hover { background: var(--wm-rojo-700); }
.landing-root .pp-flash { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.landing-root .pp-flash--ok { background: rgba(31,138,91,0.10); border: 1px solid rgba(31,138,91,0.25); color: #1F6E4C; }
.landing-root .pp-flash--error { background: rgba(204,45,59,0.08); border: 1px solid var(--wm-rojo); color: var(--wm-rojo-700); }

/* Badges de vigencia / estado */
.landing-root .pp-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; margin-top: 8px; }
.landing-root .pp-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.landing-root .pp-badge--ok { background: rgba(31,138,91,0.10); color: #1F6E4C; }
.landing-root .pp-badge--ok .dot { background: #1F8A5B; }
.landing-root .pp-badge--warn { background: rgba(181,120,16,0.10); color: #8A5B0E; }
.landing-root .pp-badge--warn .dot { background: #B57810; }
.landing-root .pp-badge--curso { background: rgba(204,45,59,0.08); color: var(--wm-rojo-700); }
.landing-root .pp-badge--curso .dot { background: var(--wm-rojo); }
.landing-root .pp-badge--muted { background: var(--wm-gris); color: var(--fg-muted); }
.landing-root .pp-badge--muted .dot { background: var(--fg-soft); }
.landing-root .pp-badge--nomargin { margin-top: 0; }

/* Tarjeta de solicitud (vista Solicitudes) */
.landing-root .pp-sol { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; }
.landing-root .pp-sol__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.landing-root .pp-sol__id { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); }
.landing-root .pp-sol__cargo { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); margin-top: 6px; }
.landing-root .pp-sol__meta { font-size: 14px; color: var(--fg-muted); font-weight: 300; margin-top: 4px; }
.landing-root .pp-sol__exams { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--fg-muted); font-weight: 300; }
.landing-root .pp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--wm-rojo); }
.landing-root .pp-link:hover { color: var(--wm-rojo-700); }

@media (max-width: 820px) {
  .landing-root .pp-side { flex-basis: 100%; position: static; }
  .landing-root .pp-nav { grid-auto-flow: column; overflow-x: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .landing-root .hero-grid { grid-template-columns: 1fr; }
  .landing-root .featured-grid { grid-template-columns: 1fr; }
  .landing-root .process-steps { grid-template-columns: 1fr 1fr; }
  .landing-root .sec-head { flex-direction: column; align-items: start; }
  .landing-root .footer-grid { grid-template-columns: 1fr 1fr; }
  .landing-root .site-nav { display: none; }
}
@media (max-width: 640px) {
  .landing-root .process-steps { grid-template-columns: 1fr; }
  .landing-root .footer-grid { grid-template-columns: 1fr; }
  .landing-root .hero-meta { flex-wrap: wrap; gap: 24px; }
}
