[data-theme="dark"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--claude-orange);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Profile card mejorada */
.profile-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 15px 50px var(--shadow-medium);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, transparent 0%, rgba(255, 107, 53, 0.05) 100%);
  pointer-events: none;
}

[data-theme="dark"] .profile-card {
  background: linear-gradient(145deg, var(--bg-primary) 0%, #1a1a1a 100%);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .profile-card::before {
  background: linear-gradient(145deg, transparent 0%, rgba(255, 140, 66, 0.08) 100%);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--claude-orange), var(--claude-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  position: relative;
  z-index: 1;
}

/*About grid*/
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}


/* Fondo estático por defecto */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Animación solo en pantallas grandes */
@media (min-width: 769px) {
  .hero {
    background: transparent;
  }
}

/* Fondo estático en móviles */
@media (max-width: 768px) {
  .hero {
    background: linear-gradient(135deg, 
      #f0f2f5 0%, 
      #e4e6ea 50%, 
      #f0f2f5 100%) !important;
  }
  
  [data-theme="dark"] .hero {
    background: linear-gradient(135deg, 
      #1a1a1a 0%, 
      #2d2d2d 50%, 
      #1f1f1f 100%) !important;
  }
}

/* Contact items mejorados */
.contact-item {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-medium);
  border-color: var(--claude-orange);
}

[data-theme="dark"] .contact-item {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, #1f1f1f 100%);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contact-item:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 140, 66, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--claude-orange), var(--claude-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Skills mejoradas */
.skill-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--claude-orange), var(--claude-brown));
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  position: relative;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: skill-shine 2s infinite;
}

@keyframes skill-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

[data-theme="dark"] .skill-progress {
  background: linear-gradient(90deg, var(--claude-orange), #d4580a);
  box-shadow: 0 2px 10px rgba(255, 140, 66, 0.4);
}

/* Footer mejorado */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--claude-orange), transparent);
  opacity: 0.5;
}

[data-theme="dark"] .footer {
  background: linear-gradient(145deg, var(--bg-secondary) 0%, #0f0f0f 100%);
}
/* Trama de olas para el hero section */

/* .hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
   content: '';
   position: absolute;
   inset: 0;
   background-image: radial-gradient(circle at 1px 1px, rgba(180, 180, 180, 0.3) 1px, transparent 0);
   background-size: 30px 30px;
   animation: wave-shift 8s linear infinite;
   z-index: 1;
   pointer-events: none;
}

.hero::before {
   content: '';
   position: absolute;
   inset: 0;
   background-image: radial-gradient(circle at 1px 1px, rgba(180, 180, 180, 0.25) 1px, transparent 0);
   background-size: 30px 30px;
   animation: wave-scale 6s ease-in-out infinite alternate;
   z-index: 1;
   pointer-events: none;
}

/* desplazamiento ondulante */






/* Modo oscuro */
/* [data-theme="dark"] .hero::after {
   background-image: 
       radial-gradient(circle at 1px 1px, rgba(120, 120, 120, 0.2) 1px, transparent 0);
} */

/* Responsive mejorado */
@media (max-width: 768px) {
  .theme-toggle {
    top: 15px;
    right: 15px;
    padding: 10px 15px;
  }
  
  #theme-text {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
 
  
  .hero-buttons {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}/* CV Profesional - Estilo Claude con Modo Claro/Oscuro */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables CSS */
:root {
  /* Colores modo claro */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #dee2e6;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  
  /* Claude colors */
  --claude-orange: #ff6b35;
  --claude-brown: #8b4513;
  --claude-beige: #f4e4bc;
  --claude-cream: #faf7f0;
  --accent-blue: #0066cc;
  --accent-green: #28a745;
  --accent-purple: #6f42c1;
}

[data-theme="dark"] {
  /* Colores modo oscuro */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #404040;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --border-color: #4a4a4a;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.5);
  --claude-cream: #2a2a2a;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: black;
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Toggle Theme */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

.theme-icon {
  font-size: 18px;
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0;
  padding: 0 20px;
}



.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--claude-orange), var(--claude-brown));
  border-radius: 2px;
}



/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--claude-orange);
  color: white;
}

.btn-primary:hover {
  background: var(--claude-brown);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--claude-orange);
}

