:root,
[data-bs-theme="light"] {
  --cv-bg: #f5f5f5;
  --cv-card-bg: #ffffff;
  --cv-sidebar-bg: #f9f9f9;
  --cv-text: #222222;
  --cv-text-muted: #494949;
  --cv-text-faint: #757575;
  --cv-border: #d2d2d2;
  --cv-tag-bg: #efefef;
  --cv-accent: #121212;
  --cv-accent-header: #121212;
  --cv-accent-rule: #ffcc00;
  --cv-accent-light: rgba(255, 204, 0, 0.15);
  --cv-metric-bg: rgba(255, 204, 0, 0.25);
  --cv-metric-text: #5c4c00;
}

[data-bs-theme="dark"] {
  --cv-bg: #1a1a1a;
  --cv-card-bg: #0d0d0d;
  --cv-sidebar-bg: #121212;
  --cv-text: #c4bdae;
  --cv-text-muted: #898989;
  --cv-text-faint: #6e6e6e;
  --cv-border: #2d2d2d;
  --cv-tag-bg: #121212;
  --cv-accent: #0d0d0d;
  --cv-accent-header: #0d0d0d;
  --cv-accent-rule: #ffcc00;
  --cv-accent-light: rgba(255, 204, 0, 0.08);
  --cv-metric-bg: rgba(255, 204, 0, 0.15);
  --cv-metric-text: #ffcc00;
}

/* ── INDEPENDENT UTILITIES ── */
.cv-flex {
  display: flex;
}

.cv-align-center {
  align-items: center;
}

.cv-gap-1 {
  gap: 0.25rem;
}

.cv-gap-3 {
  gap: 1rem;
}

.cv-text-muted {
  color: var(--cv-text-muted) !important;
}

.cv-small {
  font-size: 0.85em;
}

.cv-mb-0 {
  margin-bottom: 0 !important;
}

.cv-mt-auto {
  margin-top: auto !important;
}

.cv-ms-2 {
  margin-left: 0.5rem;
}

.cv-container-accessibility {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cv-panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--cv-text);
}

.cv-kbd-close {
  background: var(--cv-accent-header);
  color: #fff;
  border: none;
  padding: 0 0.5rem;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-kbd-close:hover {
  background: var(--cv-accent-rule);
  color: #000;
}

.cv-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cv-skip-link:focus {
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--cv-accent-rule);
  color: #000;
  z-index: 9999;
  clip: auto;
  text-decoration: none;
  font-weight: bold;
}

/* Base resets & structural definitions */
.cv-page-wrapper {
  background-color: var(--cv-bg) !important;
  min-height: 100vh;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif !important;
  color: var(--cv-text) !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: default !important;
  /* Restaurar cursor nativo */
}

.cv-page-wrapper a,
.cv-page-wrapper button,
.cv-page-wrapper input,
.cv-page-wrapper label,
.cv-page-wrapper .cv-btn,
.cv-page-wrapper .cv-slider {
  cursor: pointer !important;
  /* Forzar cursor click en interactivos */
}

.cv-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 !important;
  border: 1px solid var(--cv-border);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
  background: var(--cv-card-bg) !important;
  overflow: hidden;
  transition: box-shadow var(--bs-transition-speed, 0.4s) ease;
}

@media (min-width: 992px) {
  .cv-container {
    margin-top: clamp(1rem, 3vw, 2.5rem) !important;
    margin-bottom: clamp(1rem, 3vw, 2.5rem) !important;
    border-radius: 0.75rem;
  }
}

/* ── HEADER ── */
.cv-header {
  background: var(--cv-accent-header) !important;
  color: #ffffff !important;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.2rem, 3.5vw, 2rem) !important;
  /* Más compacto y específico */
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  border-bottom: 4px solid var(--cv-accent-rule);
}

@media (min-width: 768px) {
  .cv-header {
    grid-template-columns: 1fr auto;
  }
}

.cv-header-name {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.cv-header-title {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.cv-header-summary {
  font-size: clamp(0.8rem, 1.6vw, 0.88rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  font-weight: 400;
}

.cv-header-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cv-header-contact {
    align-items: flex-end;
  }
}

.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.75rem, 1.5vw, 0.82rem);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  white-space: nowrap;
}

.cv-contact-item:hover,
.cv-contact-item:focus {
  color: var(--cv-accent-rule) !important;
  text-decoration: underline;
}

.cv-contact-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
  stroke: currentColor;
}

