/* ==========================================================
   SOBRE MÍ · CV EN FORMATO DE PERIÓDICO
   Mismo lenguaje «Slush» (papel, contorno de 1px, píldoras y
   titulares en Bowlby One) pero en clave editorial y sobria:
   sin pegatinas ni giros; filetes, columnas y secciones numeradas.
   ========================================================== */

.about-layout .dashboard-main { min-width: 0; }

.cv {
    display: grid;
    max-width: 1320px;
    margin-inline: auto;
    padding: clamp(20px, 3.4vw, 48px);
    border: 1px solid var(--sl-carbon);
    border-radius: var(--radius-xl);
    background: var(--sl-card);
    color: var(--sl-carbon);
    font-family: var(--sl-sans);
}

.cv :where(h1, h2, h3, p, blockquote, ol, ul, dl, dd, figure) { margin: 0; }
.cv :where(ol, ul) { padding: 0; list-style: none; }
.cv a { color: inherit; text-decoration: none; }
.cv :is(section, h2) { scroll-margin-top: 90px; }
.cv :focus-visible { outline: 3px solid var(--sl-violet); outline-offset: 3px; }

.cv-skip { position: fixed; top: -100px; left: 16px; z-index: 40; padding: 10px 16px; border: 1px solid var(--sl-carbon); border-radius: var(--radius-pill); background: var(--sl-sun); color: var(--sl-on); font-weight: 700; }
.cv-skip:focus { top: 10px; }

.cv-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid var(--sl-carbon);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .032em;
    text-transform: uppercase;
}

/* Botones: píldora negra (principal) o con contorno. */
.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid var(--sl-carbon);
    border-radius: var(--radius-pill);
    background: var(--sl-card);
    color: var(--sl-carbon);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.cv-button i { transition: transform var(--duration) var(--ease-out); }
.cv .cv-button--primary { background: var(--sl-carbon); color: var(--sl-paper); }
.cv .cv-button--light { border-color: var(--sl-paper); background: var(--sl-paper); color: var(--sl-carbon); font-weight: 500; }
.cv-button--light strong { font-weight: 800; }

@media (hover: hover) and (pointer: fine) {
    .cv .cv-button:hover { border-color: var(--sl-carbon); background: var(--sl-sun); color: var(--sl-on); }
    .cv-button:hover i { transform: translateX(3px); }
}

/* ---------- Cabecera (mancheta) ---------- */

.cv-folio {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sl-carbon);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cv-name {
    padding: clamp(14px, 2vw, 24px) 0 clamp(10px, 1.4vw, 16px);
    font-family: var(--sl-display);
    font-size: clamp(3.2rem, 1rem + 8.2vw, 9.6rem);
    font-weight: 400;
    line-height: .84;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Doble filete bajo el nombre, como en la cabecera de un diario. */
.cv-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px 0;
    border-top: 3px solid var(--sl-carbon);
    border-bottom: 1px solid var(--sl-carbon);
    box-shadow: inset 0 4px 0 var(--sl-card), inset 0 5px 0 var(--sl-carbon);
}

