/* CV / Resume (cv.html). Usa las variables y la barra de css/portfolio.css. */
.cv-portada { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding-block: clamp(40px, 6vw, 80px) 28px; border-bottom: 1px solid var(--linea); }
.cv-portada h1 { margin: 6px 0 0; font: 400 clamp(2.6rem, 7vw, 5.4rem)/0.95 var(--f-display); letter-spacing: -0.02em; }
.cv-portada .mono { margin: 0; font: 400 0.78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); }
.cv-acciones { display: grid; gap: 14px; justify-items: end; }
.cv-idiomas { display: inline-flex; padding: 4px; border: 1px solid var(--linea); border-radius: 999px; }
.cv-idiomas button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--gris); font: 400 0.8rem/1 var(--f-mono); cursor: pointer; }
.cv-idiomas button[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }
.cv-descargas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cv-descargas .boton { padding: 12px 18px; border-color: var(--linea); color: var(--tinta); font-size: 0.74rem; }
.cv-descargas .boton:first-child { background: #9FBD2B; border-color: #9FBD2B; color: #231F20; }
.cv-descargas .boton:hover { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }

.cv-cuerpo { padding-block: 32px 80px; }
.cv-hoja { max-width: 860px; margin-inline: auto; padding: clamp(22px, 4vw, 48px); background: var(--papel-2); border: 1px solid var(--linea); border-radius: 20px; line-height: 1.6; }
.cv-hoja[hidden] { display: none; }
.cv-cab { display: flex; gap: 22px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--linea); }
.cv-foto { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.cv-cab p { margin: 4px 0; }
.cv-cab p:first-child { font-size: 1.05rem; color: #B6D43C; }
.cv-cab p:first-child strong { color: var(--tinta); font-weight: 600; }
.cv-cab p:last-child { font-size: 0.85rem; color: var(--gris); }
.cv-hoja h2 { margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--linea); font: 500 0.78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; color: #9FBD2B; }
.cv-hoja p { margin: 8px 0; color: var(--tinta); }
.cv-hoja ul { margin: 6px 0 14px; padding-left: 18px; }
.cv-hoja li { margin: 4px 0; color: var(--gris); }
.cv-hoja li::marker { color: #9FBD2B; }
.cv-hoja strong { color: var(--tinta); font-weight: 600; }
.cv-hoja a { color: var(--tinta); text-decoration: underline; text-decoration-color: #9FBD2B; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .cv-portada { grid-template-columns: 1fr; align-items: start; }
  .cv-acciones { justify-items: start; }
  .cv-descargas { justify-content: flex-start; }
  .cv-cab { flex-direction: column; align-items: flex-start; }
  .cv-foto { width: 88px; height: 88px; }
}

/* Traducción automática (idiomas distintos de español e inglés) */
.cv-nota { margin: 0 0 18px; padding: 10px 14px; border: 1px dashed var(--linea); border-radius: 10px; font: 400 0.78rem/1.4 var(--f-mono); color: var(--gris); }
.cv-hoja[dir="rtl"] ul { padding-left: 0; padding-right: 18px; }
.cv-ltr { white-space: nowrap; }
