/* ---------- MUTUAL Taller — estilos ---------- */

:root {
  --paper: #fbfafa;
  --limestone: #d0cabf;
  --linen: #a09c91;
  --clay: #c7ad93;
  --sandstone: #987350;
  --walnut: #5d402a;
  --moss: #6c6657;
  --charcoal: #1f1612;
  --rose: #b87a73;
  --terracotta: #8c4a3a;
  --ochre: #c59a4d;

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;

  /* escala tipográfica N27 · ajustada para mejor jerarquía visual */
  --size-titulo: clamp(34px, 5vw, 54px);
  --size-subtitulo: clamp(24px, 3.2vw, 34px);
  --size-cuerpo: clamp(17px, 1.9vw, 22.9px);
  --size-cuerpo-2: 14.15px;

  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(21px, 3.25vw, 34px);
  letter-spacing: normal;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(24px, 3.2vw, 34px);
  color: #000;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 250, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 22, 18, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav a:hover {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

.nav a.is-active {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--charcoal);
  width: 100%;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Vistas por sección ---------- */
/* Solo una sección visible a la vez; el menú controla cuál (ver js/script.js) */

main > section {
  display: none;
}

main > section.is-active {
  display: flex;
  flex-direction: column;
}

main > section.section.is-active {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  flex-direction: column;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 24px;
  pointer-events: none;
}

.hero-wordmark img {
  width: clamp(240px, 40vw, 520px);
  height: auto;
}

.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero-tagline {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.link-arrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.link-arrow::after {
  content: " →";
}

.link-arrow:hover {
  color: var(--moss);
  border-color: var(--moss);
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

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

/* ---------- Proyectos ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 48px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-subtitulo);
  margin: 18px 0 4px;
  letter-spacing: -0.01em;
}

.project-card p {
  margin: 0;
  font-size: 13px;
  color: var(--moss);
  letter-spacing: 0.02em;
}

.project-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--limestone);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.6s ease, filter 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.045);
  filter: grayscale(0%);
}

/* ---------- Nosotros ---------- */

.nosotros-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.nosotros-text p {
  margin: 0 0 20px;
  font-size: var(--size-cuerpo);
  font-style: italic;
  color: var(--moss);
}

.nosotros-text p.nosotros-closing {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--size-cuerpo-2);
  color: var(--moss);
  margin-top: 32px !important;
}

.team {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(31, 22, 18, 0.15);
}

.team-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 10px;
}

.team-names {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-subtitulo);
  color: var(--charcoal);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.team-role {
  font-size: var(--size-cuerpo-2);
  color: var(--moss);
  margin: 0;
}

/* ---------- Contacto ---------- */

.contact-inner {
  text-align: center;
}

.contact-inner .section-title {
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.contact-link {
  font-size: 14px;
  font-weight: 300;
  color: #000;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-link:hover {
  color: var(--moss);
  border-color: var(--moss);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(31, 22, 18, 0.08);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-mark {
  height: 22px;
  width: auto;
  opacity: 0.7;
}

.footer-inner p {
  margin: 0;
  font-size: 12px;
  color: var(--moss);
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap { padding: 0 22px; }

  .header-inner { height: 68px; }
  .brand-logo { height: 36px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(31, 22, 18, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(31, 22, 18, 0.06);
  }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .section { padding: 64px 0; }

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

  .contact-links { flex-direction: column; gap: 20px; }
}