.cv-availability {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.7rem, 1.5vw, 0.76rem);
  padding: 0.25rem 0.75rem;
  border-radius: 50rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cv-availability::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--bs-primary, #ffcc00);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--bs-primary, #ffcc00);
}

/* ── LAYOUT BODY ── */
.cv-body {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cv-body {
    grid-template-columns: 260px 1fr;
  }
}

/* ── SIDEBAR ── */
.cv-sidebar {
  background: var(--cv-sidebar-bg) !important;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.85rem, 2vw, 1.2rem) !important;
  /* Más estrecho y enfocado */
  border-right: 1px solid var(--cv-border) !important;
}

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

.cv-sidebar-section:last-child {
  margin-bottom: 0;
}

.cv-sidebar-heading {
  font-size: clamp(0.58rem, 1.25vw, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cv-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1.5px solid var(--cv-border);
}

/* Tags & Skill list styles */
.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.cv-tag {
  background: var(--cv-tag-bg);
  color: var(--cv-text);
  font-size: clamp(0.68rem, 1.4vw, 0.74rem);
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  line-height: 1.4;
  border: 1px solid var(--cv-border);
}

.cv-tag-mono {
  font-family: monospace;
  background: var(--cv-accent);
  color: #ffffff;
  border: none;
}

[data-bs-theme="dark"] .cv-tag-mono {
  color: var(--cv-text);
}

/* Language bars */
.cv-lang-item {
  margin-bottom: 0.5rem;
}

.cv-lang-label {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.75rem, 1.5vw, 0.8rem);
  margin-bottom: 0.15rem;
}

.cv-lang-bar {
  height: 4px;
  background: var(--cv-border);
  border-radius: 10px;
}

.cv-lang-fill {
  height: 100%;
  background: var(--cv-accent-rule);
  border-radius: 10px;
}

/* Generic sidebar lists */
.cv-list-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cv-border);
  font-size: clamp(0.72rem, 1.5vw, 0.78rem);
}

.cv-list-item:last-child {
  border-bottom: none;
}

.cv-list-title {
  font-weight: 600;
  color: var(--cv-text);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.cv-list-meta {
  font-size: clamp(0.64rem, 1.4vw, 0.7rem);
  color: var(--cv-text-muted);
}

/* ── MAIN CONTENT ── */
.cv-main {
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem) !important;
  /* Padding reducido e independiente */
}

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

.cv-section:last-child {
  margin-bottom: 0;
}

.cv-section-heading {
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cv-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1.5px solid var(--cv-accent-rule);
}

/* Experiencia */
.cv-job {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--cv-border);
}

.cv-job:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cv-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.cv-job-company {
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  font-weight: 700;
  color: var(--cv-text);
}

.cv-job-period {
  font-size: clamp(0.68rem, 1.4vw, 0.74rem);
  color: var(--cv-text-muted);
  white-space: nowrap;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.cv-job-role {
  font-size: clamp(0.76rem, 1.6vw, 0.84rem);
  font-weight: 600;
  color: var(--cv-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cv-job-type {
  font-size: clamp(0.64rem, 1.4vw, 0.7rem);
  background: var(--cv-tag-bg);
  color: var(--cv-text);
  padding: 0.05rem 0.35rem;
  border-radius: 0.15rem;
  font-weight: 500;
  border: 1px solid var(--cv-border);
}

.cv-job-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cv-job-bullets li {
  font-size: clamp(0.78rem, 1.6vw, 0.86rem);
  color: var(--cv-text);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.cv-job-bullets li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--cv-accent-rule);
  font-size: 0.55rem;
  top: 0.45rem;
  opacity: 0.85;
}

.cv-job .highlight {
  font-weight: 600;
}

.cv-job .metric {
  background: var(--cv-metric-bg);
  color: var(--cv-metric-text);
  font-size: clamp(0.7rem, 1.4vw, 0.76rem);
  font-weight: 700;
  padding: 0.05rem 0.25rem;
  border-radius: 0.15rem;
  white-space: nowrap;
}

/* Keywords ATS Strip */
.cv-keywords-strip {
  background: var(--cv-accent-light);
  border: 1px solid var(--cv-border);
  border-radius: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1rem);
  margin-bottom: 1.5rem;
}

.cv-keywords-label {
  font-size: clamp(0.65rem, 1.4vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cv-text);
  margin-bottom: 0.5rem;
}

/* Value / Focus block */
.cv-focus-block {
  background: var(--cv-accent);
  color: #ffffff;
  border-radius: 0.5rem;
  padding: clamp(0.8rem, 2vw, 1.2rem);
  font-size: clamp(0.78rem, 1.6vw, 0.86rem);
  line-height: 1.55;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .cv-focus-block {
  background: var(--cv-sidebar-bg);
  color: var(--cv-text);
  border: 1px solid var(--cv-border);
}

.cv-focus-block strong {
  color: var(--cv-accent-rule);
}

/* Top toolbar */
.cv-toolbar {
  background: var(--cv-card-bg);
  border-bottom: 1px solid var(--cv-border);
  padding: 0.75rem 1rem;
}

.cv-toolbar-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cv-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cv-text);
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--cv-border);
  background: var(--cv-tag-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cv-btn:hover,
.cv-btn:focus {
  background: var(--cv-accent-rule);
  color: #121212 !important;
  border-color: var(--cv-accent-rule);
}

.cv-btn-lang {
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  background: transparent;
  color: var(--cv-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.cv-btn-lang:hover,
.cv-btn-lang:focus {
  color: var(--cv-text);
  background: var(--cv-tag-bg);
}

.cv-btn-lang.active {
  color: #121212;
  background: var(--cv-accent-rule);
}

/* Toggle Portfolio Parameter Switcher */
.cv-projects-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.cv-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.cv-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cv-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--cv-border);
  transition: .3s;
  border-radius: 20px;
}

.cv-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.cv-slider {
  background-color: var(--cv-accent-rule);
}

input:checked+.cv-slider:before {
  transform: translateX(14px);
  background-color: #121212;
}

/* ── PORTFOLIO GRID IN CV ── */
.cv-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .cv-projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.cv-project-card {
  border: 1px solid var(--cv-border);
  background: var(--cv-card-bg);
  border-radius: 0.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cv-project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--cv-border);
}

