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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-tertiary: #1a1a24;
  --accent-primary: #8b5cf6;
  --accent-secondary: #ec4899;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --border-color: rgba(139, 92, 246, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  bottom: -200px;
  right: -200px;
  animation-delay: 7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #3b82f6;
  top: 50%;
  left: 50%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-100px, 100px) scale(0.9);
  }
}

/* Header */
.header {
  background: rgba(19, 19, 26, 0.8);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
}

/* Main */
.main {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

/* Hero About */
.hero-about {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 60px;
}

.profile-image {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-primary);
  position: relative;
  z-index: 2;
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent-secondary);
  animation: pulse-ring 2s infinite;
}

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

.page-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Content */
.about-content {
  display: grid;
  gap: 30px;
  margin-bottom: 60px;
}

.content-card {
  background: rgba(19, 19, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.content-card h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.content-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
}

.features-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Skills Section */
.skills-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.skill-card {
  background: rgba(19, 19, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.skill-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 14px;
  color: var(--text-secondary);
}
.timeline-section {
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  padding-left: 96px; /* espacio para la línea y los puntos (ajustable) */
  display: block;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 48px;              /* centro de la columna de puntos (relativo al contenedor) */
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(139,92,246,0.9), rgba(236,72,153,0.9));
  border-radius: 2px;
  opacity: 0.9;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  min-height: 72px;
  display: block;
}

/* mover el punto hacia la izquierda respecto al contenido (negativo)
   para que quede sobre la línea (la línea está en 48px; el contenido empieza en padding-left) */
.timeline-dot {
  position: absolute;
  left: -53.3px;              /* NEGATIVO: 48 - padding-left(96) = -48 */
  top: 50%;
  transform: translateY(-50%); /* solo centrar verticalmente */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  box-shadow: 0 0 0 6px rgba(139,92,246,0.08), 0 0 18px rgba(139,92,246,0.08);
  border: 3px solid var(--accent-primary);
  z-index: 3;
}

/* Contenido: tarjeta con padding y separación clara del punto */
.timeline-content {
  background: rgba(19,19,26,0.55);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text-secondary);
  transition: transform .22s ease;
}

.timeline-content h3 {
  margin: 0 0 8px;
  color: var(--accent-primary);
  font-weight: 700;
}

.timeline-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline { padding-left: 72px; }
  .timeline::before { left: 36px; width: 2px; }
  .timeline-dot { left: -36px; width: 12px; height: 12px; transform: translateY(-50%); }
  .timeline-content { padding: 14px; }
}

/* CTA Section */
.cta-section {
  margin-bottom: 60px;
}

.cta-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-card h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Footer */
.footer {
  background: rgba(19, 19, 26, 0.8);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 36px;
  }

  .page-subtitle {
    font-size: 16px;
  }

  .content-card {
    padding: 24px;
  }

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

  .nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 14px;
  }

  .timeline { padding-left: 72px; }
  .timeline::before { left: 36px; width: 2px; }
  .timeline-dot { left: -36px; width: 12px; height: 12px; transform: translateY(-50%); }
  .timeline-content { padding: 14px; }
}