/* ============================================================
   AMARA ARQUITECTURA — main.css
   Tokens → Reset → Base → Layout → Sections → Animations
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --c-sand:    #D8C5AE;   /* acento beige arena */
  --c-dark:    #4D4740;   /* pardo oscuro — sección contacto */
  --c-ivory:   #F4EFE6;   /* fondo marfil */
  --c-ink:     #1C1916;   /* texto principal */
  --c-muted:   #7A7067;   /* texto secundario, labels */
  --c-red:     #C0392B;   /* línea divisora */
  --c-white:   #FAFAF8;

  /* Typography */
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;

  /* Scale (fluid) */
  --t-hero:    clamp(3.5rem, 7vw, 7rem);
  --t-h2:      clamp(2.5rem, 5vw, 5rem);
  --t-h3:      clamp(1.5rem, 2.5vw, 2.25rem);
  --t-body:    clamp(0.95rem, 1.1vw, 1.05rem);
  --t-label:   0.7rem;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  7rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 1.2s;
  --dur-med:  0.7s;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  color: var(--c-ink);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── BASE TYPOGRAPHY ────────────────────────────────────── */
.display {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
}
.display em {
  font-style: italic;
  font-weight: 300;
}
.h2 {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: 1.05;
}
.h2 em { font-style: italic; font-weight: 300; }

.h3 {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.1;
}

.label {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.label--line {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.label--line::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--c-muted);
  flex-shrink: 0;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

/* ── LINE DIVIDER (roja) ─────────────────────────────────── */
.red-line {
  display: block;
  width: 100%;
  height: 6px;
  background: var(--c-red);
  /* Línea ligeramente ondulada via clip-path — sutil */
  clip-path: polygon(
    0% 40%, 5% 20%, 10% 50%, 15% 30%, 20% 60%,
    25% 40%, 30% 20%, 35% 50%, 40% 35%, 45% 55%,
    50% 30%, 55% 50%, 60% 25%, 65% 45%, 70% 30%,
    75% 55%, 80% 35%, 85% 55%, 90% 30%, 95% 50%,
    100% 40%, 100% 100%, 0% 100%
  );
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 5rem);
  background: rgba(30, 22, 14, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Nav transparente sobre el hero */
.nav--hero {
  background: transparent;
}

/* Nav con fondo al hacer scroll */
.nav--scrolled {}

.nav__logo {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--c-white);
  transition: color var(--dur-med);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.nav--scrolled .nav__logo { color: var(--c-ink); }

.nav__logo sup {
  font-family: var(--f-body);
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.65;
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
}

.nav__links a {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.85);
  transition: color var(--dur-med), opacity var(--dur-med);
}
.nav__links a:hover { color: var(--c-white); }
.nav--scrolled .nav__links a { color: var(--c-muted); }
.nav--scrolled .nav__links a:hover { color: var(--c-ink); }

.nav__lang {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(250, 250, 248, 0.5);
}
.nav__lang a { color: rgba(250, 250, 248, 0.85); }
.nav__lang a.active { color: var(--c-white); font-weight: 700; }
.nav--scrolled .nav__lang { color: var(--c-muted); }
.nav--scrolled .nav__lang a { color: var(--c-muted); }
.nav--scrolled .nav__lang a.active { color: var(--c-ink); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  max-height: 720px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 24px 48px -24px rgba(28, 25, 22, 0.25);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-color: var(--c-sand);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s var(--ease-out);
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide:nth-child(1) { animation: kb-1 24s ease-in-out infinite alternate; }
.hero__slide:nth-child(2) { animation: kb-2 26s ease-in-out infinite alternate; }
.hero__slide:nth-child(3) { animation: kb-3 22s ease-in-out infinite alternate; }
.hero__slide:nth-child(4) { animation: kb-4 28s ease-in-out infinite alternate; }
.hero__slide:nth-child(5) { animation: kb-5 25s ease-in-out infinite alternate; }

@keyframes kb-1 { from { transform: scale(1.0) translate(0,0); } to { transform: scale(1.08) translate(-2%, 0); } }
@keyframes kb-2 { from { transform: scale(1.05) translate(0,0); } to { transform: scale(1.0) translate(2%, -1%); } }
@keyframes kb-3 { from { transform: scale(1.0) translate(1%, 0); } to { transform: scale(1.1) translate(-1%, 1%); } }
@keyframes kb-4 { from { transform: scale(1.06) translate(-1%, 0); } to { transform: scale(1.0) translate(1%, 1%); } }
@keyframes kb-5 { from { transform: scale(1.0) translate(0, -1%); } to { transform: scale(1.07) translate(0, 1%); } }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; transition: none; }
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(216, 197, 174, 0.0)  0%,
      rgba(216, 197, 174, 0.0)  30%,
      rgba(30, 22, 14, 0.3)     65%,
      rgba(30, 22, 14, 0.62)    100%
    ),
    linear-gradient(
      to top,
      rgba(30, 22, 14, 0.55) 0%,
      rgba(30, 22, 14, 0.0) 45%
    );
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(1.5rem, 5vw, 5rem) clamp(2rem, 4vh, 3rem);
}

