/* contacto.canalla.agency — landing Branding
   Fuente de verdad: Figma "Canalla Landings" › Landing V3 › frame "Branding" (406:475), 1440×1514 */

@font-face {
  font-family: "New Grotesk";
  src: url("/assets/fonts/NewGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "New Grotesk";
  src: url("/assets/fonts/NewGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tokens de Figma */
  --amarillo: #edff00;
  --negro: #000;
  --blanco: #fff;
  --gris-alto: #353535;

  --font: "New Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --track: 0.03em;            /* 0.48px @16px */
  --pad-x: 50px;              /* margen lateral del frame */
  --max: 1440px;
  --radius-pill: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p { margin: 0; font-weight: 400; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 58px;
}
.nav__brand img { width: 400px; height: auto; }
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 12px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  letter-spacing: var(--track);
}
.nav__lang img { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
/* Desktop (Figma): izq x=50 w=587 · der x=808 w=540 · top 222 · alto 904 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 587fr) minmax(32px, 171fr) minmax(0, 540fr);
  padding-right: 92px;
  padding-top: 110px;   /* 222 - (58 + 54) */
  min-height: calc(904px - 112px);
  padding-bottom: 53px;
}
.hero__intro { grid-column: 1; }
.hero__form  { grid-column: 3; }

h1 {
  font-size: 48px;
  line-height: 1.1875;   /* 114px / 2 líneas */
  color: var(--negro);
}
.hero__lead {
  margin-top: 40px;
  font-size: 24px;
  line-height: 1.1667;   /* 84px / 3 líneas */
  color: var(--gris-alto);
}

/* C cromada: recorte idéntico al de Figma (contenedor 320×333, hard-light) */
.hero__c {
  position: relative;
  width: 320px;
  aspect-ratio: 320 / 333;
  margin-top: 58px;      /* 518 - (222 + 238) */
  overflow: hidden;
  mix-blend-mode: hard-light;
  pointer-events: none;
}
.hero__c img {
  position: absolute;
  max-width: none;
  width: 263.45%;
  height: 168.55%;
  left: -155.04%;
  top: -31.05%;
}

.hero__icon { width: 108px; height: 45px; }

/* ---------- Formulario ---------- */
.lead { margin-top: 59px; }   /* 326 - (222 + 45) */

.lead__sentence {
  font-size: 16px;
  line-height: 2;
  letter-spacing: var(--track);
  color: var(--negro);
}
.lead__sentence label { cursor: text; }

.lead__input {
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.5;
  color: var(--negro);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gris-alto);
  border-radius: 0;
  padding: 0 2px;
  margin: 0;
  vertical-align: baseline;
  field-sizing: content;     /* crece con el texto (Chromium); JS da el fallback */
  max-width: 100%;
}
.lead__input--name  { min-width: 212px; }
.lead__input--email { min-width: 118px; }
.lead__input--tel   { min-width: 224px; }
.lead__input::placeholder { color: var(--gris-alto); opacity: 1; text-decoration: underline; text-underline-position: from-font; }
.lead__input:focus { outline: none; border-bottom-color: var(--negro); }
.lead__input:focus-visible { outline: 2px solid var(--negro); outline-offset: 3px; }
.lead__input[aria-invalid="true"] { border-bottom-color: #c00; }

.lead__budget {
  border: 0;
  margin: 32px 0 0;     /* 2 líneas en blanco del diseño (line-height 32) */
  padding: 0;
  min-width: 0;
}
.lead__budget legend {
  padding: 0;
  font-size: 16px;
  line-height: 2;
  letter-spacing: var(--track);
}

.pills {
  /* Figma: fila 1 = 160 + 26 + 219 · fila 2 = 219 + 25 + 161 → ancho 405 */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 18px;
  width: 405px;
  max-width: 100%;
  margin-top: 20px;
}
.pills input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 47px;
  padding: 14px 24px;
  border: 1px solid var(--negro);
  border-radius: var(--radius-pill);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: var(--track);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, color .15s ease;
}
.pills label[for="b1"] { width: 160px; }
.pills label[for="b2"] { width: 219px; }
.pills label[for="b3"] { width: 219px; }
.pills label[for="b4"] { width: 161px; }

.pill:hover { background: var(--amarillo); }
.pills input:checked + .pill { background: var(--negro); color: var(--blanco); }
.pills input:focus-visible + .pill { outline: 2px solid var(--negro); outline-offset: 3px; }
.lead__budget.is-invalid .pill { border-color: #c00; }

.btn {
  margin-top: 62px;    /* 712 - 650 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 47px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--amarillo);
  color: var(--negro);
  font: inherit;
  font-size: 16px;
  letter-spacing: var(--track);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--negro); color: var(--amarillo); }
.btn:focus-visible { outline: 2px solid var(--negro); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.lead__status {
  margin-top: 16px;
  min-height: 1.5em;
  font-size: 16px;
  letter-spacing: var(--track);
}
.lead__status.is-ok { color: var(--negro); }
.lead__status.is-error { color: #c00; }
.lead.is-sent .lead__sentence,
.lead.is-sent .lead__budget,
.lead.is-sent .btn { display: none; }
.lead.is-sent .lead__status { margin-top: 0; font-size: 24px; line-height: 1.3; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--amarillo); }
.footer__inner {
  min-height: 610px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.footer__claim {
  font-size: 60px;
  line-height: 1.1833;   /* 142px / 2 líneas */
  color: var(--gris-alto);
  text-align: center;
}
/* Figma (x en el frame 1440): C 86 · Follow us 606.6 · Legal 1047.8 */
.footer__grid {
  display: grid;
  grid-template-columns: 520.6fr 441.2fr 342.2fr;
  margin-top: 107px;            /* 321 - (72 + 142) */
  padding-left: 36px;           /* 86 - 50 */
  align-items: start;
}
.footer__c { width: 107px; height: auto; aspect-ratio: 206 / 198; object-fit: cover; }
.footer__col { padding-top: 10px; }
.footer__col h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--track);
  margin-bottom: 32px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { font-size: 16px; line-height: 2; letter-spacing: var(--track); }
.footer__col a { text-decoration: underline; text-underline-position: from-font; }
.footer__col a:hover { text-decoration-thickness: 2px; }
.footer__col a:focus-visible { outline: 2px solid var(--negro); outline-offset: 2px; }

/* =========================================================
   Responsive (no hay diseño móvil: derivado del desktop)
   ========================================================= */
@media (max-width: 1279px) {
  .hero { padding-right: var(--pad-x); }
  .nav__brand img { width: 320px; }
}

@media (max-width: 1023px) {
  :root { --pad-x: 32px; }
  .nav { padding-top: 32px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 72px;
    min-height: 0;
    row-gap: 56px;
  }
  .hero__intro, .hero__form { grid-column: 1; }
  .hero__intro { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: start; }
  .hero__intro h1, .hero__intro .hero__lead { grid-column: 1; }
  .hero__c { grid-column: 2; grid-row: 1 / span 2; width: 200px; margin-top: 0; }
  .lead { margin-top: 32px; }

  .footer__inner { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
  .footer__claim { font-size: 44px; }
  .footer__grid { margin-top: 64px; padding-left: 0; grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --pad-x: 20px; }
  .nav { padding-top: 24px; }
  .nav__brand img { width: 220px; }
  .nav__lang { padding: 8px 0 8px 8px; }

  .hero { padding-top: 40px; row-gap: 0; }
  .hero__intro { display: contents; }
  .hero__intro h1   { order: 1; }
  .hero__intro .hero__lead { order: 2; }
  .hero__form { order: 3; margin-top: 40px; }
  h1 { font-size: 36px; }
  .hero__lead { margin-top: 20px; font-size: 18px; line-height: 1.35; }
  .hero__c { order: 4; grid-column: 1; grid-row: auto; width: 180px; margin: 48px auto 0; }

  .hero__form { position: relative; }
  .lead__sentence { font-size: 16px; }
  .lead__input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;       /* evita zoom en iOS */
    margin: 2px 0 8px;
  }
  .lead__sentence br { display: none; }

  .pills { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pills label[for] { width: auto; min-width: 0; padding: 12px 6px; font-size: 13px; letter-spacing: 0; }
  .btn { width: 100%; margin-top: 40px; }

  .footer__claim { font-size: 34px; }
  .footer__claim br { display: none; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
    margin-top: 48px;
  }
  .footer__c { grid-column: 1 / -1; width: 72px; }
  .footer__col h2 { margin-bottom: 16px; }
}

@media (max-width: 359px) {
  .pills { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
