.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .cv-grid { grid-template-columns: minmax(0, 1fr); } }
.cv-form { min-width: 0; display: grid; gap: 14px; }
.seg { display: flex; background: var(--mist); border-radius: 48px; padding: 4px; }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 48px; background: transparent; font: 500 14px var(--sans); color: var(--slate); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.field { min-width: 0; display: grid; gap: 6px; font: 400 12px var(--mono); text-transform: uppercase; color: var(--slate); }
.field input, .field textarea, .item input, .item textarea { width: 100%; min-height: 44px; padding: 10px 12px; font: 450 15px var(--sans); text-transform: none; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 8px; resize: vertical; }
.field input[type=color] { padding: 0; border: 0; height: 44px; background: none; }
.field input:focus, .field textarea:focus, .item input:focus, .item textarea:focus { outline: none; border-color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--ash) inset; border-radius: 16px; display: grid; gap: 10px; }
legend { font: 700 22px var(--display); text-transform: uppercase; padding: 0 4px; }
.item { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; position: relative; padding-top: 8px; border-top: 1px dashed var(--ash); }
.item:first-child { border-top: 0; padding-top: 0; }
.item textarea { grid-column: 1 / -1; }
.item .rm { position: absolute; right: 0; top: -2px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--mist); cursor: pointer; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; justify-self: start; }
.cv-side { min-width: 0; display: grid; gap: 12px; position: sticky; top: 16px; }
.sheet-wrap { background: var(--mist); border-radius: 16px; padding: 12px; }
.sheet { aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 0 0 1px var(--ash); overflow: hidden; font-size: clamp(5px, 0.95vw, 10px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help { margin: 0; color: var(--smoke); }

/* Hoja del CV (pantalla e impresión comparten estas reglas; tamaños en em respecto a la hoja) */
.r { height: 100%; display: flex; color: #1a1a1a; font-family: Inter, "Tuulo Sans", Arial, sans-serif; line-height: 1.4; }
.r .main { flex: 1; padding: 6% 7%; display: flex; flex-direction: column; gap: 1.6em; min-width: 0; }
.r .aside { width: 32%; padding: 6% 4.5%; background: var(--c); color: #fff; display: flex; flex-direction: column; gap: 1.6em; }
.r h1 { margin: 0; font: 700 3.4em/0.95 "Tuulo Display", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: -0.02em; color: inherit; }
.r .sub { font-size: 1.35em; color: var(--c); font-weight: 600; margin-top: .3em; }
.r.side .sub { color: #555; }
.r .contact { display: flex; flex-wrap: wrap; gap: .3em 1.2em; color: #555; font-size: 1em; }
.r .aside .contact { flex-direction: column; color: #fff; }
.r h2 { margin: 0 0 .6em; font: 700 1.05em/1 Inter, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--c); border-bottom: 1px solid #ddd; padding-bottom: .35em; }
.r .aside h2 { color: #fff; border-color: rgba(255,255,255,.35); }
.r .job { margin-bottom: 1em; }
.r .job .t { display: flex; justify-content: space-between; gap: 1em; font-weight: 700; font-size: 1.1em; }
.r .job .t span { font-weight: 400; color: #777; white-space: nowrap; font-size: .9em; }
.r .job .c { color: #555; }
.r .job p { margin: .3em 0 0; white-space: pre-line; }
.r .tags { display: flex; flex-wrap: wrap; gap: .4em; }
.r .tags span { background: #f0f0f0; padding: .25em .7em; border-radius: 1em; }
.r .aside .tags span { background: rgba(255,255,255,.18); }
.r p.sum { margin: 0; white-space: pre-line; }

@media print {
  @page { size: A4; margin: 0; }
  body * { visibility: hidden !important; }
  #sheet, #sheet * { visibility: visible !important; }
  #sheet { position: fixed; left: 0; top: 0; width: 210mm; height: 297mm; box-shadow: none; font-size: 10.5pt; aspect-ratio: auto; }
  .r .aside { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
