:root {
  --ink: #161616;
  --paper: #f6f1e9;
  --muted: #6b665e;
  --line: #ddd5c8;
  --red: #ff4d2e;
  --blue: #2f5bff;
  --yellow: #ffc83d;
  --green: #1f9e6e;
  --pink: #ff8fb8;
  --radius: 18px;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

a { color: inherit; }

/* Cabecera */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--paper);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}
.logo span { color: var(--red); }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.nav-cta {
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px 120px;
  overflow: hidden;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  max-width: 13ch;
  position: relative;
  z-index: 1;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-text {
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 28px 0 36px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}
.btn:hover { transform: translateY(-3px); }
.btn-light { background: var(--paper); color: var(--ink); }

/* Formas decorativas */
.shapes {
  position: absolute;
  right: 24px;
  top: 80px;
  width: 360px;
  height: 360px;
}
.shape { position: absolute; display: block; }
.circle {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--yellow);
  top: 0; right: 0;
}
.square {
  width: 150px; height: 150px;
  background: var(--blue);
  bottom: 20px; left: 20px;
  transform: rotate(12deg);
  border-radius: 12px;
}
.half {
  width: 160px; height: 80px;
  background: var(--red);
  border-radius: 160px 160px 0 0;
  bottom: 0; right: 30px;
}

/* Secciones */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px;
  border-top: 1px solid var(--line);
}

.section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head { margin-bottom: 44px; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* Trabajos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.card h3 { font-size: 1.3rem; margin-top: 16px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--paper);
  transition: transform 0.3s;
}
.card:hover .card-img { transform: scale(1.03) rotate(-1deg); }

.c1 { background: var(--red); }
.c2 { background: var(--blue); }
.c3 { background: var(--green); }
.c4 { background: var(--yellow); color: var(--ink); }
.c5 { background: var(--ink); }
.c6 { background: var(--pink); color: var(--ink); }

/* Servicios */
.service-list { list-style: none; }
.service-list li {
  display: flex;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.service-list span {
  font-family: "Space Grotesk", sans-serif;
  color: var(--red);
  font-weight: 700;
  font-size: 1.2rem;
}
.service-list h3 { font-size: 1.6rem; }
.service-list p { color: var(--muted); }

/* Sobre mí */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 7rem;
  font-weight: 700;
}
.about p { max-width: 56ch; margin-top: 16px; font-size: 1.1rem; }

/* Contacto */
.contact {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-align: center;
  border-top: none;
  margin-bottom: 40px;
}
.contact p { margin: 16px 0 32px; opacity: 0.8; }

/* Pie */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Móvil */
@media (max-width: 800px) {
  .nav a:not(.nav-cta) { display: none; }
  .shapes { opacity: 0.35; right: -120px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 200px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 64px 16px; }
  .header, .hero, .footer { padding-left: 16px; padding-right: 16px; }
  .contact { margin-left: 16px; margin-right: 16px; }
}
