:root {
  --container: 1200px;
  --gutter: 36px;
  --space: 36px;

  /* Fair Ton identity — brand book */
  --coral: #F97D63;
  --coral-strong: #FD704B;
  --sky: #E3F7FF;
  --paper: #F2F0F1;
  --sand: #EFE8D6;
  --ink: #414141;
  --forest: #323727;
  --accent: #67C96D;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Chivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter));
  margin-inline: auto;
  padding-inline: calc(var(--gutter) / 2);
}

.mono {
  font-family: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ================= LANGUAGE MENU ================= */
.lang-menu {
  position: absolute;
  inset: 34px 0 auto;
  width: 100%;
  z-index: 20;
}

.lang-menu__inner {
  display: flex;
  justify-content: flex-end;
}

.lang-menu nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(50, 55, 39, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lang-menu a,
.lang-menu span {
  color: var(--paper);
}

.lang-menu a {
  text-decoration: none;
  opacity: .82;
  transition: opacity .18s ease;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  opacity: 1;
}

.lang-menu span {
  opacity: .46;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}

.hero__bg {
  position: absolute;
  inset: -5%;
  background:
    linear-gradient(90deg, rgba(50,55,39,.56), rgba(50,55,39,.17) 46%, rgba(50,55,39,.45)),
    url("../imgs/banner-inicio.jpg") center / cover no-repeat;
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(242,240,241,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,240,241,.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent 6%, #000 28%, #000 72%, transparent 94%);
}

.hero__rail {
  position: absolute;
  left: 50%;
  width: min(92vw, 1440px);
  transform: translateX(-50%);
  height: 1px;
  background: rgba(242,240,241,.56);
  pointer-events: none;
}

.hero__rail--top { top: 20%; }
.hero__rail--bottom { bottom: 20%; }

.hero__rail::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__wrap {
  position: relative;
  z-index: 2;
}

.hero__card {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 150px 72px 52px;
  background: var(--coral);
  border: 1px solid rgba(65,65,65,.38);
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -74px;
  top: -92px;
  border: 1px solid rgba(65,65,65,.34);
  border-radius: 50%;
}

.hero__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  height: 1px;
  background: rgba(65,65,65,.34);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 990px;
  margin-inline: auto;
}

.hero__brand {
  width: min(100%, 760px);
  margin: 0 auto 92px;
}

.hero__brand img {
  width: 100%;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.hero__meta-left {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .035em;
}

.hero__meta-right {
  max-width: 420px;
  color: var(--ink);
  text-align: right;
}

/* ================= INTRO ================= */
.intro {
  margin-top: 108px;
  margin-bottom: 144px;
}

.intro::before {
  content: "";
  display: block;
  width: 52px;
  height: 7px;
  margin: 0 auto 36px;
  background: var(--coral);
}

.intro__text {
  max-width: 994px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(28px, 2.25vw, 36px);
  line-height: 1.38;
  font-weight: 300;
  text-align: center;
}

.intro__text b,
.intro__text strong {
  font-weight: 700;
}

/* ================= SUBHEADINGS ================= */
.h-sub {
  margin: 0 0 var(--space);
  color: var(--ink);
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
}

.h-sub::before {
  content: "[ ";
  color: var(--coral-strong);
}

.h-sub::after {
  content: " ]";
  color: var(--coral-strong);
}

/* ================= LOGOS ================= */
.logos {
  margin-bottom: 72px;
}

.logo-grid {
  display: grid;
  gap: 1px;
  align-items: stretch;
  background: rgba(65,65,65,.22);
  border: 1px solid rgba(65,65,65,.22);
}

.logo-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.logo-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.logo-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto;
}

.logo-grid img {
  width: 100%;
  height: 210px;
  padding: 36px;
  object-fit: contain;
  background: var(--white);
}

/* ================= GALLERY ================= */
.gallery {
  margin-top: 180px;
  margin-bottom: 108px;
}

.grid-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.grid-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
  border: 1px solid rgba(65,65,65,.28);
}

.grid-photos img:nth-child(2),
.grid-photos img:nth-child(5) {
  transform: translateY(28px);
}

/* ================= POWER BI ================= */
.powerbi {
  margin-top: 136px;
  margin-bottom: 108px;
}

.powerbi__frame {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--sky);
}

.powerbi__frame::before {
  content: "DATA / FAIR TON";
  position: absolute;
  top: -31px;
  left: -1px;
  z-index: 2;
  height: 30px;
  padding: 8px 12px 7px;
  border: 1px solid var(--ink);
  border-bottom: 0;
  background: var(--coral);
  color: var(--ink);
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .04em;
}

.powerbi__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.powerbi__hint {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
}

.powerbi__hint::after {
  content: "  →";
  color: var(--coral-strong);
}

/* ================= CTA / SURVEY ================= */
.cta {
  position: relative;
  padding-top: 90px;
  padding-bottom: 108px;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  z-index: 0;
  background: var(--forest);
}

.cta__card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 72px 36px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: -12px 12px 0 var(--coral);
}

.cta__eyebrow {
  margin: 0 0 20px;
  color: var(--coral-strong);
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.cta__title {
  max-width: 700px;
  margin: 0 auto 54px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}

#surveyContainer {
  position: relative;
  width: 100%;
  min-height: 800px;
  overflow: hidden;
  background: var(--white);
}

#surveyContainer iframe {
  display: block;
  width: 100%;
  min-height: 800px;
  border: 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  :root {
    --gutter: 28px;
  }

  .hero__card {
    padding-inline: 56px;
  }

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

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

  .grid-photos img:nth-child(2),
  .grid-photos img:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 24px;
  }

  .lang-menu {
    top: 22px;
  }

  .lang-menu nav {
    gap: 8px;
    padding: 9px 11px;
    font-size: 10px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero__rail {
    width: calc(100% - 24px);
  }

  .hero__rail--top { top: 18%; }
  .hero__rail--bottom { bottom: 18%; }

  .hero__card {
    padding: 116px 28px 38px;
  }

  .hero__card::before {
    width: 150px;
    height: 150px;
    right: -60px;
    top: -58px;
  }

  .hero__card::after {
    bottom: 108px;
  }

  .hero__brand {
    margin-bottom: 78px;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 10px;
  }

  .hero__meta-right {
    max-width: none;
    text-align: left;
  }

  .intro {
    margin-top: 72px;
    margin-bottom: 92px;
  }

  .intro__text {
    font-size: 21px;
    line-height: 1.46;
  }

  .h-sub {
    font-size: 12px;
  }

  .logo-grid--4,
  .logo-grid--3,
  .logo-grid--2,
  .grid-photos {
    grid-template-columns: 1fr;
  }

  .logo-grid img {
    height: 180px;
    padding: 30px;
  }

  .gallery {
    margin-top: 110px;
    margin-bottom: 86px;
  }

  .grid-photos {
    gap: 18px;
  }

  .powerbi {
    margin-top: 110px;
    margin-bottom: 82px;
  }

  .powerbi__frame {
    aspect-ratio: 4 / 3;
    box-shadow: 8px 8px 0 var(--sky);
  }

  .cta {
    padding-top: 70px;
    padding-bottom: 82px;
  }

  .cta__card {
    padding: 52px 20px;
    box-shadow: -8px 8px 0 var(--coral);
  }

  .cta__title {
    margin-bottom: 40px;
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { transform: none !important; }
}
