/* ============================================================
   VINCHI - landing
   Paleta: #00553c turquesa negro / #d7e98b verde amarillento
           pastel / #f0facf verde amarillento claro
   ============================================================ */

/* ---------- Fuentes propias (archivos en /fonts) ---------- */
@font-face {
  font-family: 'ChunkFive';
  src: local('Chunkfive Ex'), local('ChunkFive'),
       url('fonts/Chunkfive%20Ex.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}
/* Montserrat Black (900): sustituto de 210 Black Box en "PAY WITH". */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/static/Montserrat-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-dark:  #00553c;
  --green-pastel:#d7e98b;
  --green-light: #f0facf;
  --blue:        #1414ff;

  --font-display: 'ChunkFive', 'Alfa Slab One', Georgia, serif;
  --font-stencil: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  /* Tinos es metricamente identico a Times New Roman pero con contornos
     limpios a tamano display y se sirve como webfont, asi que se ve igual
     en Android/Linux (donde Times New Roman no existe). */
  --font-serif:   'Tinos', 'Times New Roman', Times, serif;
  --font-body:    'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* Full bleed: los clamp escalan con el viewport completo.
     Los topes estan calibrados al valor que toma cada vw a ~1800px. */
  --pad: clamp(20px, 4vw, 90px);
  /* Lado del logo cuadrado del nav: define la altura total de la nav. */
  --logo: clamp(90px, 12vw, 230px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--green-dark);
  font-family: var(--font-body);
  /* Sin -webkit-font-smoothing: forzaba antialiasing en escala de grises y
     desactivaba ClearType, lo que dentaba los trazos del display serif. */
}

img { max-width: 100%; display: block; }

.page {
  width: 100%;
  background: var(--green-dark);
  overflow-x: hidden;
}

/* ============================ NAV ============================ */
/* La nav mide exactamente el lado del logo, y la barra pastel ocupa la
   ultima fila: asi su borde inferior coincide con el del logo. */
.nav {
  background: var(--green-dark);
  display: grid;
  grid-template-columns: var(--logo) 1fr;
  grid-template-rows: 1fr auto;
  height: var(--logo);
}

.nav__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  height: 100%;
}
.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__links {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 12vw, 180px);
  padding: 0 var(--pad);
}
.nav__links a {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(15px, 1.9vw, 36px);
  color: var(--green-light);
  text-decoration: none;
  transition: color .18s ease;
}
.nav__links a:hover { color: var(--green-pastel); }

.nav__bar {
  grid-column: 2;
  grid-row: 2;
  height: clamp(20px, 3.4vw, 64px);
  background: var(--green-pastel);
}

/* ============================ HERO ============================ */
.hero {
  background: var(--green-dark);
  padding: clamp(18px, 3vw, 56px) 0 clamp(28px, 4.4vw, 84px);
}

.hero__row {
  display: flex;
  align-items: center;
}
.hero__row--top {
  gap: clamp(10px, 2vw, 40px);
  padding-left: var(--pad);
}

/* Rectangulo pastel plano con texto turquesa, sin marco exterior.
   line-height .78 recorta el espacio muerto que Montserrat deja arriba y
   abajo de las mayusculas, para que las letras queden pegadas al borde. */
.hero__paywith {
  margin: 0;
  font-family: var(--font-stencil);
  font-weight: 900;
  font-size: clamp(48px, 10.5vw, 205px);
  line-height: .78;
  letter-spacing: -.02em;
  color: var(--green-dark);
  background: var(--green-pastel);
  border: clamp(3px, .5vw, 9px) solid var(--green-dark);
  padding: clamp(10px, 1.9vw, 36px) clamp(8px, 1.4vw, 28px) clamp(4px, .7vw, 14px);
  white-space: nowrap;
}

.hero__pos {
  width: clamp(156px, 26vw, 494px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__row--bottom {
  gap: clamp(12px, 2.5vw, 48px);
  margin-top: clamp(6px, 1.4vw, 28px);
}

.hero__pig {
  width: clamp(117px, 19.5vw, 364px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-left: clamp(10px, 3vw, 58px);
}

.hero__brand {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  text-rendering: geometricPrecision;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(126px, 26.25vw, 499px);
  line-height: 1;
  color: var(--green-pastel);
}

/* ========================= CLAIM BAND ========================= */
.claim {
  background: var(--green-pastel);
  padding: clamp(16px, 2.6vw, 50px) var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 clamp(10px, 1.6vw, 32px);
}
.claim span { line-height: 1.05; }

.claim__a {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 84px);
  color: #ffffff;
}
.claim__b {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 68px);
  color: var(--green-dark);
  align-self: flex-end;
}
.claim__c {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 84px);
  color: #ffffff;
}
.claim__d {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 68px);
  color: var(--green-dark);
  align-self: flex-end;
}

