:root {
    --bg: #0f172a;
    --card: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --accent: #38bdf8;
    --primary: #2563eb;
    --radius: 14px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #e2e8f0;
    overflow-x: hidden;
    background: #0f172a;
    position: relative;
  }
  .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: transparent;
  }
  
  .profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
  }
  
  .profile-pic:hover {
    transform: scale(1.05);
  }
  
  header h1 {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
  }
  
  header p {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  nav a {
    color: #94a3b8;
    margin: 0 0.7rem;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  nav a:hover {
    color: var(--accent);
  }
  
  section {
    margin-top: 3rem;
  }
  
  .card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .card h2 {
    color: var(--accent);
    margin-bottom: 1rem;
  }
  
  .info {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    color: #cbd5e1;
  }
  .info li {
    margin-bottom: 0.3rem;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .project-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: transform 0.2s ease, background 0.3s;
  }
  
  .project-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
  }
  
  .project-card h3 {
    margin: 0;
    color: var(--accent);
  }
  
  .project-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
  }
  
  .project-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
  }
  
  .project-card a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  .project-card a:hover {
    text-decoration: underline;
  }
  
  .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  
  .skills span {
    background: var(--card);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
  }
  
  form {
    display: grid;
    gap: 0.8rem;
  }
  
  input, textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius);
    border: 1px solid #334155;
    background: #1e293b;
    color: var(--text);
  }
  
  .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
  }
  
  .btn.primary {
    background: var(--primary);
    color: #fff;
  }
  
  .btn.secondary {
    color: var(--accent);
    border: 1px solid var(--accent);
  }
  
  .btn.primary:hover {
    background: #1e40af;
  }
  
  footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4rem;
  }
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .job h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .job span {
    color: #94a3b8;
    font-weight: normal;
  }
  
  .job ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #cbd5e1;
    font-size: 0.95rem;
  }
  
  .education-list {
    list-style: none;
    padding: 0;
    color: #cbd5e1;
  }
  
  .education-list li {
    margin-bottom: 0.6rem;
  }
  

  
/* Fondo animado */
.animated-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(120deg, #0f172a, #1e293b, #0f172a);
  background-size: 300% 300%;
  animation: gradient 10s ease infinite;
}
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animaciones hover suaves */
.project-card, .card {
  transition: all 0.4s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.15);
}
.btn.primary {
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn.primary:hover {
  background: #1e40af;
  transform: scale(1.05);
}

/* Texto animado */
#typed-name {
  font-size: 2.5rem;
  color: #38bdf8;
  border-right: 3px solid #38bdf8;
  white-space: nowrap;
  overflow: hidden;
}

  #projects {
    scroll-margin-top: 120px;
  }