.cv-role { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 600; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tags li { padding: 5px 12px; border: 1px solid var(--sl-carbon); border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- Entradilla y ficha ---------- */

.cv-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(28px, 3.6vw, 44px) 0;
    border-bottom: 1px solid var(--sl-carbon);
}

.cv-lead-main { display: grid; align-content: start; gap: 18px; }

.cv-headline {
    max-width: 22ch;
    font-family: var(--sl-display);
    font-size: clamp(1.7rem, 1rem + 2vw, 2.9rem);
    font-weight: 400;
    line-height: .95;
    text-transform: uppercase;
}

/* Entradilla en dos columnas con letra capital. */
.cv-lede {
    columns: 2 18rem;
    column-gap: 32px;
    column-rule: 1px solid var(--sl-line);
    font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
    line-height: 1.7;
}

.cv-lede::first-letter {
    float: left;
    margin: 6px 10px 0 0;
    font-family: var(--sl-display);
    font-size: 3.6em;
    line-height: .8;
}

.cv-lede strong { font-weight: 700; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.cv-facts {
    align-self: start;
    padding: 20px 22px 8px;
    border: 1px solid var(--sl-carbon);
    border-radius: 24px;
    background: var(--sl-sky);
    color: var(--sl-carbon);
}

.cv-facts-title { padding-bottom: 12px; border-bottom: 1px solid var(--sl-carbon); font-family: var(--sl-display); font-size: 1.3rem; text-transform: uppercase; }
.cv-facts dl > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--sl-line); }
.cv-facts dl > div:last-child { border-bottom: 0; }
.cv-facts dt { color: var(--sl-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cv-facts dt i { margin-right: 4px; color: var(--sl-carbon); }
.cv-facts dd { font-weight: 600; }

.cv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid var(--sl-carbon);
    border-radius: var(--radius-pill);
    background: var(--sl-mint);
    color: var(--sl-on);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.cv-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Secciones numeradas ---------- */

.cv-section {
    display: grid;
    gap: 24px;
    padding: clamp(28px, 3.4vw, 44px) 0;
    border-bottom: 1px solid var(--sl-carbon);
}

.cv-section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
}

.cv-number {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--sl-carbon);
    border-radius: var(--radius-pill);
    background: var(--sl-carbon);
    color: var(--sl-paper);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cv-section-head h2 {
    font-family: var(--sl-display);
    font-size: clamp(1.5rem, 1rem + 1.3vw, 2.3rem);
    font-weight: 400;
    line-height: .92;
    text-transform: uppercase;
    hyphens: auto;
}

.cv-section-head p { max-width: 36ch; color: var(--sl-muted); line-height: 1.5; text-align: right; }


/* 01 · Formación */
.cv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.cv-degree { display: grid; align-content: start; gap: 14px; }
.cv-degree h3 { font-family: var(--sl-display); font-size: clamp(1.3rem, 1rem + .9vw, 1.8rem); font-weight: 400; line-height: .95; text-transform: uppercase; }
.cv-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.cv-progress { position: relative; display: block; height: 14px; overflow: hidden; border: 1px solid var(--sl-carbon); border-radius: var(--radius-pill); background: var(--sl-paper); }
.cv-progress i { position: absolute; inset: 0 20% 0 0; border-right: 1px solid var(--sl-carbon); background: var(--sl-blue); }
.cv-note { color: var(--sl-muted); line-height: 1.6; }

.cv-quote {
    display: grid;
    gap: 18px;
    padding: 24px 0 0 28px;
    border-left: 1px solid var(--sl-carbon);
}

.cv-quote p {
    font-family: var(--sl-display);
    font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem);
    font-weight: 400;
    line-height: .98;
    text-transform: uppercase;
}

.cv-quote p::before { content: "“"; display: block; height: .5em; font-size: 2em; line-height: .9; color: var(--sl-violet); }
.cv-quote strong { font-weight: 400; color: var(--sl-violet); }

.cv-cycle { display: flex; flex-wrap: wrap; gap: 8px; }

.cv-cycle li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--sl-carbon);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
}

.cv-cycle li i { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--sl-carbon); border-radius: 50%; background: var(--sl-sand); color: var(--sl-on); }
.cv-cycle li:nth-child(2) i { background: var(--sl-sun); }
.cv-cycle li:nth-child(3) i { background: var(--sl-mint); }

/* 02 · Áreas de interés: columnas con filete vertical. */
.cv-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cv-columns h3 { overflow-wrap: anywhere; }

.cv-columns li {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 4px 20px 8px;
    border-left: 1px solid var(--sl-line);
}

.cv-columns li:first-child { padding-left: 0; border-left: 0; }

.cv-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sl-carbon);
    border-radius: 14px;
    background: var(--sl-sky);
    color: var(--sl-carbon);
    font-size: 20px;
}

.cv-columns h3 { font-family: var(--sl-display); font-size: 1.15rem; font-weight: 400; line-height: 1; text-transform: uppercase; }
.cv-columns p { color: var(--sl-muted); font-size: .9375rem; line-height: 1.55; }

/* 03 · Stack: tabla de celdas con contorno. */
.cv-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--sl-carbon);
    border-radius: 22px;
}