/* =========================== VIDEO =========================== */
.video {
  background: var(--green-dark);
  padding: clamp(28px, 5vw, 100px) var(--pad);
}
.video__frame {
  width: 100%;
  max-width: clamp(300px, 58vw, 1250px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(12px, 2vw, 40px);
  overflow: hidden;
  background: #000;
}
.video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ========================== EXPLAINER ========================= */
.explain {
  background: var(--green-dark);
  padding: 0 var(--pad) clamp(34px, 6vw, 115px);
  display: grid;
  gap: clamp(26px, 4.5vw, 88px);
}

.explain__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 78px);
  align-items: center;
}
.explain__row--rev .explain__title { order: 2; }
.explain__row--rev .explain__text  { order: 1; }

.explain__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 60px);
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  color: var(--green-pastel);
}

.explain__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(12px, 1.35vw, 22px);
  line-height: 1.55;
  text-align: justify;
  color: var(--green-pastel);
}

/* ========================== BUSINESS ========================== */
.business {
  background: var(--green-light);
  padding: clamp(26px, 4.5vw, 88px) var(--pad) clamp(30px, 5vw, 100px);
}
.business__title {
  margin: 0 0 clamp(20px, 3.4vw, 64px);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 68px);
  text-align: center;
  color: var(--green-dark);
}
.business__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 78px);
  align-items: center;
}
.business__img {
  width: 100%;
  mix-blend-mode: multiply;
}
.business__copy p {
  margin: 0 0 1em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(12px, 1.35vw, 22px);
  line-height: 1.55;
  text-align: justify;
  color: var(--green-dark);
}
.business__copy p:last-child { margin-bottom: 0; }

/* =========================== UNIQUE =========================== */
.unique {
  background: var(--green-dark);
  padding: clamp(30px, 5vw, 100px) var(--pad) clamp(36px, 6vw, 115px);
}

.unique__title {
  margin: 0 0 clamp(28px, 5vw, 95px);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "what  brand"
    "makes brand"
    ".     unique";
  justify-content: center;
  align-items: center;
  column-gap: clamp(8px, 1.6vw, 30px);
  font-weight: 400;
}
.unique__a, .unique__b {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 60px);
  color: var(--green-light);
  justify-self: end;
}
.unique__a { grid-area: what; }
.unique__b { grid-area: makes; }
.unique__brand {
  grid-area: brand;
  font-family: var(--font-serif);
  text-rendering: geometricPrecision;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(46px, 8.4vw, 160px);
  line-height: .95;
  color: var(--green-pastel);
}
.unique__c {
  grid-area: unique;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 60px);
  color: var(--green-light);
  justify-self: end;
}

.unique__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 5vw, 98px);
}

.feature__head {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 30px);
  margin-bottom: clamp(12px, 2vw, 34px);
}
.feature__icon {
  width: clamp(34px, 5vw, 92px);
  height: auto;
  flex: none;
}
.feature__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.6vw, 48px);
  line-height: 1.15;
  color: var(--green-pastel);
}
.feature p {
  margin: 0 0 .9em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(12px, 1.35vw, 22px);
  line-height: 1.55;
  text-align: justify;
  color: var(--green-pastel);
}
.feature p:last-child { margin-bottom: 0; }

/* ============================ CARDS ============================ */
/* El PNG ya viene recortado y con alpha: la banda pastel se cine a la
   imagen, sin padding vertical de mas. */
.cards {
  background: var(--green-pastel);
  padding: 0 var(--pad);
}
.cards img {
  width: 100%;
  height: auto;
}

/* =========================== FOOTER ============================ */
.footer {
  background: var(--green-dark);
  min-height: clamp(50px, 8vw, 150px);
  padding: clamp(14px, 2.2vw, 40px) var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 56px);
}

.footer__logo {
  width: clamp(46px, 6vw, 112px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex: none;
}

/* El mail queda al centro pero corrido hacia la derecha. */
.footer__mail {
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.5vw, 28px);
  color: var(--green-pastel);
  text-decoration: none;
  word-break: break-all;
}
.footer__mail:hover { text-decoration: underline; }

.footer__social {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 34px);
}

/* Los logos que vinieron son mapas de bits sin canal alfa, asi que no se
   pueden pintar con fill. Se usan como mascara (twitter-mask.png y
   youtube-mask.png, generados con alfa) sobre un fondo pastel. */
.social {
  display: block;
  width: clamp(22px, 2.8vw, 52px);
  aspect-ratio: 1 / 1;
}
.social span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green-pastel);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  transition: background .18s ease;
}
.social:hover span { background: var(--green-light); }

.social--x span {
  -webkit-mask-image: url('twitter-mask.png');
          mask-image: url('twitter-mask.png');
}
.social--yt span {
  -webkit-mask-image: url('youtube-mask.png');
          mask-image: url('youtube-mask.png');
}

/* ========================== RESPONSIVE ========================= */
@media (max-width: 760px) {
  .hero__row--top { flex-wrap: wrap; }
  .explain__row,
  .business__grid,
  .unique__grid { grid-template-columns: 1fr; }
  .explain__row--rev .explain__title { order: 0; }
  .explain__row--rev .explain__text  { order: 0; }
  .nav__links { gap: 40px; }
  /* A 26.25vw "Vinchi" no entra al lado del chanchito en pantallas
     angostas y quedaba recortado; 21vw es el maximo que entra a 375px. */
  .hero__brand { font-size: clamp(48px, 21vw, 160px); }
}
