/* ===== Variables ===== */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --text: #1c1b19;
  --muted: #6e6a63;
  --line: #e2ddd4;
  --accent: #c8553d;
  --dark: #1c1b19;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --max: 1120px;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav .nav__cta {
  color: var(--text);
  border: 1px solid var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav .nav__cta:hover {
  background: var(--text);
  color: var(--bg);
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 120px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__text {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent);
}

.btn--ghost {
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--text);
}

/* ===== Sections ===== */
.section {
  padding: 110px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section__sub {
  color: var(--muted);
}

/* ===== Trabajos ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  cursor: pointer;
}

.card__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.card__img span {
  font-family: var(--font-display);
  font-size: 4.5rem;
  transition: transform 0.4s ease;
}

.card:hover .card__img span {
  transform: scale(1.12);
}

.card__img--1 { background: #e9d8c4; color: #7a4b2a; }
.card__img--2 { background: #2f3a32; color: #e9e3d3; }
.card__img--3 { background: #c8553d; color: #faf8f5; }
.card__img--4 { background: #d9dfe6; color: #2e3a4a; }

.card__body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
}

.card__body h3 {
  font-size: 1.05rem;
  font-weight: 500;
}

.card__body p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Sobre mí ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}

.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ddd5c8, #cbbfae);
  display: grid;
  place-items: center;
  color: #8a7f70;
  font-size: 0.9rem;
}

.about__text p {
  color: var(--muted);
  margin-top: 18px;
}

.about__text .eyebrow {
  margin-top: 0;
  color: var(--accent);
}

.about__text .section__title {
  margin-bottom: 8px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 28px;
}

.tools li {
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

/* ===== Servicios ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service {
  padding: 36px 28px 0 0;
}

.service + .service {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.service__num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.95rem;
}

.service h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 12px 0 8px;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Contacto ===== */
.section--dark {
  background: var(--dark);
  color: var(--bg);
}

.contact {
  text-align: center;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.contact__text {
  color: #a8a39a;
  margin-top: 14px;
}

.contact__mail {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.contact__mail:hover {
  color: var(--accent);
}

.social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  font-size: 0.9rem;
}

.social a {
  color: #a8a39a;
  transition: color 0.2s;
}

.social a:hover {
  color: var(--bg);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: #8a857d;
  font-size: 0.85rem;
  border-top: 1px solid #2e2c29;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer a:hover {
  color: var(--bg);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photo {
    max-width: 360px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service,
  .service + .service {
    padding: 28px 0;
    border-left: none;
  }

  .service + .service {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .nav a:not(.nav__cta) {
    display: none;
  }

  .hero {
    padding: 90px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .container {
    padding: 0 16px;
  }
}
