* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background-color: #fafafa;
  line-height: 1.6;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.profile-photo img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 700;
}

.header-text p {
  font-size: 1.1rem;
  opacity: 0.95;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: white;
  margin: 0 0.8rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.7;
}

.section {
  padding: 4rem 1.5rem;
}

.section.dark {
  background-color: #f1f5f9;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #111;
}

p {
  font-size: 1rem;
  color: #444;
}

/* Proyectos */
.projects {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

/* Timeline: Empleo + Educación */
.timeline .job {
  margin-bottom: 1.5rem;
}

.job h3 {
  font-size: 1.2rem;
}

.job span {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.3rem;
}

/* Habilidades */
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skills-list li {
  background-color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-weight: 500;
}

/* Contacto */
.contact-btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #2563eb;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.contact-btn:hover {
  background-color: #1e40af;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  background-color: #2563eb;
  color: white;
  font-size: 0.9rem;
  margin-top: 3rem;
}
.color-white{
  color: white;
}
.row{
  display: flex;
  flex-direction: row;
  position: relative;
}
header img{
  border-radius: 1rem;
  left: 5px;
}

.text-light{
  color: white;
}

/* Responsivo */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .header-text {
    text-align: left;
  }
}
