/* Tema sobrio, oscuro y casual */

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-soft: #1e222b;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #7aa2f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* HERO */
.hero {
  display: flex;
  gap: 4rem;
  align-items: center;
  padding: 3rem 4rem;
  background: linear-gradient(180deg, #0f1115, #171a21);
}

.hero-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #2a2f3a;
}

.hero-text h1 {
  margin: 0;
  font-size: 2rem;
}

.hero-text h2 {
  margin-top: 0.5rem;
  font-weight: 400;
  color: var(--muted);
}

/* LAYOUT 2 COLUMNAS */
.layout {
  max-width: 1400px;
  margin: 1rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

/* Sidebar */
.sidebar section {
  margin-bottom: 2.5rem;
  margin-right: 2.5rem;
}

/* Projects */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(133deg, #232f49, #1e2330);
}

.project-image {
  min-height: 200px;
  background: #333; /* fallback si la imagen no carga */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h4 {
  margin-top: 0;
}

.status {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(122,162,247,0.15);
  color: var(--accent);
}

.status.paused {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}

.tech {
  font-size: 0.8rem;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 180px;
  }
}

@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}
