/*
 * El portal del Programa de Pasantías CQ (pasantias.cq.do), v1.196.0.
 * Estilo del documento «Programa de Pasantías CQ»: lienzo gris, tarjetas
 * blancas, el naranja CQ de acento, Archivo para títulos y Manrope para el
 * texto. Las fuentes van en el propio servidor (OFL, ver public/fonts/pasantias).
 */
@font-face { font-family:'Archivo'; src:url('/fonts/pasantias/archivo.woff2') format('woff2'); font-weight:600 800; font-style:normal; font-display:swap; }
@font-face { font-family:'Manrope'; src:url('/fonts/pasantias/manrope.woff2') format('woff2'); font-weight:400 700; font-style:normal; font-display:swap; }
:root {
  --ink:#26272B; --ink-soft:#45464A; --ink-muted:#6E7076; --ink-subtle:#9A9CA1;
  --canvas:#F2F3F5; --canvas-deep:#E4E6EA; --surface:#FFFFFF;
  --line:#EAEBED; --line-strong:#D5D7DC; --orange:#EF8A24; --orange-ink:#B45F0C; --orange-soft:#FCEBD6; --on-orange:#3A2208;
  --ok:#1F7A4D; --ok-soft:#E3F2EA; --warn:#8A5A00; --warn-soft:#FDF3DC;
  --f-display:'Archivo','Manrope',system-ui,sans-serif;
  --f-body:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--canvas); color:var(--ink); font-family:var(--f-body); font-size:15px; line-height:1.6; }
h1,h2,h3 { font-family:var(--f-display); margin:0; text-wrap:balance; color:var(--ink); }
h2 { font-size:21px; font-weight:800; letter-spacing:-.01em; }
h3 { font-size:15px; font-weight:700; }
p { margin:0; }
.eyebrow { font-family:var(--f-display); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-muted); }
.muted { color:var(--ink-muted); }
.small { font-size:13px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:14px; }
.stripe { height:6px; background:var(--orange); }
.logo-chip { display:inline-flex; background:#fff; border-radius:12px; padding:8px 10px; border:1px solid var(--line); }
.logo-chip img { height:46px; width:auto; display:block; }
.link { color:var(--orange-ink); font-weight:700; text-decoration:none; }
.note { background:var(--orange-soft); border-radius:12px; padding:12px 14px; font-size:13.5px; color:var(--ink); }
.note b { font-family:var(--f-display); }
.pill { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; background:var(--canvas-deep); color:var(--ink-soft); white-space:nowrap; }
.pill.ok { background:var(--ok-soft); color:var(--ok); }
.pill.or { background:var(--orange-soft); color:var(--orange-ink); }

/* Portada */
.cover { background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.cover-top { padding:24px 28px 26px; display:flex; flex-direction:column; gap:18px; }
.cover h1 { font-size:44px; font-weight:800; letter-spacing:-.025em; line-height:1.05; }
.cover .lead { font-size:17px; color:var(--ink-soft); max-width:60ch; }
.cover-meta { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); background:var(--canvas); }
.cover-meta div { padding:12px 28px; display:flex; flex-direction:column; gap:2px; }
.cover-meta b { font-family:var(--f-display); font-size:14px; }

/* Líneas */
.routes { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px,1fr)); gap:12px; }
.route { border:1px solid var(--line); border-radius:12px; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--canvas); min-width:0; }
.route .target { font-size:13px; color:var(--ink-muted); }
.route .target b { color:var(--ink); font-weight:700; }
.route .lbl { font-family:var(--f-display); font-weight:700; font-size:10.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--orange-ink); }
.route ul { margin:0; padding-left:16px; font-size:13.5px; display:flex; flex-direction:column; gap:4px; }
.route ul li::marker { color:var(--orange); }

/* Pasos del proceso */
ol.steps { margin:0; padding:0; list-style:none; counter-reset:s; display:flex; flex-direction:column; gap:10px; }
ol.steps li { counter-increment:s; display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:start; }
ol.steps li::before { content:counter(s); font-family:var(--f-display); font-weight:800; font-size:13px; width:26px; height:26px; border-radius:8px; background:var(--canvas-deep); color:var(--ink); display:flex; align-items:center; justify-content:center; }
ol.steps li > div { min-width:0; font-size:14px; }
ol.steps b { font-family:var(--f-display); }

ul.clean { margin:0; padding-left:18px; display:flex; flex-direction:column; gap:6px; }
ul.clean li::marker { color:var(--orange); }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:14px 20px; }
.grid2 > div { display:flex; flex-direction:column; gap:6px; min-width:0; }