.hero__headline {
  color: var(--c-white);
  max-width: 14ch;
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--sp-md);
  padding-top: 1.5rem;
}

.hero__label {
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.6);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__scroll {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  font-family: var(--f-body);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.6);
  grid-column: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__scroll::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: rgba(250, 250, 248, 0.5);
  transform-origin: left center;
  animation: scroll-line 2s var(--ease-out) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll::before { animation: none; }
}

/* Panel de info del proyecto activo — sustituye a "desliza" cuando hay hover */
.hero__project-info {
  grid-column: 2;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}

.hero__project-info.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__project-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--c-white);
}

.hero__project-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.7);
  max-width: 32ch;
}

.hero__project-link {
  margin-top: 0.3rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white);
  border-bottom: 1px solid rgba(250, 250, 248, 0.4);
  padding-bottom: 0.15rem;
  transition: border-color var(--dur-med);
}

.hero__project-link:hover {
  border-color: var(--c-white);
}

@media (max-width: 900px) {
  .hero {
    height: 56vh;
    min-height: 380px;
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero__scroll,
  .hero__project-info {
    grid-column: 1;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }

  /* En mobile no hay hover: mostrar siempre el proyecto activo, discreto */
  .hero__project-info {
    opacity: 1;
    transform: none;
  }

  .hero__project-desc {
    display: none; /* solo nombre + link en mobile, por espacio */
  }
}

/* ── SECCIÓN EL ESTUDIO ─────────────────────────────────── */
.section-studio {
  padding: clamp(4rem, 10vh, 7rem) 0;
  background: var(--c-ivory);
  scroll-margin-top: 5rem;
}

.section-studio__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.section-studio__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-sand);
}

.section-studio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-studio__media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-sand) 0%, #c4b39a 100%);
}

.section-studio__label-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  color: var(--c-white);
  background: rgba(28, 25, 22, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.5rem 0.85rem;
}
.section-studio__label-overlay::before { background: rgba(250, 250, 248, 0.7); }

.section-studio__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.section-studio__text {
  max-width: 52ch;
  line-height: 1.75;
  color: var(--c-ink);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .section-studio__grid {
    grid-template-columns: 1fr;
  }
  .section-studio__media {
    aspect-ratio: 16/10;
  }
}
/* ── SECCIÓN PROYECTOS ──────────────────────────────────── */
.section-projects {
  padding: var(--sp-xl) 0;
  background: var(--c-ivory);
}

.section-projects__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: var(--sp-xl);
  gap: var(--sp-md);
}

.section-projects__label {
  justify-self: end;
  align-self: end;
}

/* Grid asimétrico de proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

/* Columna izquierda: proyectos impares */
.projects-col {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 5rem);
}

/* Tarjeta de proyecto */
.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.project-card__image {
  position: relative;
  overflow: hidden;
  background: var(--c-sand);
  /* La relación de aspecto varía: horizontal o vertical */
}
.project-card__image--landscape { aspect-ratio: 4/3; }
.project-card__image--portrait  { aspect-ratio: 3/4; }

.project-card__image img {
  transition: transform 8s var(--ease-out);
}
.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

/* Label sobre la imagen (placeholder) */
.project-card__photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__photo-label span {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.7);
  border: 1px solid rgba(250, 250, 248, 0.3);
  padding: 0.5rem 1rem;
}

/* Datos del proyecto */
.project-card__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--sp-sm);
}

.project-card__name {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.1;
}

.project-card__type {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 300;
  color: var(--c-muted);
  margin-top: 0.2rem;
}

.project-card__location {
  text-align: right;
}
.project-card__location-name {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  display: block;
}
.project-card__year {
  font-size: var(--t-label);
  font-weight: 400;
  color: var(--c-muted);
  display: block;
  margin-top: 0.15rem;
}

/* Punto decorativo (como en el boceto) */
.project-card--dot {
  position: relative;
}
.project-card--dot::after {
  content: '•';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  color: var(--c-ink);
  font-size: 0.5rem;
}

/* CTA de proyectos */
.section-projects__cta {
  margin-top: var(--sp-xl);
  text-align: center;
}

.section-projects__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(28, 25, 22, 0.2);
  transition: border-color var(--dur-med), opacity var(--dur-med);
}

.section-projects__cta-link:hover {
  border-color: var(--c-ink);
  opacity: 0.7;
}

/* ── SECCIÓN CONVERSEMOS ─────────────────────────────────── */
.section-contact {
  padding: var(--sp-xl) 0;
  background: var(--c-dark);
  color: var(--c-white);
}

.section-contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--sp-lg);
}

.section-contact__label { color: rgba(250, 250, 248, 0.45); }
.section-contact__label.label--line::before { background: rgba(250, 250, 248, 0.3); }

.section-contact__headline {
  color: var(--c-white);
  margin-top: var(--sp-md);
}

