/* ==========================================================================
   KAREN CAMACHO VERASTEGUI - PORTFOLIO DESIGN SYSTEM
   Modern, Sophisticated Dark Tech & AI Developer Aesthetic
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-surface: #121824;
  --bg-surface-elevated: #172033;
  --bg-card: rgba(18, 24, 36, 0.7);
  --bg-glass: rgba(13, 17, 26, 0.85);

  /* Accents */
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-emerald: #10b981;
  --accent-glow: rgba(139, 92, 246, 0.25);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #06b6d4 100%);
  --gradient-purple-indigo: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  --gradient-dark-card: linear-gradient(180deg, rgba(23, 32, 51, 0.8) 0%, rgba(18, 24, 36, 0.95) 100%);
  --gradient-border: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(255, 255, 255, 0.05), rgba(6, 182, 212, 0.3));

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(139, 92, 246, 0.3);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #c4b5fd;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(139, 92, 246, 0.2);

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 40%;
  left: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.gradient-text {
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-purple-indigo);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-purple-indigo);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-accent {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-accent:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 60px) 0 80px 0;
  overflow: hidden;
  background: url('../img/hero-bg.svg') no-repeat center center / cover;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #34d399;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-role {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Hero Metrics Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ==========================================================================
   SECTION: SOBRE MÍ (#sobre-mi) - SOPHISTICATED REBUILD
   ========================================================================== */
.section-about {
  padding: 100px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: start;
}

/* Profile Card (Left column) */
.profile-card {
  background: var(--gradient-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  border: 2px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-purple-light);
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-tagline {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.profile-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.profile-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.profile-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
}

.profile-meta-icon {
  color: var(--accent-purple-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.profile-meta-text {
  color: var(--text-secondary);
}

.profile-meta-text strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.profile-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

/* About Narrative (Right column) */
.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-intro-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  backdrop-filter: blur(12px);
}

.about-intro-title {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.about-intro-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.about-intro-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-intro-text:last-of-type {
  margin-bottom: 0;
}

/* Value Pillars Cards */
.value-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-light);
  margin-bottom: 16px;
}

.pillar-card:nth-child(2) .pillar-icon-box {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.pillar-card:nth-child(3) .pillar-icon-box {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.pillar-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION: HABILIDADES & STACK TÉCNICO (#habilidades)
   ========================================================================== */
.section-skills {
  padding: 100px 0;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.skill-category-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTION: PROYECTOS DESTACADOS (#proyectos)
   ========================================================================== */
.section-projects {
  padding: 100px 0;
  position: relative;
}

/* Filter Buttons */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: var(--gradient-purple-indigo);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

/* Project Cards Stack */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Alternate order for variety */
.project-card:nth-child(even) {
  grid-template-columns: 1fr 1.15fr;
}

.project-card:nth-child(even) .project-media-col {
  order: 2;
}

.project-card:nth-child(even) .project-info-col {
  order: 1;
}

/* Media Column / Window Mockup */
.project-media-col {
  display: flex;
  flex-direction: column;
}

.mockup-window {
  background: #0b0f19;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  position: relative;
}

.mockup-header {
  height: 36px;
  background: #111726;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title-bar {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mockup-body {
  position: relative;
  background: #000000;
  overflow: hidden;
  line-height: 0;
}

.project-gif {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mockup-window:hover .project-gif {
  transform: scale(1.015);
}

/* Info Column */
.project-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.project-badge.genai {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.25);
}

.project-badge.nlp {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.project-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}

.project-summary {
  font-size: 0.98rem;
  color: var(--accent-cyan-light);
  font-weight: 500;
  margin-bottom: 18px;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.project-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.project-feature-item svg {
  color: var(--accent-purple-light);
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   SECTION: CONTACTO (#contacto) & CV
   ========================================================================== */
.section-contact {
  padding: 100px 0 80px 0;
  position: relative;
}

.contact-card-main {
  background: var(--gradient-dark-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.contact-content {
  max-width: 650px;
  margin: 0 auto;
}

.contact-heading {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.contact-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-grid-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.contact-action-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.contact-action-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
}

.contact-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-light);
}

.contact-label {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  word-break: break-all;
}

/* Copy Email Floating Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ==========================================================================
   CV DOWNLOAD MODAL (language picker)
   ========================================================================== */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.cv-modal[hidden] {
  display: none;
}

.cv-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

.cv-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--gradient-dark-card);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-modal.is-open .cv-modal__dialog {
  transform: translateY(0) scale(1);
}

.cv-modal__dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.cv-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.cv-modal__close:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #ffffff;
}

.cv-modal__title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.cv-modal__subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cv-modal__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cv-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.cv-option:hover,
.cv-option:focus-visible {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  outline: none;
}

.cv-option__badge {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.cv-option__lang {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.cv-option__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cv-option__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-purple-light);
}

.cv-modal__close:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .cv-modal__dialog {
    padding: 36px 20px 24px 20px;
  }

  .cv-modal__options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-modal,
  .cv-modal__dialog {
    transition: none;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070b;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-brand strong {
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent-purple-light);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-card {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .value-pillars {
    grid-template-columns: 1fr;
  }

  .project-card, .project-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card:nth-child(even) .project-media-col {
    order: 1;
  }

  .project-card:nth-child(even) .project-info-col {
    order: 2;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Drawer Open */
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #0d111a;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
  }

  .project-card {
    padding: 20px;
  }

  .contact-card-main {
    padding: 36px 20px;
  }
}