/* Header/Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: rgba(250, 247, 240, 0); /* Muy transparente */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  /*background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6b35' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");*/
  background-color: transparent;
  background: transparent;
  opacity: 0.5;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-text .subtitle {
  font-size: 1.5rem;
  color: var(--claude-orange);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 90%;
}

.profile-card {
  background: black;
  z-index: 100;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 10px var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--claude-orange), var(--claude-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  margin: 0 auto 1rem;
  overflow: hidden;
  object-fit: fill;
  ;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--claude-orange) 0%, 
        var(--claude-brown) 50%, 
        var(--claude-orange) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .timeline::before {
    background: linear-gradient(to bottom, 
        var(--claude-orange) 0%, 
        #b8651c 50%, 
        var(--claude-orange) 100%);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--claude-orange);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    z-index: 2;
}

.timeline-item:nth-child(odd)::before {
    right: calc(50% - 7px);
}

.timeline-item:nth-child(even)::before {
    left: calc(50% - 7px);
}

[data-theme="dark"] .timeline-item::before {
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.6);
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -16px;
    border-left-color: var(--bg-secondary);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -16px;
    border-right-color: var(--bg-secondary);
}

.timeline-date {
    color: var(--claude-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline {
        position: relative;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .timeline::before {
        left: 30px;
        transform: none;
        width: 3px;
        background: linear-gradient(to bottom, 
            var(--claude-orange) 0%, 
            var(--claude-brown) 50%, 
            var(--accent-blue) 100%);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        margin-bottom: 40px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .timeline-item::before {
        left: 24px;
        top: 24px;
        width: 14px;
        height: 14px;
        background: var(--claude-orange);
        border: 3px solid var(--bg-primary);
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
    }
    
    .timeline-item:nth-child(2)::before {
        background: var(--claude-brown);
        box-shadow: 0 0 15px rgba(139, 69, 19, 0.6);
    }
    
    .timeline-item:nth-child(3)::before {
        background: var(--accent-blue);
        box-shadow: 0 0 15px rgba(0, 102, 204, 0.6);
    }
    
    .timeline-content {
        width: 100%;
        margin: 0;
    }
    
    .timeline-content::before {
        left: -20px;
        top: 20px;
        border: 10px solid transparent;
        border-right-color: var(--bg-secondary);
        border-left-color: transparent;
    }
    
    [data-theme="dark"] .timeline-content::before {
        border-right-color: var(--bg-secondary);
    }
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--claude-orange);
  border-radius: 50%;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-header {
  display: flex;
  justify-content: between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skill-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--claude-orange), var(--claude-brown));
  border-radius: 3px;
  transition: width 1s ease-in-out;
  width: 0%;
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.education-card {
  text-align: center;
  position: relative;
}

.education-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--claude-orange), var(--claude-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
}

.education-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.education-period {
  color: var(--claude-orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-school {
  color: var(--text-secondary);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
  border-color: var(--claude-orange);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--claude-orange), var(--claude-brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 1rem;
}

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

.contact-info {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item {
    padding-left: 4rem;
    padding-right: 0;
  }
  
  .timeline-item::before {
    left: calc(2rem - 6px);
  }
  
  .timeline-content::before {
    left: -16px;
    border-right-color: var(--bg-secondary);
    border-left-color: transparent;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility classes */
.text-center { text-align: center; }
.text-orange { color: var(--claude-orange); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* Canvas de Three.js como background */
#container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Detrás de todo el contenido */
  pointer-events: none; /* No interfiere con los clics */
  overflow: hidden;
}

#container canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Asegurar que el contenido esté por encima */
.hero,
.section,
.theme-toggle {
  position: relative;
  z-index: 1;
}



[data-theme="dark"] .hero {
  background: rgba(31, 31, 31, 0.1); /* Muy transparente */
}



/* Forzar transparencia en hero - agregar al final del archivo */
.hero {
  background: transparent !important;
}

[data-theme="dark"] .hero {
  background: transparent !important;
}

/* Si hay un ::before o ::after que cause el fondo gris */
.hero::before,
.hero::after {
  display: none !important;
}

/* Asegurar que no hay otros fondos */
.hero-content,
.hero-text,
.container {
  background: transparent !important;
}

