@font-face {
  font-family: "CV Icons";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../../public/fonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
  font-family: "CV Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../../public/fonts/fa-brands-400.woff2") format("woff2");
}

@font-face {
  font-family: "CV Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../public/fonts/InterVariable.woff2") format("woff2");
}

.cv-reader {
  display: flex;
  gap: var(--cv-reader-gap);
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--cv-reader-bg);
  box-sizing: border-box;
}

.cv-reader__page {
  position: relative;
  flex: none;
  width: calc(816px * var(--cv-scale, 0.5));
  height: calc(1056px * var(--cv-scale, 0.5));
  overflow: hidden;
  background: var(--cv-page-bg);
  box-shadow: 0 2px 12px var(--cv-page-shadow);
}

.cv-sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: 816px;
  height: 1056px;
  overflow: hidden;
  color: var(--cv-text);
  font-family: "CV Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 18.5px;
  text-align: left;
  background: var(--cv-panel);
  zoom: var(--cv-scale, 0.5);
}

:where(.cv-sheet) :where(h1, h2, h3, h4, p, ul) {
  margin: 0;
  padding: 0;
}

.cv-mark {
  background-image: linear-gradient(var(--cv-marker-done), var(--cv-marker-done));
  background-repeat: no-repeat;
  background-size: calc(var(--cv-progress, 0) * 100%) 100%;
  border-radius: 2px;
}

.cv-mark.is-current {
  background-image: linear-gradient(var(--cv-marker), var(--cv-marker));
}

.cv-sheet a {
  color: inherit;
  text-decoration: none;
}

.cv-sheet a:hover {
  text-decoration: underline;
}

.cv-icon {
  flex: none;
  width: 1.25em;
  font-family: "CV Icons";
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.cv-icon--brand {
  font-family: "CV Brands";
  font-weight: 400;
}

.cv-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cv-logo {
  flex: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.cv-side {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 309px;
  padding: 26px 24px 0 38px;
  color: var(--cv-on-dark);
  background: linear-gradient(160deg, var(--cv-navy) 0%, var(--cv-navy-deep) 100%);
  box-sizing: border-box;
}

.cv-side__photo {
  display: block;
  width: 96px;
  height: 98px;
  margin-left: 72px;
  object-fit: cover;
  background: var(--cv-page-bg);
  border: 2px solid var(--cv-blue);
  border-radius: 22px;
  box-sizing: border-box;
}

.cv-side__name {
  margin-top: 14px;
  font-size: 31px;
  font-weight: 800;
  line-height: 35px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.cv-side__name > span {
  display: block;
}

.cv-side__name > span:first-child {
  color: var(--cv-on-dark-muted);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 1px;
}

.cv-side__title {
  margin-top: 8px;
  padding-bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.2px;
  white-space: nowrap;
  text-transform: uppercase;
  background: linear-gradient(var(--cv-blue), var(--cv-blue)) left bottom / 68px 3px no-repeat;
}

.cv-side__contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  list-style: none;
  border-bottom: 1px solid var(--cv-rule-dark);
}

.cv-side__contact li {
  display: flex;
  gap: 16px;
  align-items: center;
  white-space: nowrap;
}

.cv-side__contact .cv-icon,
.cv-side__heading .cv-icon {
  color: var(--cv-blue);
  font-size: 15px;
}

.cv-side__heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.cv-side__heading:not(:first-of-type) {
  margin-top: 14px;
}

.cv-side__plain {
  color: var(--cv-on-dark-muted);
  font-size: 12.5px;
}

.cv-side h3 {
  margin: 7px 0 4px;
  color: var(--cv-on-dark-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
}

.cv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 5px;
  list-style: none;
}

.cv-chips li {
  display: flex;
  gap: 6px;
  align-items: center;
  gap: 6px;
  padding: 0 9px 0 7px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 21px;
  background: var(--cv-chip-dark);
  border-radius: 999px;
}

.cv-main {
  position: absolute;
  top: 46px;
  right: 36px;
  left: 344px;
}

.cv-sheet--second .cv-main,
.cv-sheet--third .cv-main {
  left: 60px;
  right: 60px;
}

.cv-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--cv-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.cv-heading:not(:first-child) {
  margin-top: auto;
  padding-top: 12px;
}

.cv-heading::after {
  flex: 1;
  height: 1px;
  margin-right: 4px;
  background: var(--cv-line);
  content: "";
}

.cv-heading .cv-icon {
  color: var(--cv-link);
  font-size: 19px;
}

.cv-lead {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--cv-line);
}

.cv-timeline {
  margin-left: 11px;
  border-left: 2px solid var(--cv-line);
}

.cv-job {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0 0 9px 20px;
}

.cv-list .cv-job {
  padding-left: 6px;
}

.cv-timeline .cv-job::before {
  position: absolute;
  top: 6px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: var(--cv-link);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cv-panel);
  content: "";
}