.cv-project-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cv-project-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--cv-text);
}

.cv-project-desc {
  font-size: 0.72rem;
  color: var(--cv-text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

/* Keyboard Help bottom bar */
.cv-kbd-help {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cv-accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-size: 0.76rem;
  border-top: 3px solid var(--cv-accent-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cv-kbd-help.visible {
  transform: translateY(0);
}

/* ACCESSIBILITY PANEL STYLES */
.high-contrast .cv-page-wrapper {
  background-color: #f5f5dc !important;
  /* Cream/beige */
  color: #000000 !important;
}

.high-contrast .cv-container {
  background-color: #f5f5dc !important;
  box-shadow: 0 0 0 3px #000000 !important;
}

.high-contrast .cv-header {
  background-color: #000000 !important;
  border-bottom-color: #000000 !important;
}

.high-contrast .cv-sidebar {
  background-color: #e8e8d0 !important;
  border-right: 2px solid #000000 !important;
}

.high-contrast .cv-tag {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}

.high-contrast .cv-btn,
.high-contrast .cv-btn-lang {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

.high-contrast a {
  color: #0000ee !important;
  text-decoration: underline !important;
}

.high-contrast .cv-job-bullets li::before {
  color: #000000 !important;
}

/* Readable font toggle */
.readable-font .cv-page-wrapper {
  font-size: 1.15rem !important;
  line-height: 1.7 !important;
}

.readable-font .cv-header-name {
  font-size: 2.75rem !important;
}

.readable-font .cv-header-summary,
.readable-font .cv-job-bullets li,
.readable-font .cv-focus-block {
  font-size: 1.05rem !important;
}

.readable-font .cv-tag {
  font-size: 0.9rem !important;
}

/* Highlight Links */
.highlight-links a {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 2px !important;
  background: rgba(255, 204, 0, 0.2) !important;
  color: #000000 !important;
}

/* ── PRINT OPTIMIZATIONS ── */
@media print {
  /* Se fuerza fondo blanco y tipografía legible oscura */
  :root {
    --cv-bg: #ffffff;
    --cv-ink: #000000;
    --cv-ink-muted: #333333;
    --cv-ink-faint: #555555;
    --cv-border: #dddddd;
    --cv-sidebar-bg: #ffffff; /* Sin fondo gris */
    --cv-card-bg: #ffffff;
    --cv-accent: #000000;
    --cv-accent-mid: #222222;
    --cv-accent-light: #ffffff;
    --cv-accent-rule: #aaaaaa;
    --cv-tag-bg: #ffffff;
    --cv-tag-text: #111111;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 10.5px !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .cv-page-wrapper {
    background: #ffffff !important;
    padding: 0 !important;
  }

  .cv-container {
    box-shadow: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: #ffffff !important;
  }

  .cv-header {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
    padding: 0 0 16px 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .cv-header-name {
    color: #000000 !important;
    font-size: 22px !important;
  }

  .cv-header-title {
    color: #333333 !important;
    font-size: 13px !important;
  }

  .cv-header-summary {
    color: #333333 !important;
    font-size: 10.5px !important;
    max-width: 100% !important;
    margin-top: 8px !important;
  }

  .cv-header-contact {
    border-top: 1px solid var(--cv-border) !important;
    padding-top: 12px !important;
    margin-top: 16px !important;
    font-size: 10px !important;
    color: #000000 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
  }
  
  .cv-header-contact svg {
    color: #000000 !important;
  }

  .cv-contact-item {
    color: #000000 !important;
    text-decoration: none !important;
  }
  
  .cv-contact-item span {
    color: #000000 !important;
  }

  .cv-availability {
    background: transparent !important;
    border: 1px solid #777777 !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Main & Sidebar apilados (1 columna) */
  .cv-body {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Experiencia arriba */
  .cv-main {
    order: 1 !important;
    width: 100% !important;
    padding: 20px 0 0 0 !important;
  }

  /* Sidebar abajo, en Grid */
  .cv-sidebar {
    order: 2 !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 24px 0 0 0 !important;
    border-right: none !important;
    border-top: 1px dashed var(--cv-border) !important;
    margin-top: 24px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px 24px !important;
  }

  /* Reducir márgenes verticales en impresión */
  .cv-section { margin-bottom: 20px !important; }
  .cv-job { 
    padding-bottom: 12px !important; 
    margin-bottom: 12px !important; 
    border-bottom: 1px solid #eeeeee !important; 
  }
  .cv-job:last-child { border-bottom: none !important; }
  .cv-sidebar-section { margin-bottom: 0 !important; }

  /* Ajustes tipográficos */
  .cv-section-heading { 
    font-size: 12px !important; 
    border-bottom: 1px solid #000000 !important; 
    margin-bottom: 12px !important; 
    padding-bottom: 4px !important;
  }
  .cv-sidebar-heading { 
    font-size: 11px !important; 
    margin-bottom: 10px !important; 
    text-transform: uppercase !important;
  }
  .cv-job-company { font-size: 11.5px !important; }
  .cv-job-period { font-size: 10px !important; }
  .cv-job-role { font-size: 10.5px !important; color: #222222 !important; }
  .cv-job-bullets li { font-size: 10px !important; line-height: 1.45 !important; color: #111111 !important; }
  
  .cv-list-title { font-size: 10px !important; font-weight: 600 !important; color: #000000 !important; margin-bottom: 2px !important;}
  .cv-list-meta { font-size: 9px !important; color: #555555 !important; }

  /* Elementos ink-saving: quitar fondos plenos */
  .cv-tag {
    background: transparent !important;
    border: 1px solid #cccccc !important;
    color: #111111 !important;
    font-size: 9px !important;
    padding: 3px 6px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .cv-tag-mono {
    background: transparent !important;
    border: 1px solid #aaaaaa !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .cv-focus-block {
    background: transparent !important;
    color: #000000 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 10.5px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .cv-focus-block strong { color: #000000 !important; }

  .cv-keywords-strip {
    background: transparent !important;
    border: 1px solid #cccccc !important;
    padding: 12px 16px !important;
  }

  /* Idiomas (Barras grises muy claritas) */
  .cv-lang-fill { background: #555555 !important; height: 3px !important; }
  .cv-lang-bar { background: #e5e5e5 !important; height: 3px !important; margin-bottom: 6px !important; }

  /* Highlight y Metric text colors */
  .highlight { color: #000000 !important; font-weight: 600 !important; }
  .metric { 
    background: transparent !important; 
    border: 1px solid #cccccc !important; 
    color: #000000 !important; 
  }

  /* Projects (Ink saving) */
  .cv-project-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    padding: 12px !important;
  }
  .cv-project-img { display: none !important; }
  .cv-project-title { font-size: 11px !important; color: #000000 !important; }
  .cv-project-desc { font-size: 9.5px !important; color: #333333 !important; }
  
  .cv-job-bullets li::before {
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .no-print {
    display: none !important;
  }
  
  /* Control de saltos de página */
  .cv-job, .cv-sidebar-section, .cv-focus-block, .cv-project-card {
    break-inside: avoid;
  }
  h2, h3 { break-after: avoid; }
}

@page {
  margin: 1.5cm;
  size: A4;
}