/* ====== BASE ====== */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #0f2027, #203a43, #2c5364);
  color: #eee;
  margin: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
}

section {
  max-width: 900px;
  margin: 4rem auto;
  background: rgba(255,255,255,0.08);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ====== HEADER ====== */
header {
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: linear-gradient(135deg, #0078d7, #00c6ff);
  color: white;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

#typing-text {
  font-size: 1.2rem;
  border-right: 2px solid rgba(255,255,255,0.8);
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 3s steps(50, end) forwards, blink 0.8s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ====== HABILIDADES (mejorado) ====== */
#skills {
  background: linear-gradient(135deg, #00b4ff, #0078d7);
  color: #fff;
  padding: 3rem 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Tarjetas */
.skill-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  text-align: center;
  padding: 1.5rem 1rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.7s ease;
  backdrop-filter: blur(6px);
}

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

.skill-card p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

/* Imágenes debajo del texto */
.skill-card img {
  width: 70px;
  height: auto;
  margin-top: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) brightness(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover */
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.skill-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.4);
}
