/* brand_id: 2f5c220a-502f-41ec-8444-9b1430ee145d
   Hojas del generador de CV (assets/js/cv-render.js): 4 plantillas en tamaño carta (816 x 1056 px a 96 ppp).
   La misma hoja se ve en la vista previa, se imprime a PDF en el navegador del candidato y la renderiza el VPS
   para adjuntarla en Twenty (ops/scripts/lmr-cv-pdf.py). Todas las medidas de letra escalan con --cv-scale. */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/raleway-latin-700-normal.woff2") format("woff2"); }

.cv {
  --cv-ink: #222121; --cv-muted: #55544F; --cv-line: #DEDCD6; --cv-pad-x: 52px; --cv-pad-y: 46px;
  --cv-accent: #B07F12; --cv-soft: #FBF3DF; --cv-scale: 1;
  box-sizing: border-box; position: relative; width: 816px; min-height: 1056px; margin: 0; padding: var(--cv-pad-y) var(--cv-pad-x) 34px;
  background: #fff; color: var(--cv-ink); font-family: "Raleway", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: calc(12.5px * var(--cv-scale)); line-height: 1.45; text-align: left; font-variant-numeric: lining-nums;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; isolation: isolate;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; }
/* Reinicio con la especificidad de una clase: gana a los estilos generales del sitio (h1, h2, p) y pierde con los de la hoja. */
.cv :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; color: inherit; font-family: inherit; text-transform: none; letter-spacing: normal; }
.cv ul { list-style: none; }
.cv-ph { color: #A9A7A0; }

/* ---------- encabezado ---------- */
.cv-head { display: flex; align-items: center; gap: 22px; }
.cv-head__id { min-width: 0; flex: 1; }
.cv-name { font-size: 2.35em; line-height: 1.08; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cv-headline { margin-top: .3em; font-size: 1.18em; font-weight: 600; color: var(--cv-accent); overflow-wrap: anywhere; }
.cv-contact { display: flex; flex-wrap: wrap; gap: .25em 0; margin-top: .75em; color: var(--cv-muted); font-size: .94em; }
.cv-contact li { overflow-wrap: anywhere; }
.cv-contact li:not(:last-child)::after { content: "·"; margin: 0 .6em; color: var(--cv-line); }
.cv-photo { display: block; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- secciones ---------- */
.cv-body { margin-top: 26px; }
.cv-body--split { display: grid; gap: 34px; }
.cv-main, .cv-side { min-width: 0; }
.cv-sec + .cv-sec { margin-top: 1.55em; }
.cv-sec__t { margin-bottom: .7em; padding-bottom: .35em; border-bottom: 1.5px solid var(--cv-accent); font-size: .86em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cv-accent); }
.cv-summary { white-space: pre-line; overflow-wrap: anywhere; }
.cv-edu, .cv-job li, .cv-list li { break-inside: avoid; }
.cv-job__top, .cv-job__co, .cv-sec__t { break-after: avoid; }
.cv-job + .cv-job, .cv-edu + .cv-edu { margin-top: 1.05em; }
.cv-job__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-job__role { font-size: 1.08em; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cv-job__when { flex: none; font-size: .9em; font-weight: 600; color: var(--cv-muted); white-space: nowrap; }
.cv-job__co { margin-top: .1em; font-weight: 600; color: var(--cv-muted); overflow-wrap: anywhere; }
.cv-job__list { margin-top: .4em !important; }
.cv-job__list li, .cv-list li { position: relative; padding-left: 1.05em; overflow-wrap: anywhere; }
.cv-job__list li + li, .cv-list li + li { margin-top: .22em; }
.cv-job__list li::before, .cv-list li::before { content: ""; position: absolute; left: .1em; top: .62em; width: .36em; height: .36em; border-radius: 50%; background: var(--cv-accent); }
.cv-list--plain li { padding-left: 0; }
.cv-list--plain li::before { display: none; }
.cv-chips { display: flex; flex-wrap: wrap; gap: .4em; }
.cv-chips li { padding: .22em .7em; border-radius: 999px; background: var(--cv-soft); font-size: .94em; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- pie ---------- */
.cv-credit { position: absolute; right: var(--cv-pad-x); bottom: 14px; font-size: 7px; letter-spacing: .04em; color: #B4B2AB; }

/* ---------- Clásica ATS: una columna, sin foto ni color de fondo ---------- */
.cv--clasica .cv-head { display: block; text-align: center; padding-bottom: 16px; border-bottom: 1.5px solid #222121; }
.cv--clasica .cv-headline { color: var(--cv-muted); }
.cv--clasica .cv-contact { justify-content: center; }
.cv--clasica .cv-sec__t { border-bottom-width: 1px; border-bottom-color: var(--cv-line); }
.cv--clasica .cv-chips { display: block; }
.cv--clasica .cv-chips li { display: inline; padding: 0; background: none; font-weight: 400; }
.cv--clasica .cv-chips li:not(:last-child)::after { content: ", "; }

/* ---------- Moderna: barra lateral de color suave a la izquierda ---------- */
/* Barras de color de toda la altura: position fixed se repite en cada hoja impresa (también en la última, aunque quede
   corta). En la vista previa el contenedor escalado las vuelve relativas a la hoja. */
.cv--moderna { padding-left: 0; }
.cv--moderna::before { content: ""; position: fixed; left: 0; top: 0; bottom: 0; width: 252px; background: var(--cv-soft); z-index: -1; }
.cv--moderna .cv-body { margin-top: 0; }
.cv--moderna .cv-body--split { grid-template-columns: 252px 1fr; }
.cv--moderna .cv-side { padding: 0 26px 0 34px; }
.cv--moderna .cv-side .cv-photo { width: 148px; height: 148px; margin: 0 auto 1.8em; box-shadow: 0 0 0 4px #fff; }
.cv--moderna .cv-side .cv-sec__t { border-bottom: 0; padding-bottom: 0; margin-bottom: .55em; }
.cv--moderna .cv-side .cv-list--plain li { overflow-wrap: anywhere; }
.cv--moderna .cv-side .cv-list--plain li + li { margin-top: .4em; }
.cv--moderna .cv-side .cv-chips li { background: #fff; }
.cv--moderna .cv-head { margin-bottom: 26px; }
.cv--moderna .cv-name { font-size: 2.2em; }

/* ---------- Ejecutiva: banda oscura arriba, títulos con serifa y columna derecha angosta ---------- */
.cv--ejecutiva .cv-head { margin: calc(-1 * var(--cv-pad-y)) calc(-1 * var(--cv-pad-x)) 0; padding: 40px var(--cv-pad-x) 32px; background: #222121; color: #fff; flex-direction: row-reverse; }
.cv--ejecutiva .cv-name { color: #fff; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 2.5em; letter-spacing: 0; }
.cv--ejecutiva .cv-headline { color: #fff; opacity: .85; font-weight: 400; letter-spacing: .02em; }
.cv--ejecutiva .cv-contact { color: #D8D6D0; }
.cv--ejecutiva .cv-contact li:not(:last-child)::after { color: #77756F; }
.cv--ejecutiva .cv-head .cv-photo { width: 112px; height: 112px; border-radius: 6px; box-shadow: 0 0 0 3px var(--cv-accent); }
.cv--ejecutiva .cv-head::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--cv-accent); }
.cv--ejecutiva .cv-body { margin-top: 30px; }
.cv--ejecutiva .cv-body--split { grid-template-columns: 1fr 200px; }
.cv--ejecutiva .cv-side { padding-left: 24px; border-left: 1px solid var(--cv-line); }
.cv--ejecutiva .cv-sec__t { font-family: Georgia, "Times New Roman", serif; text-transform: none; letter-spacing: 0; font-size: 1.12em; font-weight: 700; color: #222121; border-bottom-color: var(--cv-accent); }
.cv--ejecutiva .cv-side .cv-chips { display: block; }
.cv--ejecutiva .cv-side .cv-chips li { display: block; padding: 0; background: none; font-weight: 400; }
.cv--ejecutiva .cv-side .cv-chips li + li { margin-top: .3em; }

/* ---------- Operativa: compacta, en una hoja, licencias y disponibilidad al frente ---------- */
.cv--operativa { --cv-pad-y: 38px; font-size: calc(12.5px * var(--cv-scale)); }
.cv--operativa::before { content: ""; position: fixed; left: 0; top: 0; bottom: 0; width: 8px; background: var(--cv-accent); z-index: -1; }
.cv--operativa .cv-head { gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--cv-line); }
.cv--operativa .cv-photo { width: 84px; height: 84px; border-radius: 8px; }
.cv--operativa .cv-name { font-size: 2.1em; }
.cv--operativa .cv-body { margin-top: 16px; }
.cv--operativa .cv-sec + .cv-sec { margin-top: 1.25em; }
.cv--operativa .cv-sec--highlights { display: grid; gap: .35em; padding: .8em 1em; border-radius: 6px; background: var(--cv-soft); }
.cv--operativa .cv-hl b { color: var(--cv-accent); }

/* ---------- impresión: solo la hoja, tamaño carta sin márgenes del navegador ---------- */
@page { size: letter; margin: 0; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .cv { min-height: 1056px; }
}
