:root {
  --ink: #14161a;
  --stone: #5b5f66;
  --mist: #8a8f97;
  --paper: #fbfaf8;
  --line: #e7e4df;
  --font: "Cormorant", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}
.topbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.brand--dark {
  color: var(--ink);
  text-shadow: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__link {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(251, 250, 248, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease;
}
.nav__link:hover {
  opacity: 0.6;
}
.lang {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(251, 250, 248, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang:hover {
  background: var(--paper);
  color: var(--ink);
}
@media (max-width: 640px) {
  .topbar__inner {
    padding: 1.1rem 1.25rem;
    gap: 0.75rem;
  }
  .brand {
    font-size: 1.35rem;
  }
  .nav {
    gap: 1rem;
  }
  .nav__link {
    font-size: 0.95rem;
  }
  .lang {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  }
}

/* ---------- Full-bleed blocks ---------- */
.block {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.block--hero {
  background-image: url("images/bridge.jpg");
}
.block--about {
  background-image: url("images/skyline-dusk.png");
}
.block--contact {
  background-image: url("images/airport.jpg");
}
.block__overlay {
  position: absolute;
  inset: 0;
  /* Mobile: even veil so full-width text stays legible */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.52),
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.55)
  );
}
@media (min-width: 880px) {
  .block__overlay {
    /* Desktop: lighter feathered side gradient, dark on the left, photo on the right */
    background:
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.6) 34%,
        rgba(0, 0, 0, 0.34) 60%,
        rgba(0, 0, 0, 0.1) 82%,
        rgba(0, 0, 0, 0.03) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0) 22%,
        rgba(0, 0, 0, 0) 82%,
        rgba(0, 0, 0, 0.2)
      );
  }
}

/* The skyline photo is much brighter than the others — needs a heavier veil */
.block--about .block__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.66),
    rgba(0, 0, 0, 0.58) 40%,
    rgba(0, 0, 0, 0.68)
  );
}
@media (min-width: 880px) {
  .block--about .block__overlay {
    background:
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.76) 34%,
        rgba(0, 0, 0, 0.52) 60%,
        rgba(0, 0, 0, 0.28) 82%,
        rgba(0, 0, 0, 0.18) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0) 22%,
        rgba(0, 0, 0, 0) 82%,
        rgba(0, 0, 0, 0.25)
      );
  }
}
.block__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 2.5rem;
  color: var(--paper);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}
.measure {
  max-width: 34rem;
}

.section-title {
  font-weight: 300;
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--paper);
}
.rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: rgba(251, 250, 248, 0.5);
  margin: 1.5rem 0;
}

/* ---------- Block 1 · Hero ---------- */
.hero__name {
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 0.95;
  color: var(--paper);
}
.hero__tagline {
  font-weight: 300;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  color: rgba(251, 250, 248, 0.95);
  margin-top: 1.75rem;
}
@media (min-width: 880px) {
  .hero__tagline {
    white-space: nowrap;
  }
}

/* ---------- Block 2 · Qué hacemos ---------- */
.block--about p {
  color: rgba(251, 250, 248, 0.92);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.6;
}
.block--about p + p {
  margin-top: 1.5rem;
}

/* ---------- Block 3 · Contacto ---------- */
.contact__panel {
  max-width: 32rem;
}
.contact__panel .section-title {
  margin-bottom: 2.5rem;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.field {
  display: block;
}
.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(251, 250, 248, 0.85);
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(251, 250, 248, 0.55);
  background: transparent;
  padding: 0.25rem 0 0.5rem;
  font-family: var(--font);
  font-size: 1.2rem;
  color: var(--paper);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--paper);
}
.submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.submit:hover {
  opacity: 0.85;
}
.submit__arrow {
  transition: transform 0.2s ease;
}
.submit:hover .submit__arrow {
  transform: translateX(4px);
}
.form__sent {
  font-size: 1.1rem;
  color: rgba(251, 250, 248, 0.95);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer .brand {
  font-size: 1.35rem;
}
.footer__rights {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--mist);
}
