/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  --background: #ffffff;
  --foreground: #1a1a2e;
  --card: #fafafa;
  --card-foreground: #1a1a2e;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #1a1a2e;
  --muted: #e2e8f0;
  --muted-foreground: #64748b;
  --accent: #059669;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #f1f5f9;
  --ring: #2563eb;
  --chart-1: #2563eb;
  --chart-3: #8b5cf6;
  --destructive: #ef4444;
  --radius: 0.75rem;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-chart-1 { color: var(--chart-1); }
.text-chart-3 { color: var(--chart-3); }

/* ========================================
   Utility Classes
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden { display: none !important; }

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.glow-button:hover::before {
  left: 100%;
}

.glow-button:hover {
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 40%, transparent),
              0 0 40px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* ========================================
   Cards
   ======================================== */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  padding: 0.375rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  color: var(--primary);
  transition: background-color 0.3s ease;
}

.logo:hover .logo-icon {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-menu {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-link {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-link:hover {
  color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.mobile-cta {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 50%, transparent) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.code-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.code-line {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--primary) 10%, transparent);
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 900px;
}

.terminal-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.typing-container {
  height: 3rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-text {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.75rem);
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.5rem;
  background-color: var(--accent);
  margin-left: 0.25rem;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.specialty-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.specialty-badge:hover {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.specialty-badge svg {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.specialty-badge:hover svg {
  transform: scale(1.1);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: color-mix(in srgb, var(--primary) 50%, transparent);
  animation: bounce 2s infinite;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--primary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 5rem 1rem;
}

.section-alt {
  background-color: color-mix(in srgb, var(--card) 30%, transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-title.text-left {
  text-align: left;
}

.section-description {
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   Skills Section
   ======================================== */
.skills-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  padding: 1.5rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  backdrop-filter: blur(8px);
}

.skill-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-icon {
  padding: 0.5rem;
  background-color: var(--secondary);
  border-radius: 0.5rem;
}

.skill-title {
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.skill-card:hover .skill-title {
  color: var(--primary);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.skill-percent {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}

.progress-bar {
  height: 0.5rem;
  background-color: var(--secondary);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar.large {
  height: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content .section-tag {
  margin-bottom: 1rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.about-text strong {
  color: var(--foreground);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
  border-radius: 0.5rem;
}

.stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.highlights-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.highlight-card {
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.highlight-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.highlight-card:hover h3 {
  color: var(--primary);
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   Projects Section
   ======================================== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--foreground);
}

.filter-btn:hover {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.project-card.hidden-project {
  display: none;
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px; /* puedes ajustar esto */
  overflow: hidden;
  border-radius: 12px 12px 0 0; /* opcional */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔥 clave para que se vea bien */
  display: block;
}



.project-image.security-bg {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--primary) 20%, transparent),
    color-mix(in srgb, var(--accent) 20%, transparent));
}

.project-image.web-bg {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--accent) 20%, transparent),
    color-mix(in srgb, var(--primary) 20%, transparent));
}

.project-image svg {
  color: color-mix(in srgb, var(--primary) 30%, transparent);
  transition: transform 0.3s ease;
}

.project-card:hover .project-image svg {
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.project-badge.security {
  background-color: color-mix(in srgb, var(--primary) 80%, transparent);
  color: var(--primary-foreground);
}

.project-badge.web {
  background-color: color-mix(in srgb, var(--accent) 80%, transparent);
  color: var(--accent-foreground);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
  border-radius: 0.25rem;
}

.project-buttons {
  display: flex;
  gap: 0.5rem;
}

.project-buttons .btn {
  flex: 1;
}

/* ========================================
   Experience Section
   ======================================== */
.platforms-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-card {
  padding: 1.5rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  backdrop-filter: blur(8px);
}

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.platform-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--background);
}

.platform-icon.tryhackme {
  background: linear-gradient(135deg, #88cc14, #5a9900);
}

.platform-icon.hackthebox {
  background: linear-gradient(135deg, #9fef00, #7fcc00);
}

.platform-name {
  font-weight: 600;
  transition: color 0.3s ease;
}

.platform-card:hover .platform-name {
  color: var(--primary);
}

.platform-rank {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
}

.platform-progress {
  margin-bottom: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.progress-value {
  font-family: var(--font-mono);
  color: var(--primary);
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.platform-stat {
  text-align: center;
  padding: 0.75rem;
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
  border-radius: 0.5rem;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-name {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.achievements-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.achievement-card {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.achievement-card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.achievement-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 9999px;
  color: var(--primary);
  transition: background-color 0.3s ease;
}

.achievement-card:hover .achievement-icon {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.achievement-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.achievement-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.achievement-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   Education Section
   ======================================== */
.education-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .education-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.education-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-card {
  padding: 1.5rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  backdrop-filter: blur(8px);
}

.education-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.education-icon {
  flex-shrink: 0;
  padding: 0.75rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  color: var(--primary);
}

.education-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.education-institution {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.education-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.status-badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  background-color: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 9999px;
}

.education-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.certifications-card,
.courses-card {
  padding: 1.5rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  backdrop-filter: blur(8px);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-title h3 {
  font-size: 1.125rem;
}

.cert-icon {
  padding: 0.5rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  color: var(--primary);
}

.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.certification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: color-mix(in srgb, var(--secondary) 30%, transparent);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.certification-item:hover {
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.cert-title {
  font-weight: 500;
}

.cert-issuer {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.cert-status {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
}

.cert-status.completed {
  background-color: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.cert-status.progress {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.cert-status.planned {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background-color: color-mix(in srgb, var(--secondary) 30%, transparent);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.course-item:hover {
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.course-name {
  font-weight: 500;
  transition: color 0.3s ease;
}

.course-item:hover .course-name {
  color: var(--primary);
}

.course-platform {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.course-year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
}

.learning-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.methods-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.method-card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.method-icon {
  flex-shrink: 0;
  padding: 0.75rem;
  background-color: var(--secondary);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.method-card:hover .method-icon {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.method-info {
  flex: 1;
  min-width: 0;
}

.method-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.method-value {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.method-card:hover .method-value {
  color: var(--primary);
}

.method-arrow {
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.method-card:hover .method-arrow {
  color: var(--primary);
}

.terminal-box {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}

.dot.red { background-color: color-mix(in srgb, var(--destructive) 80%, transparent); }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: color-mix(in srgb, var(--accent) 80%, transparent); }

.terminal-content {
  color: var(--muted-foreground);
}

.terminal-line {
  margin-bottom: 0.25rem;
}

.terminal-output {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

.contact-form-card {
  padding: 1.5rem;
  background-color: color-mix(in srgb, var(--card) 50%, transparent);
  backdrop-filter: blur(8px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea {
  resize: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-icon.small {
  padding: 0.375rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-copyright .heart {
  color: var(--destructive);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-copyright .code-tag {
  font-family: var(--font-mono);
  color: var(--primary);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a {
  padding: 0.5rem;
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ========================================
   Selection
   ======================================== */
::selection {
  background: color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--foreground);
}

/* ============================================================= */
/* ===  ESTILOS ADICIONALES PARA LAS TARJETAS DE PROYECTOS  ==== */
/* ============================================================= */
/* Pega este CSS al final de tu hoja de estilos.                 */
/* Está pensado para complementar tus clases existentes          */
/* (.project-card, .project-content, .tag, .btn, etc.)           */
/* ============================================================= */

/* ---- Lista de características destacadas ---- */
.project-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted, #94a3b8);
}

.project-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  transform: rotate(45deg);
}

/* ---- Tarjeta destacada ---- */
.project-card.featured {
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15),
              0 18px 40px -18px rgba(99, 102, 241, 0.45);
}

.project-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.6), rgba(99, 102, 241, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---- Estrella de destacado ---- */
.project-star {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fcd34d;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(252, 211, 77, 0.35);
}

/* ---- Fondos por categoría (degradados temáticos) ---- */
.project-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  color: #fff;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, #fff 1px, transparent 1px);
  background-size: 22px 22px;
}

.web-bg        { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.ecommerce-bg  { background: linear-gradient(135deg, #6366f1, #9333ea); }
.health-bg     { background: linear-gradient(135deg, #0d9488, #0e7490); }
.food-bg       { background: linear-gradient(135deg, #d97706, #b45309); }
.app-bg        { background: linear-gradient(135deg, #1e293b, #0f172a); }
.edu-bg        { background: linear-gradient(135deg, #db2777, #7c3aed); }

.project-image svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s ease;
}

.project-card:hover .project-image svg {
  transform: scale(1.12) rotate(-4deg);
}

/* ---- Badges por categoría ---- */
.project-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  z-index: 1;
}

/* ---- Animación de entrada escalonada ---- */
.project-card {
  animation: cardIn 0.6s ease both;
}

.project-card:nth-child(1)  { animation-delay: 0.05s; }
.project-card:nth-child(2)  { animation-delay: 0.10s; }
.project-card:nth-child(3)  { animation-delay: 0.15s; }
.project-card:nth-child(4)  { animation-delay: 0.20s; }
.project-card:nth-child(5)  { animation-delay: 0.25s; }
.project-card:nth-child(6)  { animation-delay: 0.30s; }
.project-card:nth-child(7)  { animation-delay: 0.35s; }
.project-card:nth-child(8)  { animation-delay: 0.40s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card { animation: none; }
}

/* ---- Refuerzo de descripción ---- */
.project-description strong {
  color: var(--text-strong, #e2e8f0);
  font-weight: 600;
}