/* Formulario */
label.lbl { display:block; font-size:13px; font-weight:600; color:var(--ink-soft); margin-bottom:6px; }
.field { width:100%; border:1px solid var(--line-strong); border-radius:10px; padding:11px 12px; font:500 15px var(--f-body); color:var(--ink); background:#fff; }
textarea.field { min-height:110px; resize:vertical; line-height:1.5; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:10px; padding:12px 18px; font:700 15px var(--f-display); border:1px solid transparent; cursor:pointer; min-height:46px; }
.btn-primary { background:var(--orange); color:var(--on-orange); }
.btn-primary[disabled] { opacity:.45; cursor:not-allowed; }
.btn-ghost { background:#fff; color:var(--ink); border-color:var(--line-strong); }
.btn-sm { padding:7px 12px; min-height:36px; font-size:13.5px; }

/* Elegir (radio en tarjeta) */
.choice { display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line-strong); border-radius:12px; padding:14px; background:#fff; }
.choice.on { border:2px solid var(--orange); background:var(--orange-soft); padding:13px; }
.choice .dot { flex:none; width:20px; height:20px; border-radius:50%; border:2px solid var(--line-strong); margin-top:2px; background:#fff; }
.choice.on .dot { border-color:var(--orange-ink); box-shadow: inset 0 0 0 4px #fff; background:var(--orange-ink); }
.seg { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line-strong); border-radius:10px; overflow:hidden; }
.seg span { text-align:center; padding:10px; font-weight:700; font-family:var(--f-display); font-size:14px; color:var(--ink-soft); background:#fff; }
.seg span.on { background:var(--ink); color:#fff; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { border-radius:999px; padding:7px 12px; font-size:13.5px; font-weight:600; border:1px solid var(--line-strong); color:var(--ink-soft); background:#fff; }
.chip.on { background:var(--orange-soft); color:var(--orange-ink); border-color:#F2B97E; }

/* Progreso */
.progress { display:flex; gap:4px; }
.progress i { flex:1; height:6px; border-radius:9px; background:var(--canvas-deep); }
.progress i.done { background:#F6C08A; }
.progress i.now { background:var(--orange); }

/* Documentos */
.doc { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; border-top:1px solid var(--line); }
.doc:first-of-type { border-top:0; }
.doc p.t { font-weight:700; font-family:var(--f-display); font-size:14.5px; }
.doc p.s { font-size:12.5px; color:var(--ink-muted); }

footer { font-size:12px; color:var(--ink-muted); display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:4px 4px 0; }

/* Marco */
.wrap { max-width:1140px; margin:0 auto; padding:24px 32px 40px; display:flex; flex-direction:column; gap:16px; }
.wrap.angosto { max-width:560px; }
.portada-grid { display:grid; grid-template-columns:minmax(0,1fr) 370px; gap:16px; align-items:start; }
.portada-grid > .lado { position:sticky; top:16px; display:flex; flex-direction:column; gap:16px; }
.columna { display:flex; flex-direction:column; gap:16px; min-width:0; }
.barra { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.barra .logo-chip { padding:5px 7px; }
.barra .logo-chip img { height:30px; }
.barra form { display:inline; }
.boton-link { background:none; border:0; padding:0; font:inherit; color:var(--orange-ink); font-weight:700; cursor:pointer; }
.tarjeta { background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.tarjeta > .cuerpo { padding:22px 22px; display:flex; flex-direction:column; gap:16px; }
.botones { display:grid; grid-template-columns:1fr 2fr; gap:10px; }
.botones.solo { grid-template-columns:1fr; }
.btn:focus-visible, .field:focus-visible, .boton-link:focus-visible, .link:focus-visible { outline:3px solid var(--orange); outline-offset:2px; }
.field:focus { border-color:var(--orange); box-shadow:0 0 0 3px var(--orange-soft); outline:none; }
.field[readonly], .field.fijo { background:var(--canvas); color:var(--ink-muted); }
select.field { appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--ink-muted) 50%),linear-gradient(135deg,var(--ink-muted) 50%,transparent 50%); background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%; background-size:5px 5px; background-repeat:no-repeat; padding-right:34px; }
.error { color:#B42318; font-size:13px; font-weight:600; margin-top:6px; }
.field.con-error { border-color:#E5A29A; }
.aviso { border-radius:12px; padding:12px 14px; font-size:14px; }
.aviso.ok { background:var(--ok-soft); color:var(--ok); }
.aviso.falta { background:var(--warn-soft); color:var(--warn); }
.aviso.prueba { background:#EEF1FF; color:#2D3A8C; border:1px solid #C9D1FF; }
.btn-primary:hover { background:#E57F17; }
.btn-ghost:hover { background:var(--canvas); }
.btn[wire\:loading], .btn:disabled { opacity:.6; }
.solo-chico { display:none; }
.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; }

/* Controles: chips, sí/no y tarjetas de elegir con su casilla de verdad */
.chip { cursor:pointer; display:inline-flex; align-items:center; gap:5px; }
.chip:has(input:checked) { background:var(--orange-soft); color:var(--orange-ink); border-color:#F2B97E; }
.chip:has(input:focus-visible), .seg label:has(input:focus-visible), .choice:has(input:focus-visible) { outline:3px solid var(--orange); outline-offset:2px; }
.chip .marca { display:none; }
.chip:has(input:checked) .marca { display:inline; }
.seg label { text-align:center; padding:10px; font-weight:700; font-family:var(--f-display); font-size:14px; color:var(--ink-soft); background:#fff; cursor:pointer; }
.seg label + label { border-left:1px solid var(--line-strong); }
.seg label:has(input:checked) { background:var(--ink); color:#fff; }
.choice { cursor:pointer; }
.choice:has(input:checked) { border:2px solid var(--orange); background:var(--orange-soft); padding:13px; }
.choice:has(input:checked) .dot { border-color:var(--orange-ink); box-shadow:inset 0 0 0 4px #fff; background:var(--orange-ink); }
.choice .titulo { font-family:var(--f-display); font-weight:700; }
.check-row { display:flex; gap:10px; align-items:flex-start; font-size:14px; cursor:pointer; }
.check-row input { flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--orange-ink); }

/* Buscador de universidades */
.combo { position:relative; }
.combo-btn { display:flex; justify-content:space-between; align-items:center; gap:8px; text-align:left; cursor:pointer; }
.combo-panel { position:absolute; z-index:20; left:0; right:0; top:calc(100% + 6px); background:#fff; border:1px solid var(--line-strong); border-radius:12px; box-shadow:0 12px 32px rgba(38,39,43,.14); padding:10px; display:flex; flex-direction:column; gap:8px; }
.combo-panel ul { list-style:none; margin:0; padding:0; max-height:260px; overflow-y:auto; }
.combo-panel button { width:100%; text-align:left; background:none; border:0; border-radius:8px; padding:9px 10px; font:500 14.5px var(--f-body); color:var(--ink); cursor:pointer; }
.combo-panel button:hover, .combo-panel button:focus-visible { background:var(--canvas); outline:none; }
.combo-panel button b { font-family:var(--f-display); margin-right:6px; }

/* Documentos */
.doc .acciones { display:flex; align-items:center; gap:8px; flex:none; }
.subir { position:relative; overflow:hidden; }
.subir input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; font-size:0; }
.doc .archivo { display:flex; flex-wrap:wrap; gap:4px 8px; font-size:12.5px; color:var(--ink-muted); }
.doc .archivo span { overflow-wrap:anywhere; }

/* Resumen, línea de tiempo y estado */
.resumen { border:1px solid var(--line); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:4px; }
.resumen .top { display:flex; justify-content:space-between; align-items:center; }
.resumen p { font-size:14px; }
.tl { display:flex; flex-direction:column; gap:0; }
.tl-item { display:grid; grid-template-columns:26px 1fr; gap:10px; }
.tl-dot { width:24px; height:24px; border-radius:50%; border:2px solid var(--line-strong); background:#fff; display:flex; align-items:center; justify-content:center; color:#fff; }
.tl-dot.hecho { background:var(--ok); border-color:var(--ok); }
.tl-dot.actual { border-color:var(--orange); box-shadow:inset 0 0 0 5px #fff; background:var(--orange); }
.tl-line { width:2px; background:var(--line-strong); margin:2px auto; min-height:22px; flex:1; }
.tl-txt { padding-bottom:14px; }
.tl-txt b { font-family:var(--f-display); font-size:14.5px; }
.tl-txt p { font-size:13px; color:var(--ink-muted); }
.icono { width:64px; height:64px; border-radius:50%; background:var(--orange-soft); color:var(--orange-ink); display:flex; align-items:center; justify-content:center; }
.icono.ok { background:var(--ok-soft); color:var(--ok); }
.contador { text-align:right; margin-top:4px; }

@media (max-width: 860px) {
  .solo-grande { display:none; }
  .solo-chico { display:inline; }
  .wrap { padding:14px 16px 28px; gap:14px; }
  .portada-grid { grid-template-columns:1fr; }
  .portada-grid > .lado { position:static; order:-1; }
  .cover-top { padding:18px 18px 20px; gap:16px; }
  .cover h1 { font-size:32px; }
  .cover .lead { font-size:15.5px; }
  .cover-meta { grid-template-columns:1fr 1fr; }
  .cover-meta div { padding:10px 18px; }
  .card { padding:18px; }
  .tarjeta > .cuerpo { padding:18px 16px; }
  .logo-chip img { height:38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; animation:none !important; } }
[x-cloak] { display:none !important; }
