/* ==========================================================================
   PORTAFOLIO & CV DIGITAL - JASON ALEJANDRO MAQUEHUE VELASQUEZ
   Estilo minimalista, moderno y profesional inspirado en portafoliotemplate.dev
   ========================================================================== */

:root {
  /* Paleta Dark (Predeterminada - Inspirada en el CV y estética Slate/Emerald) */
  --bg-color: #0b0f17;
  --bg-card: #111827;
  --bg-card-hover: #172033;
  --bg-surface: #1e293b;
  --bg-surface-subtle: rgba(255, 255, 255, 0.04);
  --border-color: #1e293b;
  --border-hover: #334155;
  --border-highlight: rgba(56, 189, 248, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent-color: #10b981; /* Emerald green */
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.15);
  --accent-cyan: #38bdf8;
  --accent-cyan-light: rgba(56, 189, 248, 0.12);

  --badge-bg: #1e293b;
  --badge-text: #e2e8f0;
  --badge-border: #334155;

  --nav-bg: rgba(11, 15, 23, 0.85);
  --modal-backdrop: rgba(3, 7, 18, 0.85);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px -3px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #e2e8f0;
  --bg-surface-subtle: rgba(0, 0, 0, 0.03);
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-highlight: rgba(14, 165, 233, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --accent-color: #059669;
  --accent-hover: #047857;
  --accent-light: rgba(5, 150, 105, 0.1);
  --accent-cyan: #0284c7;
  --accent-cyan-light: rgba(2, 132, 199, 0.1);

  --badge-bg: #f1f5f9;
  --badge-text: #1e293b;
  --badge-border: #cbd5e1;

  --nav-bg: rgba(248, 250, 252, 0.88);
  --modal-backdrop: rgba(15, 23, 42, 0.7);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 16px -2px rgba(5, 150, 105, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: 60px;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   STICKY NAVBAR
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.site-nav .container {
  max-width: 920px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-cyan));
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle, .print-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle:hover, .print-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

/* ==========================================================================
   HERO / HEADER SECTION
   ========================================================================== */

.hero-section {
  padding: 48px 0 32px;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}

.hero-info {
  flex: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: var(--accent-color);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.6;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.hero-name {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-location svg {
  color: var(--accent-color);
}

.hero-avatar {
  flex-shrink: 0;
  width: 105px;
  height: 105px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.avatar-initials {
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.avatar-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Acciones y Botones de Contacto Rápidos */
.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.contact-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-1px);
}

.contact-pill.primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.contact-pill.primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.copy-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 2px;
  border-radius: 4px;
  margin-left: 2px;
  transition: color var(--transition-fast);
}

.copy-btn-inline:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */

section {
  padding: 30px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.prose {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.prose p + p {
  margin-top: 14px;
}

/* ==========================================================================
   EXPERIENCIA LABORAL
   ========================================================================== */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.experience-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.exp-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exp-company {
  color: var(--accent-cyan);
  font-weight: 600;
}

.exp-date {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.exp-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.55;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.exp-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.exp-bullets li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-color);
  font-weight: bold;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  transition: all var(--transition-fast);
}

.badge svg {
  width: 12px;
  height: 12px;
}

.badge:hover {
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   PROYECTOS DESTACADOS & GALERÍA DE INFORME
   ========================================================================== */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.project-card.featured {
  border-color: var(--border-highlight);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(17, 24, 39, 0.75) 100%);
}

.project-body {
  padding: 22px 24px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.featured-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Showcase de Imágenes del Informe (Conteo Cíclico Covepa) */
.report-showcase {
  margin: 18px 0 16px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.showcase-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  height: 125px;
  overflow: hidden;
  background-color: #030712;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb-wrap img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-info {
  padding: 8px 10px;
}

.gallery-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Secondary projects */
.project-card-mini {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color var(--transition-fast);
}

.project-card-mini:hover {
  border-color: var(--border-hover);
}

/* ==========================================================================
   APTITUDES & TECNOLOGÍAS
   ========================================================================== */

.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-category {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.skill-cat-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--accent-color);
  background-color: var(--bg-card-hover);
  transform: translateY(-1px);
}

.tech-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   EDUCACIÓN
   ========================================================================== */

.education-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.edu-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-institution {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.edu-date {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-color);
  background-color: var(--accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================================================
   CONTACTO DIRECTO & FOOTER
   ========================================================================== */

.contact-card-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface-subtle));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-tile:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.contact-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-tile-info {
  flex: 1;
  overflow: hidden;
}

.contact-tile-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-tile-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MODAL / LIGHTBOX DE IMÁGENES
   ========================================================================== */

dialog.image-modal {
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  color: var(--text-primary);
  max-width: 90vw;
  max-height: 90vh;
  width: 880px;
  box-shadow: var(--shadow-lg);
  outline: none;
  overflow: hidden;
}

dialog::backdrop {
  background-color: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

.modal-body {
  padding: 16px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
  text-align: center;
  background-color: #030712;
}

.modal-body img {
  max-width: 100%;
  max-height: 60vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

.modal-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
  background-color: var(--bg-card);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  .hero-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  
  .hero-avatar {
    width: 80px;
    height: 80px;
  }
  
  .avatar-initials {
    font-size: 1.6rem;
  }

  .nav-links {
    display: none; /* Mobile menu can be simplified or hidden */
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-card-box {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CV PRINT SHEET (Oculto en pantalla web)
   ========================================================================== */

.cv-print-sheet {
  display: none;
}

/* ==========================================================================
   PRINT STYLES - EXCLUSIVO PARA IMPRIMIR CURRÍCULUM EN 1 PÁGINA (A4 / CARTA)
   ========================================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 12mm 8mm 12mm;
  }

  /* Ocultar TODO el contenido web: barra, hero, proyectos, modales, etc. */
  body > *:not(.cv-print-sheet) {
    display: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 8.5pt !important;
    line-height: 1.32 !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Mostrar ÚNICAMENTE el documento de CV calibrado para 1 hoja */
  .cv-print-sheet {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  .cv-print-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    border-bottom: 2pt solid #0f766e !important;
    padding-bottom: 4pt !important;
    margin-bottom: 5pt !important;
  }

  .cv-print-name {
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #0f766e !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
  }

  .cv-print-contact-box {
    text-align: right !important;
    font-size: 8.4pt !important;
    line-height: 1.3 !important;
    color: #334155 !important;
  }

  .cv-print-contact-item {
    margin-bottom: 1pt !important;
  }

  .cv-print-section {
    margin-bottom: 5pt !important;
    page-break-inside: avoid !important;
  }

  .cv-print-section-title {
    font-size: 9.6pt !important;
    font-weight: 800 !important;
    color: #0f766e !important;
    letter-spacing: 0.04em !important;
    border-bottom: 0.8pt solid #cbd5e1 !important;
    padding-bottom: 1.5pt !important;
    margin-bottom: 3pt !important;
    text-transform: uppercase !important;
  }

  .cv-print-summary {
    font-size: 8.3pt !important;
    color: #1e293b !important;
    line-height: 1.32 !important;
    margin: 0 !important;
    text-align: justify !important;
  }

  .cv-print-list,
  .cv-print-bullets {
    list-style: disc !important;
    padding-left: 13pt !important;
    margin: 2pt 0 0 0 !important;
  }

  .cv-print-list li,
  .cv-print-bullets li {
    font-size: 8.1pt !important;
    color: #1e293b !important;
    line-height: 1.26 !important;
    margin-bottom: 1.2pt !important;
  }

  .cv-print-job {
    margin-bottom: 4pt !important;
    page-break-inside: avoid !important;
  }

  .cv-print-job-title {
    font-size: 8.5pt !important;
    color: #0f172a !important;
    line-height: 1.22 !important;
  }

  .cv-print-job-desc {
    font-size: 8.1pt !important;
    color: #334155 !important;
    line-height: 1.26 !important;
    margin: 1.5pt 0 1.5pt 0 !important;
    text-align: justify !important;
  }
}
