/* Importa las fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;700&family=Open+Sans:wght@400;600&display=swap');

/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos base */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
}

/* Encabezado */
header {
  background: #35424a;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-content {
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

header img {
  width: 250px;
  height: 250px;
  border-radius: 10%;
  border: 5px solid #fff;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.1);
}

header h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
}

/* Secciones */
section {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-family: 'Merriweather', serif;
  margin-bottom: 1rem;
  border-bottom: 2px solid #35424a;
  display: inline-block;
  padding-bottom: 0.5rem;
}

section p,
section li {
  margin-bottom: 1rem;
}

/* Bloques de experiencia */
.job {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 5px solid #35424a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.job:hover {
  transform: translateX(10px);
}

.job h3 {
  font-family: 'Merriweather', serif;
  margin-bottom: 0.5rem;
}

.job .position {
  font-weight: 600;
  color: #777;
  display: block;
  margin-bottom: 0.5rem;
}

/* Lista de educación y certificaciones */
#educacion ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* Contacto */
#contacto a {
  color: #35424a;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contacto a:hover {
  color: #e8491d;
}

/* Pie de página */
footer {
  background: #35424a;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* Diseño responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .job {
    margin-left: 0;
  }
}
/* Sección Blog */
#blog {
    padding: 3rem 2rem;
    text-align: center;
  }
  
  #blog h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
  }
  
  #blog p {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
  
  /* BLOG CARDS */
  .blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .blog-card {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .blog-card img {
    width: 70%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
  }
  
  .blog-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  