/* Plantillas de currículum. Tamaño A4 real para que la vista previa y el PDF coincidan. */
.cv {
  --accent: #1f5fbf;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #dfe3ea;
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  padding: 16mm 16mm 14mm;
  background: #fff;
  color: var(--ink);
  font: 10pt/1.45 "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; }
.cv h1, .cv h2, .cv h3, .cv p, .cv ul { margin: 0; padding: 0; }
.cv ul { list-style: none; }
.cv h1 { font-size: 22pt; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.cv-role { font-size: 12pt; color: var(--accent); font-weight: 600; margin-top: 2pt !important; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 3pt 12pt; margin-top: 6pt !important; color: var(--muted); font-size: 9pt; }
.cv-contact li { display: flex; align-items: center; gap: 4pt; word-break: break-word; }
.cv-ic { color: var(--accent); font-size: 9pt; }
.cv-photo { width: 30mm; height: 30mm; object-fit: cover; border-radius: 50%; flex: none; }
.cv-head { display: flex; align-items: center; gap: 6mm; }
.cv-sec { margin-top: 6mm; break-inside: avoid-page; }
.cv-sec h2 {
  font-size: 10.5pt; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
  padding-bottom: 2pt; margin-bottom: 3mm !important; border-bottom: 1.2pt solid var(--accent);
}
.cv-perfil { color: var(--ink); }
.cv-item { margin-bottom: 3.5mm; break-inside: avoid; }
.cv-item:last-child { margin-bottom: 0; }
.cv-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; }
.cv-item h3 { font-size: 10.5pt; font-weight: 650; }
.cv-date { color: var(--muted); font-size: 9pt; white-space: nowrap; }
.cv-meta { color: var(--muted); font-size: 9.5pt; }
.cv-item ul, .cv-list { margin-top: 1.5mm !important; }
.cv-item ul li, .cv-list li { position: relative; padding-left: 10pt; margin-bottom: 1pt; }
.cv-item ul li::before, .cv-list li::before {
  content: ""; position: absolute; left: 1pt; top: 0.62em; width: 4pt; height: 4pt; border-radius: 50%; background: var(--accent);
}
.cv-tags { display: flex; flex-wrap: wrap; gap: 4pt; }
.cv-tags li {
  padding: 2pt 7pt; border-radius: 10pt; font-size: 9pt;
  background: var(--accent-soft, #eef2fb); color: var(--ink);
}
.cv-langs li { display: flex; justify-content: space-between; gap: 6pt; margin-bottom: 2pt; }
.cv-langs span { color: var(--muted); }

/* Clásica */
.tpl-clasica .cv-head { flex-direction: column; text-align: center; gap: 3mm; padding-bottom: 4mm; border-bottom: 0.6pt solid var(--line); }
.tpl-clasica .cv-contact { justify-content: center; }
.tpl-clasica .cv-sec h2 { border-bottom-width: 0.8pt; }

/* Moderna */
.tpl-moderna { display: grid; grid-template-columns: 66mm 1fr; padding: 0; }
.tpl-moderna .cv-side { background: var(--accent); color: #fff; padding: 14mm 7mm; }
.tpl-moderna .cv-side .cv-photo { display: block; width: 36mm; height: 36mm; margin: 0 auto 2mm; border: 2pt solid rgba(255,255,255,.7); }
.tpl-moderna .cv-side .cv-sec h2 { color: #fff; border-bottom-color: rgba(255,255,255,.55); }
.tpl-moderna .cv-side .cv-contact { flex-direction: column; color: #fff; margin: 0 !important; }
.tpl-moderna .cv-side .cv-ic { color: #fff; }
.tpl-moderna .cv-side .cv-tags li { background: rgba(255,255,255,.18); color: #fff; }
.tpl-moderna .cv-side .cv-langs span { color: rgba(255,255,255,.8); }
.tpl-moderna .cv-side .cv-list li::before { background: #fff; }
.tpl-moderna .cv-main { padding: 14mm 12mm 12mm 10mm; }
.tpl-moderna .cv-main .cv-head { padding-bottom: 1mm; }
.tpl-moderna .cv-main h1 { font-size: 24pt; }

/* Minimal */
.tpl-minimal { padding: 18mm 20mm; }
.tpl-minimal h1 { font-weight: 300; font-size: 26pt; }
.tpl-minimal .cv-role { color: var(--muted); font-weight: 400; }
.tpl-minimal .cv-sec h2 { border: 0; color: var(--ink); font-size: 9pt; letter-spacing: 0.18em; margin-bottom: 3mm !important; }
.tpl-minimal .cv-sec h2::after { content: ""; display: block; width: 10mm; height: 1.5pt; background: var(--accent); margin-top: 2pt; }
.tpl-minimal .cv-row { display: grid; grid-template-columns: 34mm 1fr; gap: 4mm; }
.tpl-minimal .cv-row .cv-date { white-space: normal; padding-top: 1pt; }
.tpl-minimal .cv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.tpl-minimal .cv-tags li { background: none; border: 0.6pt solid var(--line); }

/* Compacta */
.tpl-compacta { padding: 0 0 12mm; font-size: 9.5pt; }
.tpl-compacta .cv-head { background: var(--accent-soft, #eef2fb); padding: 10mm 14mm; border-bottom: 2pt solid var(--accent); }
.tpl-compacta .cv-photo { width: 26mm; height: 26mm; border-radius: 4pt; }
.tpl-compacta .cv-body { display: grid; grid-template-columns: 1fr 58mm; gap: 8mm; padding: 0 14mm; }
.tpl-compacta .cv-sec { margin-top: 5mm; }
.tpl-compacta .cv-sec h2 { border-bottom-width: 0.6pt; font-size: 9.5pt; }

/* ===== Plantillas Pro ===== */
.cv-body, .cv-cols { display: grid; }

/* Impacto */
.tpl-impacto { padding: 0 0 12mm; }
.tpl-impacto .cv-band { display: flex; align-items: center; gap: 8mm; padding: 13mm 14mm 11mm; color: #fff; background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%); }
.tpl-impacto h1 { font-size: 30pt; font-weight: 800; letter-spacing: -0.02em; }
.tpl-impacto .cv-role { color: #fff; opacity: .9; font-size: 13pt; }
.tpl-impacto .cv-contact { color: #fff; margin-top: 4mm !important; gap: 4pt 6pt; }
.tpl-impacto .cv-contact li { background: rgba(255,255,255,.16); border-radius: 10pt; padding: 2pt 8pt; }
.tpl-impacto .cv-ic { color: #fff; }
.tpl-impacto .cv-photo { width: 34mm; height: 34mm; border-radius: 6mm; border: 2.5pt solid rgba(255,255,255,.85); order: 2; margin-left: auto; }
.tpl-impacto .cv-body { grid-template-columns: 1fr 58mm; gap: 9mm; padding: 0 14mm; }
.tpl-impacto .cv-sec h2 { border: 0; display: inline-block; padding: 0 0 1pt; border-bottom: 3pt solid var(--accent); color: var(--ink); }
.tpl-impacto .cv-aside .cv-sec { background: var(--accent-soft); border-radius: 4mm; padding: 4mm; }

/* Ejecutiva */
.tpl-ejecutiva { padding: 0 0 12mm; font-family: Georgia, "Times New Roman", serif; }
.tpl-ejecutiva .cv-band { display: flex; align-items: center; justify-content: space-between; gap: 8mm; background: #1d2433; color: #fff; padding: 12mm 14mm 10mm; border-bottom: 3pt solid var(--accent); }
.tpl-ejecutiva h1 { font-size: 26pt; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.tpl-ejecutiva .cv-role { color: #fff; opacity: .8; font-weight: 400; font-style: italic; letter-spacing: .05em; }
.tpl-ejecutiva .cv-photo { width: 28mm; height: 28mm; border: 2pt solid var(--accent); }
.tpl-ejecutiva .cv-contact-bar { background: #f3f4f7; padding: 3mm 14mm; }
.tpl-ejecutiva .cv-contact { margin: 0 !important; font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
.tpl-ejecutiva .cv-body { grid-template-columns: 1fr 56mm; gap: 9mm; padding: 0 14mm; }
.tpl-ejecutiva .cv-aside { border-left: 0.6pt solid var(--line); padding-left: 6mm; }
.tpl-ejecutiva .cv-sec h2 { font-size: 11pt; font-weight: 400; letter-spacing: .14em; color: #1d2433; border-bottom: 0.6pt solid var(--line); }
.tpl-ejecutiva .cv-sec h2::first-letter { color: var(--accent); }
.tpl-ejecutiva .cv-item h3 { font-weight: 700; }
.tpl-ejecutiva .cv-item ul, .tpl-ejecutiva .cv-list, .tpl-ejecutiva .cv-perfil, .tpl-ejecutiva .cv-tags { font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
.tpl-ejecutiva .cv-tags li { background: none; border: 0.6pt solid var(--line); border-radius: 2pt; }

/* Creativa */
.tpl-creativa { padding: 0 0 12mm; }
.tpl-creativa .cv-band { display: flex; align-items: center; justify-content: space-between; gap: 8mm; padding: 14mm 14mm 16mm; color: #fff; background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, var(--accent) 100%); border-radius: 0 0 0 18mm; }
.tpl-creativa h1 { font-size: 28pt; font-weight: 800; line-height: 1.05; }
.tpl-creativa .cv-role { color: #fff; font-size: 12.5pt; margin-top: 3pt !important; opacity: .92; }
.tpl-creativa .cv-photo { width: 40mm; height: 40mm; border: 3pt solid #fff; box-shadow: 0 3mm 8mm rgba(0,0,0,.18); margin-bottom: -14mm; }
.tpl-creativa .cv-contact-bar { padding: 4mm 14mm 0; }
.tpl-creativa .cv-contact { margin: 0 !important; }
.tpl-creativa .cv-body { padding: 0 14mm; }
.tpl-creativa .cv-cols { grid-template-columns: 1fr 1fr; gap: 8mm; }
.tpl-creativa .cv-sec h2 { display: inline-block; border: 0; background: var(--accent); color: #fff; padding: 1.5pt 9pt; border-radius: 10pt; font-size: 9.5pt; }
.tpl-creativa .cv-item { padding-left: 4mm; border-left: 1.5pt solid var(--accent-soft); }

/* Nocturna */
.tpl-nocturna { display: grid; grid-template-columns: 70mm 1fr; padding: 0; }
.tpl-nocturna .cv-side { background: #1b2030; color: #e6e8f0; padding: 14mm 7mm; }
.tpl-nocturna .cv-side .cv-photo { display: block; width: 38mm; height: 38mm; border-radius: 6mm; margin: 0 auto 6mm; border: 2pt solid var(--accent); }
.tpl-nocturna .cv-side h1 { color: #fff; font-size: 20pt; }
.tpl-nocturna .cv-side .cv-role { color: var(--accent-soft); font-weight: 500; }
.tpl-nocturna .cv-side .cv-id { padding-bottom: 2mm; }
.tpl-nocturna .cv-side .cv-sec h2 { color: #fff; border-bottom: 0; font-size: 9pt; letter-spacing: .16em; }
.tpl-nocturna .cv-side .cv-sec h2::after { content: ""; display: block; width: 9mm; height: 2pt; background: var(--accent); margin-top: 3pt; border-radius: 2pt; }
.tpl-nocturna .cv-side .cv-contact { flex-direction: column; color: #e6e8f0; margin: 0 !important; }
.tpl-nocturna .cv-side .cv-ic { color: var(--accent-soft); }
.tpl-nocturna .cv-side .cv-tags li { background: rgba(255,255,255,.08); color: #fff; border: 0.6pt solid rgba(255,255,255,.18); }
.tpl-nocturna .cv-side .cv-langs span { color: #aab0c4; }
.tpl-nocturna .cv-side .cv-list li::before { background: var(--accent-soft); }
.tpl-nocturna .cv-main { padding: 14mm 12mm 12mm 10mm; }
.tpl-nocturna .cv-main .cv-sec:first-child { margin-top: 0; }
.tpl-nocturna .cv-main .cv-sec h2 { border: 0; border-left: 3pt solid var(--accent); padding: 0 0 0 3mm; color: #1b2030; }

/* Cronología */
.tpl-cronologia h1 { font-size: 26pt; color: var(--accent); font-weight: 800; }
.tpl-cronologia .cv-role { color: var(--ink); }
.tpl-cronologia .cv-head { padding-bottom: 5mm; border-bottom: 0.6pt solid var(--line); }
.tpl-cronologia .cv-photo { border: 2pt solid var(--accent); }
.tpl-cronologia .cv-sec h2 { border: 0; }
.tpl-cronologia .cv-tl .cv-item { position: relative; padding-left: 9mm; margin-bottom: 0; padding-bottom: 4mm; border-left: 1.2pt solid var(--accent-soft); margin-left: 2mm; }
.tpl-cronologia .cv-tl .cv-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tpl-cronologia .cv-tl .cv-item::before { content: ""; position: absolute; left: -2.6mm; top: 0.4mm; width: 4.2mm; height: 4.2mm; border-radius: 50%; background: #fff; border: 1.6pt solid var(--accent); }
.tpl-cronologia .cv-tl .cv-item-head { flex-direction: column-reverse; align-items: flex-start; gap: 1pt; }
.tpl-cronologia .cv-tl .cv-date { display: inline-block; background: var(--accent); color: #fff; border-radius: 8pt; padding: 0.5pt 7pt; font-size: 8.5pt; font-weight: 600; }
.tpl-cronologia .cv-cols { grid-template-columns: 1fr 1fr; gap: 8mm; }

/* Elegante */
.tpl-elegante { font-family: Georgia, "Times New Roman", serif; padding: 18mm 20mm; }
.tpl-elegante .cv-head { flex-direction: column; text-align: center; gap: 3mm; padding-bottom: 5mm; border-bottom: 2.4pt double var(--accent); }
.tpl-elegante h1 { font-size: 25pt; font-weight: 400; text-transform: uppercase; letter-spacing: .22em; }
.tpl-elegante .cv-role { color: var(--accent); font-weight: 400; font-style: italic; letter-spacing: .06em; }
.tpl-elegante .cv-contact { justify-content: center; }
.tpl-elegante .cv-sec h2 { display: flex; align-items: center; gap: 4mm; border: 0; color: var(--ink); font-weight: 400; letter-spacing: .2em; font-size: 10pt; }
.tpl-elegante .cv-sec h2::before, .tpl-elegante .cv-sec h2::after { content: ""; flex: 1; height: 0.6pt; background: var(--accent); }
.tpl-elegante .cv-perfil { text-align: center; font-style: italic; }
.tpl-elegante .cv-date { font-style: italic; }
.tpl-elegante .cv-tags li { background: none; border-bottom: 0.6pt solid var(--accent); border-radius: 0; padding: 1pt 2pt; }
.tpl-elegante .cv-cols { grid-template-columns: 1fr 1fr; gap: 10mm; }

/* Geométrica */
.tpl-geometrica { padding: 0 0 12mm; }
.tpl-geometrica .cv-band { display: flex; align-items: center; justify-content: space-between; gap: 6mm; padding: 13mm 14mm 12mm; background: linear-gradient(112deg, var(--accent-dark) 0%, var(--accent) 62%, var(--accent-soft) 62.2%, var(--accent-soft) 100%); }
.tpl-geometrica .cv-id { color: #fff; max-width: 120mm; }
.tpl-geometrica h1 { font-size: 27pt; font-weight: 800; }
.tpl-geometrica .cv-role { color: #fff; opacity: .9; }
.tpl-geometrica .cv-contact { color: #fff; }
.tpl-geometrica .cv-ic { color: #fff; }
.tpl-geometrica .cv-photo { width: 36mm; height: 36mm; border: 3pt solid #fff; box-shadow: 0 2mm 6mm rgba(0,0,0,.15); margin-right: 4mm; }
.tpl-geometrica .cv-body { grid-template-columns: 1fr 56mm; gap: 9mm; padding: 0 14mm; }
.tpl-geometrica .cv-sec h2 { border: 0; display: flex; align-items: center; gap: 3mm; color: var(--ink); }
.tpl-geometrica .cv-sec h2::before { content: ""; width: 3mm; height: 3mm; background: var(--accent); transform: rotate(45deg); flex: none; }
.tpl-geometrica .cv-item ul li::before, .tpl-geometrica .cv-list li::before { border-radius: 0; transform: rotate(45deg); }

/* Suave */
.tpl-suave { background: var(--accent-soft); padding: 10mm; }
.tpl-suave .cv-card { background: #fff; border-radius: 5mm; padding: 5mm 6mm; margin-bottom: 5mm; break-inside: avoid; }
.tpl-suave .cv-card .cv-sec { margin-top: 0; }
.tpl-suave .cv-card-head .cv-head { gap: 6mm; }
.tpl-suave h1 { font-size: 24pt; }
.tpl-suave .cv-photo { border-radius: 5mm; }
.tpl-suave .cv-body { grid-template-columns: 1fr 58mm; gap: 5mm; }
.tpl-suave .cv-sec h2 { border: 0; color: var(--accent); margin-bottom: 2.5mm !important; }

/* Carta de presentación */
.letter {
  --accent: #5b4bff;
  --ink: #1d2433;
  --muted: #5b6475;
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  padding: 18mm 20mm;
  background: #fff;
  color: var(--ink);
  font: 10.5pt/1.6 "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.letter *, .letter *::before, .letter *::after { box-sizing: border-box; }
.letter h1, .letter p { margin: 0; }
.letter-head { padding-bottom: 6mm; border-bottom: 2pt solid var(--accent); display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm; flex-wrap: wrap; }
.letter-head h1 { font-size: 20pt; line-height: 1.15; letter-spacing: -0.01em; }
.letter-role { color: var(--accent); font-weight: 600; font-size: 11pt; margin-top: 2pt !important; }
.letter-contact { color: var(--muted); font-size: 9pt; text-align: right; max-width: 95mm; }
.letter-meta { display: flex; justify-content: space-between; gap: 8mm; margin: 10mm 0 8mm; font-size: 10pt; }
.letter-to { font-weight: 600; }
.letter-date { color: var(--muted); text-align: right; }
.letter-body p { margin-bottom: 4.5mm; text-align: left; }
.letter-body p:last-child { margin-top: 6mm; font-weight: 600; }
