 /* ===== General ===== */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  background: #f4f4f4;
  color: #002fa7;
  padding: 8em 5% 4em 5%;
}

header .header-content {
  max-width: 1000px;
}

header h1 {
  font-family:'Montserrat', sans-serif;
  font-size: 4em;
  margin: 0 0 0.5em 0;
}

header p {
  font-size:1.4em;
  margin: 1em 0 2em 0;
}

header a {
  display:inline-block;
  padding:1em 2em;
  background:#002fa7;
  color:white;
  text-decoration:none;
  border-radius:50px;
  font-weight:bold;
  transition: all 0.3s ease;
}

header a:hover {
  background:#e63946;
  transform: scale(1.05);
}

/* ===== Secciones ===== */
section {
  padding: 6em 5%;
  position: relative;
}

section h2 {
  font-size: 2.5em;
  margin-bottom: 2em;
}

/* ===== Proyectos horizontales ===== */
.projects {
  display: flex;
  flex-direction: column;
  gap: 3em;
}

.project-card {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: #002fa7; /* Klein Blue */
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 25px rgba(0,0,0,0.25);
}

.project-card.left { flex-direction: row; }
.project-card.right { flex-direction: row-reverse; }

.project-card img {
  width: 50%;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-info h3 {
  font-size: 1.8em;
  margin: 0 0 0.5em 0;
}

.project-info p {
  font-size: 1em;
}

.project-info a {
  display: inline-block;
  margin-top: 1em;
  padding: 0.8em 1.5em;
  background: white;
  color: #002fa7;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.project-info a:hover {
  background: #e63946;
  color: white;
}

/* ===== Sobre mí ===== */
#about {
  border-radius: 12px;
}

/* ===== Footer ===== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2em;
}

/* ===== Canvas de formas ===== */
#bauhaus-canvas {
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .project-card, .project-card.left, .project-card.right {
    flex-direction: column;
  }
  .project-card img {
    width: 100%;
    height: auto;
  }
}
