/* Reset y tipografía */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}
nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
}
nav a.active {
  font-weight: bold;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
  padding: 1rem;
  min-height: calc(100vh - 80px); /* full height minus header */
}

.bento-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-item.big {
  grid-column: span 2;
  grid-row: span 2;
  font-size: 8rem;
  font-weight: bold;
  text-align: center;
}

.bento-item.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.bento-item.side {
  grid-column: span 2;
}

.bento-item.info {
  grid-column: span 3;
}

/* Botones */
button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
}
button:first-child {
  background: black;
  color: white;
}
button:last-child {
  background: white;
  border: 1px solid black;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item.big {
    grid-column: span 2;
    font-size: 5rem;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item {
    grid-column: span 1;
  }
  .bento-item.big {
    font-size: 3rem;
  }
}
