/* ─────────────────────────────────────────────────────────────
   Pasifae Arquitech — Contacto (página independiente)
   Mismo lenguaje visual que la home, /proyectos/ y /sobre-nosotros/
   ───────────────────────────────────────────────────────────── */

:root {
  --cream: #faf6ef;
  --cream-deep: #f3ede2;
  --ink: #1c1917;
  --ink-soft: #4a4440;
  --terra: #b75c4c;
  --terra-dark: #71362e;
  --terra-soft: #ead3cb;
  --radius: 24px;
  --nav-h: 72px;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--terra);
  color: var(--cream);
}

em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.label-caps {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ── Navegación (idéntica al resto de páginas) ──────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(28 25 23 / 0.08);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nav-brand-tag {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.55;
}

.nav-link.is-active {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--terra);
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  background: var(--terra);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.3s;
}

.nav-cta:hover {
  background: var(--terra-dark);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 44px;
  color: var(--cream);
  text-decoration: none;
  padding: 8px 0;
}

body.menu-open .nav-burger span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

body.menu-open .nav-burger span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ── Layout de contacto ─────────────────────────────────────── */

.contact {
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(56px, 12vh, 128px)) 40px clamp(64px, 10vh, 128px);
  max-width: 1680px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

/* ── Columna izquierda ──────────────────────────────────────── */

.contact-intro .label-caps {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.contact-title {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: clamp(24px, 4vh, 48px);
}

.contact-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: clamp(40px, 7vh, 72px);
}

.contact-data {
  display: grid;
  gap: 28px;
}

.contact-data dt {
  color: var(--terra);
  margin-bottom: 8px;
}

.contact-data dd {
  font-size: 1.1rem;
  line-height: 1.5;
}

.contact-data a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--terra) 40%, transparent);
  transition: border-color 0.3s, color 0.3s;
}

.contact-data a:hover {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* ── Formulario ─────────────────────────────────────────────── */

.contact-form-wrap > .label-caps {
  color: rgb(28 25 23 / 0.5);
  margin-bottom: 32px;
}

.contact-form {
  display: grid;
  gap: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgb(28 25 23 / 0.25);
  background: transparent;
  padding: 10px 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}

.form-field textarea {
  resize: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--terra);
}

.form-field input.is-invalid,
.form-field select.is-invalid {
  border-bottom-color: #c0392b;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.form-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-consent input {
  width: 16px;
  height: 16px;
  accent-color: var(--terra);
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}

.form-consent a:hover {
  color: var(--terra);
}

.form-submit {
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 16px 36px;
  border-radius: 999px;
  transition: background 0.3s;
}

.form-submit:hover {
  background: var(--terra);
}

/* ── Confirmación ───────────────────────────────────────────── */

.contact-sent {
  border: 1px solid color-mix(in srgb, var(--terra) 40%, transparent);
  background: color-mix(in srgb, var(--terra-soft) 40%, transparent);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-sent-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-sent p:not(.contact-sent-title) {
  line-height: 1.6;
  color: var(--ink-soft);
}

.contact-sent a {
  color: var(--ink);
  border-bottom: 1.5px solid color-mix(in srgb, var(--terra) 40%, transparent);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

.contact-sent a:hover {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* ── Footer ─────────────────────────────────────────────────── */

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 40px;
  font-size: 13px;
  color: var(--ink-soft);
}

.page-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ── Reveal al hacer scroll ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.32, 0.94, 0.6, 1),
    transform 0.8s cubic-bezier(0.32, 0.94, 0.6, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav {
    padding: 0 20px;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .contact {
    padding-inline: 20px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-footer {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
  }
}

/* ── Movimiento reducido ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ── Footer de página (consistente en todo el sitio) ───────── */
.page-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 44px 40px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid rgb(28 25 23 / 0.1);
}
.page-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.page-footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.page-footer-nav a:hover { color: var(--terra); }
.page-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  color: var(--ink-soft);
}
.page-footer-contact a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s; }
.page-footer-contact a:hover { color: var(--terra); }
.page-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgb(28 25 23 / 0.08);
}
.page-footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-footer-legal a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s; }
.page-footer-legal a:hover { color: var(--terra); }


/* ── Roll-over del navbar: el texto sube y entra su duplicado serif terracota ── */
.nav-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 3px 10px;
  margin: -3px -10px;
}
.nav-roll:hover { opacity: 1; }
.nav-roll-base {
  display: block;
  transition: transform 0.5s cubic-bezier(0.32, 0.94, 0.6, 1);
}
.nav-roll-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18em;
  transform: translateY(115%);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
  transition: transform 0.5s cubic-bezier(0.32, 0.94, 0.6, 1);
}
.nav-roll:hover .nav-roll-base { transform: translateY(-115%); }
.nav-roll:hover .nav-roll-hover { transform: translateY(0); }
