/* CSS COMPLETO - COPIA TODO ESTO A styles.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.5;
}

/* Header y navbar */
.header {
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-list a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: #0066ff;
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: #1a1a1a;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  max-width: 960px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-aside {
  flex: 0 0 220px;
}

.hero-img {
  width: 220px !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 16px !important;
  display: block !important;
  border: 3px solid #ffffff !important;
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.15),
    0 4px 12px rgba(0,102,255,0.1) !important;
  filter: brightness(1.05) contrast(1.1) saturate(1.05) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hero-img:hover {
  transform: scale(1.02) translateY(-4px) !important;
  box-shadow: 
    0 20px 48px rgba(0,0,0,0.20),
    0 8px 24px rgba(0,102,255,0.25) !important;
  filter: brightness(1.08) contrast(1.12) saturate(1.08) !important;
  border-color: #0066ff !important;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  color: #1a1a1a !important;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-content p {
  max-width: 34rem;
  font-size: 0.95rem;
  color: #555;
}

/* Secciones inferiores */
section {
  max-width: 960px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.projects,
.about,
.contact {
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.projects h2,
.about h2,
.contact h2 {
  color: #1a1a1a !important;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.projects p,
.about p,
.contact p {
  font-size: 0.95rem;
  color: #555;
}

/* SOBRE MÍ - Timeline */
.timeline {
  max-width: 800px;
  margin: 2rem auto 0;
}

.timeline-item {
  margin-bottom: 3rem;
}

.timeline-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #0066ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.job-header {
  margin-bottom: 1rem;
}

.job-header h3 {
  color: #1a1a1a;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.company {
  font-weight: 600;
  color: #0066ff;
  display: block;
}

.period {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin: 0.25rem 0;
}

.location {
  color: #888;
  font-size: 0.85rem;
}

.job-section {
  margin-bottom: 1rem;
}

.job-section h4 {
  color: #0066ff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.job-section ul {
  list-style: none;
  padding-left: 0;
}

.job-section li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #555;
}

.job-section li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #0066ff;
  font-size: 1rem;
  font-weight: 500;
}

.tech-list {
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.75rem;
}

/* CONTACTO ICONOS */
.contact .github,
.contact .linkedin,
.contact .phone {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

.contact .github img,
.contact .linkedin img,
.contact .phone img {
  width: 24px !important;
  height: 24px !important;
  border-radius: 4px !important;
  background: #f0f0f0 !important;
  padding: 4px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

.contact .github img:hover,
.contact .linkedin img:hover,
.contact .phone img:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0,102,255,0.3) !important;
  background: linear-gradient(135deg, #0066ff, #1e40af) !important;
  filter: brightness(1.1) !important;
}

.contact .github a,
.contact .linkedin a,
.contact .phone a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: color 0.3s ease !important;
}

.contact .github a:hover,
.contact .linkedin a:hover,
.contact .phone a:hover {
  color: #0066ff !important;
}

/* Footer */
.footer {
  border-top: 1px solid #e0e0e0;
  padding: 1rem 0;
  margin-top: 2rem;
  background-color: #ffffff;
}

.footer-links {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-links p {
  color: #888;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-aside {
    width: 100%;
    max-width: 320px;
  }

  .hero-img {
    width: 180px !important;
    height: 180px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  }

  .hero-img:hover {
    transform: scale(1.01) translateY(-2px) !important;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .contact .github img,
  .contact .linkedin img,
  .contact .phone img {
    width: 20px !important;
    height: 20px !important;
    padding: 3px !important;
  }
}
