/* ================================================
   CV — hoja independiente, pensada para pantalla e impresión/PDF.
   No importa styles.css a propósito: evita heredar reglas globales del
   sitio (cursor custom, animaciones de scroll) que no aplican aquí.
   ================================================ */
:root {
  --red:        #E41C37;
  --dark:       #2A000E;
  --gray-light: #E9E9E9;
  --white:      #FFFFFF;
  --text-gray:  #5b5b63;

  --font-display: 'MuseoModerno', sans-serif;
  --font-ui:      'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body.cv-page {
  margin: 0;
  background: var(--gray-light);
  font-family: var(--font-ui);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

.cv-actions {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gray-light);
}

.cv-back,
.cv-print-btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  border: 1px solid rgba(42, 0, 14, 0.15);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
}

.cv-print-btn {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.cv-sheet {
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 3rem 3.5rem;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(42, 0, 14, 0.08);
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 2px solid var(--dark);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.cv-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  margin: 0;
  line-height: 1;
}

.cv-role {
  font-weight: 600;
  color: var(--red);
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

.cv-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.cv-contact a { color: var(--dark); text-decoration: none; }
.cv-contact a:hover { text-decoration: underline; }

.cv-summary p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.cv-section { margin-bottom: 1.75rem; }

.cv-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin: 0 0 1rem;
}

.cv-job { margin-bottom: 1.3rem; }
.cv-job:last-child { margin-bottom: 0; }

.cv-job-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.cv-job-top h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
}

.cv-job-period {
  font-size: 0.78rem;
  color: var(--text-gray);
  white-space: nowrap;
}

.cv-job-meta {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  margin: 0.15rem 0 0.5rem;
}

.cv-job ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.cv-job li { margin-bottom: 0.3rem; }
.cv-job li:last-child { margin-bottom: 0; }

.cv-tools,
.cv-projects {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.cv-projects a { color: var(--red); font-weight: 600; text-decoration: none; }
.cv-projects a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .cv-sheet { padding: 2rem 1.5rem; }
  .cv-header { flex-direction: column; }
  .cv-contact { text-align: left; }
}

@media print {
  .cv-actions { display: none; }
  body.cv-page { background: var(--white); }
  .cv-sheet {
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  @page { margin: 1.6cm; }
}
