/* VARIABLES Y BASE */
:root{
  --primary:   #3b82f6;
  --secondary: #a855f7;
  --header-h:  64px;
}

html, body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html{
  scroll-behavior: smooth;
}

section{
  scroll-margin-top: calc(var(--header-h) + 16px);
}

main{
  padding-top: var(--header-h);
  animation: fadeInUp 0.6s ease-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.offset-nav{
  padding-top: var(--header-h);
}

.shell{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* CARDS */
.card{
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  transition: box-shadow .2s, transform .15s;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow .2s;
}

.card.animate-visible{
  opacity: 1;
  transform: translateY(0);
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.card h3{
  margin: 0 0 14px;
  font-size: 20px;
  color: #2563eb;
}

/* TÍTULOS */
.section-title{
  margin: 0 0 32px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  animation: scaleIn 0.6s ease-out 0.3s both;
}

.section-title-timeline{
  margin: 0 0 48px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  color: #1f2937;
  position: relative;
  padding: 12px 0 20px;
  animation: fadeInUp 0.8s ease-out;
}

.section-title-timeline::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 80px;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  animation: scaleIn 0.6s ease-out 0.3s both;
}

/* BOTONES */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}

.btn:focus-visible{
  outline: 3px solid rgba(59,130,246,.5);
  outline-offset: 2px;
}

.btn-primary{
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 14px rgba(59,130,246,.25);
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(59,130,246,.35);
}

.btn-outline{
  color: var(--primary);
  background: #fff;
  border-color: rgba(37,99,235,.35);
}

.btn-outline:hover{
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 14px rgba(59,130,246,.25);
}

/* PILLS */
.pillset{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: #4b5563;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  user-select: none;
  cursor: default;
  transition: all 0.25s ease;
}

.pill:hover{
  color: #6366f1;
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.tech-icon{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.pill:hover .tech-icon{
  opacity: 1;
}

.pillset.with-icons .pill{
  padding: 10px 16px 10px 12px;
}

.pillset.small .pill{
  padding: 6px 10px;
  font-size: 13px;
  color: #1e40af;
  background: #eef3ff;
  border-color: rgba(37,99,235,.25);
}

.pillset.small .pill:hover{
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-color: transparent;
}