.section-contact__cta {
  margin-top: var(--sp-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  border: 1px solid rgba(250, 250, 248, 0.3);
  padding: 1rem 1.75rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: background var(--dur-med), border-color var(--dur-med);
}
.section-contact__cta:hover {
  background: rgba(250, 250, 248, 0.08);
  border-color: rgba(250, 250, 248, 0.5);
}
.section-contact__cta-arrow { font-size: 1rem; font-weight: 300; }

.section-contact__info {
  text-align: right;
  align-self: end;
}
.section-contact__info p {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250, 250, 248, 0.65);
}
.section-contact__info a:hover {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--c-dark);
  padding: 1.5rem 0;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer__copy,
.footer__links,
.footer__legal {
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.35);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
}
.footer__links a { transition: color var(--dur-med); }
.footer__links a:hover { color: rgba(250, 250, 248, 0.7); }

.footer__links a.footer__links--cta {
  color: rgba(250, 250, 248, 0.6);
  font-weight: 600;
}
.footer__links a.footer__links--cta:hover {
  color: var(--c-white);
}

.footer__legal { text-align: right; }

/* ── KEYFRAMES ──────────────────────────────────────────── */
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.4); }
}

/* Línea de scroll: crece → pausa → encoge → pausa → repite */
@keyframes scroll-line {
  0%   { transform: scaleX(0); opacity: 0; }
  20%  { transform: scaleX(1); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  90%  { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; } /* mobile nav — pendiente de iteración */

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .section-studio .container {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .section-projects__header { grid-template-columns: 1fr; }
  .section-projects__label  { justify-self: start; }

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

  .section-contact .container { grid-template-columns: 1fr; }
  .section-contact__info { text-align: left; }

  .footer .container {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
    text-align: center;
  }
  .footer__links  { justify-content: center; }
  .footer__legal  { text-align: center; }
}

/* ── PROYECTO SINGLE ────────────────────────────────────── */
.project-hero {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--c-sand);
  animation: hero-zoom 1.4s var(--ease-out) both;
}

.project-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 22, 14, 0.6) 0%,
    rgba(30, 22, 14, 0.0) 50%
  );
}

@media (prefers-reduced-motion: reduce) {
  .project-hero__bg { animation: none; }
}

.project-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 5rem) clamp(2.5rem, 5vh, 4rem);
}

.project-hero__title {
  color: var(--c-white);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
}

.project-meta {
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid rgba(28, 25, 22, 0.08);
}

.project-meta__grid {
  display: flex;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-meta__value {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-ink);
}

.project-description {
  padding: var(--sp-lg) 0;
}

.project-description__inner {
  max-width: 680px;
}

.project-description__text {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-ink);
}

.project-gallery {
  padding: var(--sp-md) 0;
}

.project-gallery--extended {
  padding-top: 0;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.project-gallery__item {
  overflow: hidden;
  background: var(--c-sand);
  aspect-ratio: 4/3;
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out);
}

.project-gallery__item:hover img {
  transform: scale(1.04);
}

.project-nav {
  padding: var(--sp-lg) 0;
  border-top: 1px solid rgba(28, 25, 22, 0.08);
  margin-top: var(--sp-lg);
}

.project-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: opacity var(--dur-med);
}
.project-nav__link:hover { opacity: 0.6; }
.project-nav__link--next { text-align: right; }

.project-nav__name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--c-ink);
}

@media (max-width: 900px) {
  .project-gallery__grid { grid-template-columns: 1fr 1fr; }
  .project-meta__grid { gap: var(--sp-md); }
}

@media (max-width: 600px) {
  .project-gallery__grid { grid-template-columns: 1fr; }
}

/* ── PÁGINA CONTACTO ────────────────────────────────────── */
.contact-page {
  padding: calc(var(--sp-xl) + 4rem) 0 var(--sp-xl);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.contact-page__text {
  margin-top: var(--sp-md);
  max-width: 42ch;
  line-height: 1.7;
  color: var(--c-ink);
  opacity: 0.85;
}

.contact-page__details {
  margin-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-page__details p {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--c-ink);
}

.contact-page__details a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Formulario */
.contact-form-card {
  background: var(--c-white);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow:
    0 1px 2px rgba(28, 25, 22, 0.04),
    0 12px 40px rgba(28, 25, 22, 0.08);
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form__field label {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.contact-form__optional {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--c-muted);
  opacity: 0.8;
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-ivory);
  border: 1px solid rgba(28, 25, 22, 0.1);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  transition: border-color var(--dur-med), background var(--dur-med);
  resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--c-muted);
  opacity: 0.6;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--c-ink);
  background: var(--c-white);
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--c-ink);
  padding: 1rem 1.75rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur-med), color var(--dur-med);
}

.contact-form__submit:hover {
  background: var(--c-ink);
  color: var(--c-white);
}

@media (max-width: 900px) {
  .contact-page__grid { grid-template-columns: 1fr; }
}