@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #030614;
  --bg-secondary: #0a0f29;
  --bg-card: rgba(15, 23, 42, 0.6);
  --accent-neon: #00ffa3;
  --accent-blue: #00a3ff;
  --accent-purple: #a855f7;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 15px rgba(0, 163, 255, 0.4);
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1.5rem;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

/* Dark/Light Theme Variables */
.dark-theme {
  --bg-primary: #030614;
  --bg-secondary: #0a0f29;
  --bg-card: rgba(15, 23, 42, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
}

:root:not(.dark-theme) {
  --bg-primary: #f8fafc;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(241, 245, 249, 0.8);
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--bg-secondary);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 255, 163, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 163, 255, 0.08) 0%, transparent 25%);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  position: relative;
}

.loader svg {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

button {
  cursor: pointer;
  font-family: var(--font-main);
  border: none;
  background: none;
}

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

/* Layout y contenedores */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

/* Header y Navegación */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 163, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background-color: rgba(3, 6, 20, 0.8);
}

.dark-theme nav {
  background-color: rgba(3, 6, 20, 0.8);
}

:root:not(.dark-theme) nav {
  background-color: rgba(248, 250, 252, 0.8);
}

.nav-scrolled {
  padding: 1rem 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

:root:not(.dark-theme) .nav-scrolled {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-size: 0.8em;
  opacity: 0.9;
}

.logo-icon {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  border-radius: 8px;
  position: relative;
}

.logo-icon::before, .logo-icon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  top: 50%;
  transform: translateY(-50%);
}

.logo-icon::before {
  left: 7px;
}

.logo-icon::after {
  right: 7px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue));
  transition: var(--transition);
  border-radius: 1px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-neon);
}

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

.burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 25px;
  position: relative;
}

.burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger span:nth-child(1) {
  top: 0px;
}

.burger span:nth-child(2), .burger span:nth-child(3) {
  top: 10px;
}

.burger span:nth-child(4) {
  top: 20px;
}

.burger.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.burger.open span:nth-child(2) {
  transform: rotate(45deg);
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.burger.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.theme-toggle .fa-sun {
  display: none;
}

.theme-toggle .fa-moon {
  display: block;
}

.dark-theme .theme-toggle .fa-sun {
  display: block;
}

.dark-theme .theme-toggle .fa-moon {
  display: none;
}

/* Hero Section */
.hero-content {
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-neon);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue), var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue));
  color: var(--bg-primary);
  border: none;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.btn-primary::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: 0.7s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 255, 163, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

:root:not(.dark-theme) .btn-outline {
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 1s ease, transform 0.3s ease;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.scroll-indicator span {
  font-weight: 500;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-secondary);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: var(--accent-neon);
  border-radius: 2px;
  animation: scrollAnim 1.5s ease-out infinite;
  opacity: 0.8;
  position: absolute;
  top: 8px;
}

@keyframes scrollAnim {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

/* Secciones y Componentes */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

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

.section-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}

:root:not(.dark-theme) .project-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition), opacity 0.8s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 163, 255, 0.2);
  border-color: rgba(0, 163, 255, 0.2);
}

.project-header {
  background: linear-gradient(45deg, rgba(10, 15, 41, 0.95), rgba(15, 23, 42, 0.95));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

:root:not(.dark-theme) .project-header {
  background: linear-gradient(45deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.95));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-logo {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.project-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
}

.project-title-container {
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.project-subtitle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background-color: rgba(0, 255, 163, 0.1);
  color: var(--accent-neon);
  font-weight: 500;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 88px); /* Ajustar según la altura del header */
}

.project-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.project-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(15, 23, 42, 0.4);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