.cv-job__head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.cv-main h3 {
  color: var(--cv-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.2px;
}

.cv-period {
  flex: none;
  color: var(--cv-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cv-job__company {
  color: var(--cv-link);
  font-size: 13px;
  font-weight: 700;
}

.cv-job__points {
  margin: 5px 0 6px;
  padding-left: 17px;
}

.cv-job__points li::marker {
  color: var(--cv-blue);
}

.cv-text {
  margin: 2px 0 6px;
}

.cv-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  color: var(--cv-text);
  font-size: 11.5px;
  font-weight: 600;
  list-style: none;
}

.cv-stack li {
  display: flex;
  gap: 5px;
  align-items: center;
}

.cv-stack .cv-logo--dark {
  filter: invert(1);
}

.cv-stack__link {
  margin-left: auto;
  color: var(--cv-link);
  font-weight: 600;
}

.cv-certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-left: 6px;
  list-style: none;
}

.cv-certs li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.cv-certs li > div {
  display: flex;
  flex-direction: column;
}

.cv-certs strong {
  color: var(--cv-ink);
  font-size: 13px;
}

.cv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cv-cards .cv-job {
  padding: 12px 14px;
  background: var(--cv-page-bg);
  border-radius: 10px;
  box-shadow: var(--cv-card-shadow);
}

.cv-cards .cv-job__head {
  flex-direction: column;
  gap: 0;
}

.cv-cards .cv-stack__link {
  flex-basis: 100%;
  margin: 4px 0 0;
}

.cv-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: var(--cv-link);
  font-size: 18px;
  background: var(--cv-page-bg);
  border-radius: 9px;
  box-shadow: var(--cv-card-shadow);
}

.cv-cards .cv-emblem {
  background: var(--cv-panel);
  box-shadow: none;
}

.cv-emblem__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.cv-emblem__logo--left {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: left center;
}

.cv-lead > p {
  padding-right: 60px;
}

.cv-lead ul {
  margin-top: 5px;
  padding-left: 17px;
}

.cv-lead li::marker {
  color: var(--cv-blue);
}

.cv-side .cv-logo {
  width: 14px;
  height: 14px;
}

.cv-cards .cv-job {
  display: block;
}

.cv-cards .cv-emblem {
  float: left;
  width: 34px;
  height: 34px;
  margin: 0 10px 4px 0;
  font-size: 15px;
}

.cv-certs .cv-emblem {
  width: 36px;
  height: 36px;
}

.cv-certs li {
  grid-template-columns: 36px 1fr;
  gap: 9px;
}

.cv-certs strong {
  font-size: 11.5px;
  line-height: 15px;
}

.cv-duo {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.cv-duo .cv-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cv-duo .cv-certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-left: 6px;
}

.cv-duo .cv-job {
  padding-bottom: 4px;
}

.cv-duo .cv-job__head {
  flex-direction: column;
  gap: 0;
}

.cv-cards .cv-job:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}



/* [DGalicia 2026-11-13] One type scale for the three sheets (12.5px body, 16px titles, 11.5px tags, 10px dates); each column reaches the bottom margin and the free space left is shared between its sections instead of piling up at the end */
.cv-main {
  top: 40px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  line-height: 18.5px;
}

.cv-main > * {
  flex: none;
}

.cv-main > .cv-duo {
  margin-top: auto;
  padding-top: 12px;
}

.cv-duo .cv-heading:not(:first-child) {
  margin-top: 12px;
  padding-top: 0;
}

.cv-sheet--third .cv-cards {
  flex: 1;
}

.cv-job__company,
.cv-certs strong {
  font-size: 12.5px;
}

/* [DGalicia 2026-11-14] The project card of sheet 2 touched the bottom edge of the page: it and the gaps above it are tighter so the 20px bottom margin stays free */
.cv-sheet--second .cv-main > .cv-duo {
  padding-top: 6px;
}

.cv-sheet--second .cv-heading:not(:first-child) {
  padding-top: 8px;
}

.cv-sheet--second .cv-heading {
  margin-bottom: 8px;
}

.cv-sheet--second .cv-cards .cv-job {
  padding: 8px 12px;
}

.cv-sheet--second .cv-cards h3 {
  line-height: 20px;
}

.cv-sheet--second .cv-cards .cv-text {
  line-height: 16px;
}

/* [DGalicia 2026-11-15] The first heading of each sheet (Perfil profesional, Experiencia, Proyectos) loses its rule: it ran into the corner artwork */
.cv-main > .cv-heading:first-child::after {
  display: none;
}
