:root {
  --ink: #22331f;
  --green: #324c2d;
  --cream: #f3e4cb;
  --paper: #f7f1e4;
  --sand: #e0b173;
  --terra: #93321a;
  --terra-hot: #a74626;
  --white: #fffdf8;
  --header: 5.25rem;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header);
  padding: 0.65rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid rgba(34, 51, 31, 0.08);
}

.brand {
  display: flex;
  margin-right: auto;
}

.brand img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span:nth-of-type(2) {
  top: 15px;
}

.nav-toggle span:nth-of-type(3) {
  top: 21px;
}

.nav-toggle span:nth-of-type(4) {
  top: 27px;
}

.cta-short {
  display: none;
}

.lang {
  display: flex;
  align-items: center;
  flex: none;
  gap: 0.05rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  letter-spacing: inherit;
  padding: 0.45rem 0.28rem;
  cursor: pointer;
}

html[lang="ca"] .lang [data-set-lang="ca"],
html[lang="es"] .lang [data-set-lang="es"] {
  color: var(--terra);
}

.lang span {
  color: rgba(34, 51, 31, 0.35);
}

html:not([lang="es"]) [data-lang="es"],
html[lang="es"] [data-lang="ca"] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

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

.btn-terra:hover {
  background: var(--terra-hot);
}

.btn-cream {
  background: var(--cream);
  color: var(--ink);
}

.btn-cream:hover {
  background: var(--sand);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-dark:hover {
  background: var(--green);
}

.btn-block {
  width: 100%;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header));
  padding: 4.5rem 1.25rem 5rem;
  text-align: center;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(34, 51, 31, 0.5) 0%, rgba(34, 51, 31, 0.38) 40%, rgba(34, 51, 31, 0.62) 100%),
    url("assets/hero.jpg") center 45% / cover no-repeat;
}

.hero-copy {
  width: min(920px, 100%);
  max-width: 100%;
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(243, 228, 203, 0.75);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.lede {
  width: min(38rem, 100%);
  margin: 1.35rem auto 1.8rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.carta {
  padding: 4.5rem 0 5rem;
}

.section-title {
  margin: 0 0 2.25rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.carta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--terra);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.carta-card h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.deal {
  margin-bottom: 1.15rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: var(--terra);
  color: var(--cream);
}

.deal p {
  margin: 0 0 0.25rem;
  color: var(--sand);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.deal strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.subtitle {
  display: flex;
  align-items: center;
  min-height: 5.6rem;
  margin: 0 0 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: var(--cream);
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.carta-doc {
  position: relative;
  display: block;
  margin-bottom: 1.15rem;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(34, 51, 31, 0.14);
  text-decoration: none;
}

.carta-doc img {
  display: block;
  width: 100%;
}

.pdf-link {
  display: inline-block;
  margin: -0.35rem 0 1rem;
  color: var(--green);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.pdf-link:hover {
  color: var(--terra);
}

.instagram {
  padding: 1rem 0 4.5rem;
}

.ig-wrap {
  padding: 1.5rem 0 0.5rem;
}

.ig-profile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.ig-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
}

.ig-name {
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
}

.ig-name:hover {
  text-decoration: underline;
}

.ig-bio {
  margin: 0.15rem 0 0;
  color: var(--green);
  font-size: 0.95rem;
}

.ig-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
}

.ig-photo,
.ig-card {
  display: block;
  overflow: hidden;
  min-height: 280px;
  border-radius: 8px;
  text-decoration: none;
}

.ig-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.ig-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}

.ig-card img {
  width: min(240px, 80%);
}

.ig-card p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
}

.ig-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-mark {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.7rem 0.35rem;
  border-radius: 12px;
  background: var(--cream);
}

.footer-logo {
  height: 52px;
  width: auto;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
  line-height: 1.55;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-contact a:not(.btn) {
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.footer-contact a:not(.btn):hover {
  color: var(--sand);
}

:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
  }

  .brand {
    order: 1;
    min-width: 0;
  }

  .lang {
    order: 2;
  }

  .header-cta {
    order: 3;
  }

  .nav-toggle {
    order: 4;
    flex: none;
  }

  .brand img {
    height: 36px;
  }

  .hero {
    padding: 3.2rem 1.15rem 3.6rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.4vw, 3.4rem);
  }

  .lede {
    font-size: 1.05rem;
  }

  .cta-full {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .header-cta {
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.4rem 1.25rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid rgba(34, 51, 31, 0.08);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
  }

  .carta-grid,
  .ig-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .subtitle {
    min-height: 0;
  }

  .ig-photo,
  .ig-card {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