:root:not(.dark-theme) .project-stats {
  background-color: rgba(241, 245, 249, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-neon);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.project-footer {
  display: flex;
  gap: 1rem;
}

.github-button {
  flex: 1;
  padding: 0.875rem;
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.github-button:hover {
  background-color: var(--accent-blue);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(0, 163, 255, 0.4);
}

.github-button i {
  transition: var(--transition);
}

.github-button:hover i {
  transform: translateX(5px);
}

.live-demo-button {
  padding: 0.875rem;
  background: rgba(0, 255, 163, 0.1);
  color: var(--accent-neon);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
}

.live-demo-button:hover {
  background: var(--accent-neon);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(0, 255, 163, 0.4);
}

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

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.about-subtitle {
  color: var(--accent-blue);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.about-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.about-stat {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

:root:not(.dark-theme) .about-stat {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-stat:hover {
  border-color: var(--accent-neon);
  transform: translateY(-5px);
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-neon);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.about-stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.skills-container {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

:root:not(.dark-theme) .skills-container {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.skills-header {
  margin-bottom: 2rem;
}

.skills-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.skills-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  margin-bottom: 2rem;
}

.skill-category-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  position: relative;
  padding-left: 1rem;
}

.skill-category-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(to bottom, var(--accent-neon), var(--accent-blue));
  border-radius: 2px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background-color: rgba(0, 255, 163, 0.1);
  color: var(--accent-neon);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: rgba(0, 255, 163, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.specialty-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  background-color: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

:root:not(.dark-theme) .specialty-item {
  background-color: rgba(241, 245, 249, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.specialty-item:hover {
  background-color: rgba(15, 23, 42, 0.6);
  transform: translateX(5px);
  border-color: rgba(0, 163, 255, 0.2);
}

:root:not(.dark-theme) .specialty-item:hover {
  background-color: rgba(241, 245, 249, 0.8);
}

.specialty-icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  color: var(--bg-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.specialty-text {
  flex: 1;
}

.specialty-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.specialty-description {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Experiencia y Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-neon), var(--accent-blue));
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content {
  position: relative;
  width: calc(50% - 30px);
  padding: 1.5rem;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

:root:not(.dark-theme) .timeline-content {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  border-left: 3px solid var(--accent-blue);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
  border-right: 3px solid var(--accent-neon);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  position: absolute;
  width: 80px;
  height: 30px;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue));
  color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-date {
  left: -40px;
}

.timeline-item:nth-child(even) .timeline-date {
  right: -40px;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--accent-neon);
  border-radius: 50%;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.6);
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-company i {
  font-size: 0.875rem;
}

.timeline-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  background-color: rgba(0, 163, 255, 0.1);
  color: var(--accent-blue);
}

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

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
}

:root:not(.dark-theme) .service-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition), opacity 0.8s ease, transform 0.8s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(0, 255, 163, 0.03), rgba(0, 163, 255, 0.03));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 163, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  border-radius: 20px;
  color: var(--bg-primary);
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}

.service-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
}

.service-content {
  padding: 2rem;
  text-align: center;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.service-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  border-radius: 1.5px;
  bottom: -8px;
  left: 25%;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue));
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  text-align: left;
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.service-feature i {
  color: var(--accent-neon);
  margin-top: 0.2rem;
}

/* Testimonials */
.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 1rem;
}

.testimonial-inner {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

:root:not(.dark-theme) .testimonial-inner {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-inner::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: -15px;
  left: -15px;
  font-size: 5rem;
  color: rgba(0, 255, 163, 0.05);
  z-index: 0;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-blue);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-position {
  color: var(--accent-neon);
  font-size: 0.875rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.testimonial-rating i {
  color: #FFD700; /* Gold */
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

:root:not(.dark-theme) .testimonial-dot {
  background-color: rgba(0, 0, 0, 0.2);
}

.testimonial-dot.active {
  background-color: var(--accent-neon);
  transform: scale(1.2);
}

.testimonial-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 2;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: var(--transition);
}

:root:not(.dark-theme) .testimonial-arrow {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-arrow:hover {
  background-color: var(--accent-blue);
  color: var(--bg-primary);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

:root:not(.dark-theme) .blog-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 163, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-title a {
  transition: var(--transition);
}

.blog-title a:hover {
  color: var(--accent-blue);
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

:root:not(.dark-theme) .blog-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.read-more i {
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-blue);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Contacto */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

:root:not(.dark-theme) .contact-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  border-color: rgba(0, 163, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue));
  border-radius: 1.5px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.contact-value {
  font-weight: 500;
  transition: var(--transition);
}

.contact-link:hover .contact-value {
  color: var(--accent-neon);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:root:not(.dark-theme) .social-link {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  color: var(--bg-primary);
  transform: translateY(-3px);
  border-color: transparent;
}

.contact-form {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

:root:not(.dark-theme) .contact-form {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

:root:not(.dark-theme) .form-control {
  background-color: rgba(241, 245, 249, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(0, 163, 255, 0.2);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-control.error {
  border-color: #ff4d4d;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-primary.success {
  background: #10b981;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 255, 163, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 90%, rgba(0, 163, 255, 0.05) 0%, transparent 20%);
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.footer-about {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 1rem;
}

:root:not(.dark-theme) .footer-social a {
  background-color: rgba(0, 0, 0, 0.05);
}

.footer-social a:hover {
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-blue));
  border-radius: 1.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a i {
  font-size: 0.8rem;
  color: var(--accent-neon);
}

.footer-links a:hover {
  color: var(--accent-neon);
  transform: translateX(5px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 2rem 0;
}

:root:not(.dark-theme) .footer-divider {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.footer-copyright a {
  color: var(--accent-neon);
  font-weight: 500;
}

.footer-legal a {
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--accent-neon);
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--accent-neon), var(--accent-blue));
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.6);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }

  .about-grid {
    gap: 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-company {
    grid-column: span 3;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .timeline::before {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline-item:nth-child(even) .timeline-content {
    border-right: none;
    border-left: 3px solid var(--accent-neon);
  }

  .timeline-date {
    left: 0 !important;
    right: auto !important;
    top: -40px !important;
    transform: none !important;
  }

  .timeline-dot {
    left: 30px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-company {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.5s ease-in-out;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: block;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .projects-grid, 
  .services-grid, 
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-company {
    grid-column: auto;
  }

  .testimonial-arrows {
    display: none;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .section-title::after {
    width: 40px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .project-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .stat {
    width: 100%;
  }

  .testimonial-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}