/* J.M. LUAN. Verde y rojo del logotipo, fotos de la planta, texto largo de ficha técnica. */
:root {
  --ink: #17211c;
  --ink-soft: #3c4a43;
  --paper: #f3f1eb;
  --paper-2: #e6e2d8;
  --white: #fffcf7;
  --brand: #007850;
  --brand-dark: #005438;
  --line: #d5d1c7;
  --danger: #8f1d2c;
  --whatsapp: #25d366;
  --scrim: rgb(14 28 22 / 0.86);
  --focus: #007850;
  --font-display: "Lexend", "Source Sans 3", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --measure: 68ch;
  --page: 72rem;
  --header: 4.5rem;
  --shadow: 0 14px 36px rgb(23 33 28 / 0.1);
  color-scheme: light;
}

@font-face {
  font-family: Lexend;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lexend.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/source-sans-3.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-italic.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

picture {
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

p,
ul,
ol,
dl,
figure {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

:focus {
  outline: none;
}

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

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

input,
textarea {
  caret-color: var(--brand-dark);
}

* {
  scrollbar-color: var(--brand-dark) var(--paper-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-150%);
  z-index: 40;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 8.5rem;
  height: auto;
}

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

.nav-button {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.langs {
  display: flex;
  gap: 0.65rem;
  margin: 0 0 0 0.4rem;
  font-size: 0.95rem;
}

.langs a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.langs a[aria-current="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 32rem;
  color: var(--white);
  background: #102018;
  isolation: isolate;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(14 28 22 / 0.35), rgb(14 28 22 / 0.78));
}

.hero h1,
.hero p {
  text-shadow: 0 1px 16px rgb(8 16 12 / 0.55);
}

.hero-copy {
  position: relative;
  max-width: 40rem;
  padding: 4.5rem 0 3.5rem;
}

.hero p {
  max-width: 36rem;
  font-size: 1.3rem;
  color: #f4f7f4;
}

.hero a {
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.button:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.button.ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgb(255 252 247 / 0.8);
}

.button.ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.button.on-light {
  color: var(--white);
}

.button.line {
  background: transparent;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.button.line:hover {
  background: var(--brand);
  color: var(--white);
}

.section {
  padding: 4.5rem 0;
}

.section + .section {
  padding-top: 0;
}

.lede {
  max-width: var(--measure);
  font-size: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split.reverse .copy {
  order: 2;
}

.frame {
  background: var(--white);
  box-shadow: var(--shadow);
}

.frame img {
  width: 100%;
}

.cutout {
  background:
    linear-gradient(180deg, var(--paper-2), var(--white));
  padding: 1.25rem;
}

.codes {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.sectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  max-width: 36rem;
}

.sectors li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.trio {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trio figure:first-child {
  grid-row: span 2;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.band {
  background: #102018;
  color: #f4f7f4;
  padding: 4rem 0;
}

.band a {
  color: #d7f5e6;
}

.band h2 {
  color: var(--white);
}

.page-intro {
  padding: 3.5rem 0 1rem;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

.products {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
}

.products div {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.products dt {
  font-weight: 700;
}

.products dd {
  margin: 0;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
}

.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

.specs th {
  font-weight: 600;
  width: 55%;
}

.table-wrap {
  overflow-x: auto;
}

.notice {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  max-width: var(--measure);
}

.legal {
  max-width: var(--measure);
  padding-bottom: 4rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: start;
}

address {
  font-style: normal;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin: 0 0 0.85rem;
}

.field {
  margin: 0 0 1rem;
}

.field label,
.check span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--brand);
  flex: none;
}

.check span {
  font-weight: 400;
  margin: 0;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.map {
  margin-top: 2rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
}

.site-footer {
  padding: 2.5rem 0 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem 2rem;
  align-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0;
  margin: 0.5rem 0 0;
  list-style: none;
}

.funding {
  max-width: 28rem;
  background: var(--white);
  padding: 0.5rem;
}

[id] {
  scroll-margin-top: 5.5rem;
}

@media (min-width: 60rem) {
  .hero {
    min-height: 36rem;
    align-items: center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgb(14 28 22 / 0.88) 0%, rgb(14 28 22 / 0.55) 38%, rgb(14 28 22 / 0.08) 68%);
  }

  .hero-copy {
    padding: 4rem 0;
  }
}

@media (max-width: 52rem) {
  .nav-button {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.4rem 0.8rem;
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--line);
    cursor: pointer;
  }

  .nav-check:focus-visible + .nav-button {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.25rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-check:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a,
  .langs {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
  }

  .split,
  .split.reverse,
  .contact-grid,
  .footer-grid,
  .products div,
  .trio,
  .sectors {
    grid-template-columns: 1fr;
  }

  .split.reverse .copy,
  .trio figure:first-child {
    order: 0;
    grid-row: auto;
  }

  .specs th {
    width: auto;
  }
}

@media (max-width: 40rem) {
  .wrap {
    width: min(var(--page), calc(100% - 1.5rem));
  }

  body {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 28rem;
  }
}

.whatsapp {
  position: fixed;
  z-index: 12;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--whatsapp);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.whatsapp:hover {
  background: var(--whatsapp);
  color: var(--white);
}

.whatsapp:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

  .button,
  .whatsapp {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .map,
  .nav-button,
  .whatsapp {
    display: none;
  }

  body {
    background: white;
  }
}