.cv-stack li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 18px;
    border-right: 1px solid var(--sl-carbon);
    border-bottom: 1px solid var(--sl-carbon);
    font-weight: 700;
}

.cv-stack li:nth-child(4n) { border-right: 0; }
.cv-stack li:nth-last-child(-n + 4) { border-bottom: 0; }
.cv-stack li > img,
.cv-stack li > i { width: 28px; height: 28px; object-fit: contain; font-size: 24px; line-height: 1; }
.cv-pair { display: flex; align-items: center; }
.cv-pair img { width: 20px; height: 26px; }
.cv-pair img + img { margin-left: -4px; }
.cv-django { padding: 3px; border-radius: 7px; background: #0c4b3e; }

/* 04 · Formación complementaria: lista numerada a dos columnas. */
.cv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; counter-reset: cv; }

.cv-list li {
    display: grid;
    grid-template-columns: auto 40px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--sl-line);
    counter-increment: cv;
}

.cv-list li::before {
    content: counter(cv, decimal-leading-zero);
    color: var(--sl-muted);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cv-list-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--sl-carbon); border-radius: 50%; background: var(--sl-paper); font-size: 18px; }
.cv-list-icon img { width: 20px; height: 20px; object-fit: contain; }
.cv-list h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.cv-list p { margin-top: 2px; color: var(--sl-muted); font-size: .875rem; }

/* ---------- Contacto: banda en tinta ---------- */

.cv-contact {
    display: grid;
    justify-items: start;
    gap: 16px;
    margin-top: clamp(28px, 3.4vw, 44px);
    padding: clamp(28px, 4vw, 52px);
    border-radius: 24px;
    background: var(--sl-carbon);
    color: var(--sl-paper);
}

.cv-contact .cv-kicker { border-color: var(--sl-paper); }

.cv-contact h2 {
    max-width: 20ch;
    font-family: var(--sl-display);
    font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.4rem);
    font-weight: 400;
    line-height: .92;
    text-transform: uppercase;
}

.cv-contact > p:not(.cv-kicker) { max-width: 58ch; opacity: .85; line-height: 1.65; }
.cv-contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.cv-socials { display: flex; flex-wrap: wrap; gap: 8px; }

.cv-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px 0 12px;
    border: 1px solid var(--sl-paper);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .cv-socials a:hover { border-color: var(--sl-sun); background: var(--sl-sun); color: var(--sl-on); }
}

/* ---------- Adaptación ---------- */

@media (max-width: 1180px) {
    .cv-split { grid-template-columns: minmax(0, 1fr); }
    .cv-quote { padding: 22px 0 0; border-top: 1px solid var(--sl-carbon); border-left: 0; }
    .cv-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
    .cv-columns li:nth-child(3) { padding-left: 0; border-left: 0; }
    .cv-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cv-stack li:nth-child(4n) { border-right: 1px solid var(--sl-carbon); }
    .cv-stack li:nth-child(2n) { border-right: 0; }
    .cv-stack li:nth-last-child(-n + 4) { border-bottom: 1px solid var(--sl-carbon); }
    .cv-stack li:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 960px) {
    .cv-lead { grid-template-columns: minmax(0, 1fr); }
    .cv-section-head { grid-template-columns: auto minmax(0, 1fr); }
    .cv-section-head p { grid-column: 1 / -1; max-width: 60ch; text-align: left; }
    .cv-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .cv { padding: 18px 14px; border-radius: 24px; }
    .cv-folio span:nth-child(2) { display: none; }
    .cv-name { font-size: clamp(2.8rem, 17vw, 4.4rem); }
    .cv-columns { grid-template-columns: minmax(0, 1fr); }
    .cv-columns li { padding: 14px 0 0; border-top: 1px solid var(--sl-line); border-left: 0; }
    .cv-columns li:first-child { padding-top: 0; border-top: 0; }
    .cv-stack li { gap: 8px; min-height: 56px; padding: 10px 12px; font-size: 14px; }
    .cv-actions .cv-button,
    .cv-contact-links .cv-button { flex: 1 1 auto; white-space: normal; text-align: center; }
}
