/*
 * ALTECMI — the public site.
 *
 * Built from Grupo CauFi's site (itself Cargotech's), with the look of ALTECMI's
 * identity manual: its red (#a20a09), black and grey (#4a4a49), the steel of the
 * cutter for lines and quiet backgrounds, capital headings, and the manual's
 * slanted cut (its colour tiles, the cutter's chamfer) on the first screen, the
 * photos and the buttons. The first screen is the manual's slogan page: the photo
 * in the brand's red, cut by a white panel with the slogan. Everything after it
 * stays quiet: white sections, the plant's machines on the manual's grey.
 *
 * Breakpoints: 1000 px for the mobile menu and the first screen, 768 px for the
 * two-column sections. No framework, jQuery or plugins.
 *
 * The site's photos are <img> elements, not CSS backgrounds, because they can
 * be replaced in /admin and the security policy allows no inline styles.
 */

/*
 * Fonts, served from this site (public/assets/fonts; SIL Open Font License, see
 * the OFL-*.txt files there; from Google Fonts, split into Latin and Latin
 * Extended). The manual's own faces, Evogria and Gotham, have no web licence:
 * Saira Condensed stands in for Evogria in headings, menus and buttons, and
 * Montserrat for Gotham in the text. Browsers only download a file when the page
 * has text in that face and range.
 */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/saira-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/saira-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/saira-condensed-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/saira-condensed-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The manual's red: 8.1:1 on white, so it carries links and headings too. */
  --red: #a20a09;
  /* Buttons on hover and focus: white text on it is 12:1. */
  --red-dark: #6e0706;
  /* The manual's black, for headings and the footer. */
  --black: #000;
  /* The manual's grey: the text (8.9:1 on white) and the plant's band. */
  --grey: #4a4a49;
  --grey-deep: #393938;
  /* The cutter's steel: quiet backgrounds, lines and the light text on the grey band (5.6:1 on it). */
  --steel-50: #f3f4f5;
  --steel-200: #dcdfe2;
  --steel-400: #c9cdd1;
  --text: var(--grey);
  --heading: var(--black);
  --link: var(--red);
  --link-hover: var(--black);
  --heading-font: "Saira Condensed", "Arial Narrow", sans-serif;
  --text-font: "Montserrat", Arial, sans-serif;
  --header-height: 84px;
  --gutter: 32px;
  --container: 1200px;
  /* The manual's slanted cut, small: buttons and cards lose this corner. */
  --cut: 14px;
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--text-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 12px;
  padding: 0;
  color: var(--heading);
  font-family: var(--heading-font);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--link);
  background-color: transparent;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus,
a:active {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* "Saltar al contenido": out of sight until reached with the keyboard. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--black);
  color: #fff;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  color: #fff;
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

@media (max-width: 650px) {
  :root {
    --gutter: 18px;
  }
}

.section {
  padding: 104px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }
}

/* A section's title, with the manual's short rule under it. */
.section-title {
  margin: 0 0 40px;
  font-size: clamp(2.375rem, 4.4vw, 3.5rem);
  line-height: 0.95;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 18px;
  background: var(--red);
}

/* ---------- Buttons and links that act like them ---------- */

.btn,
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 30px;
  border: 0;
  outline: none;
  background-color: var(--red);
  color: #fff;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.t-btn:hover,
.t-btn:focus-visible,
.t-btn:active {
  background-color: var(--red-dark);
  color: #fff;
}

/* The outline would be cut with the corner, so focus shows as an inner ring instead. */
.btn:focus-visible,
.t-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--red-dark);
}

.t-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* A plain link next to a button: black, with a red rule under it. */
.text-link {
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid var(--steel-200);
  background-color: #fff;
  transition: box-shadow 0.25s ease;
}

/* A shadow once the page scrolls (main.js). */
.site-header.small-height {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.site-title {
  display: block;
  line-height: 0;
}

/* The logo's file is 600 px wide, three times this. */
.site-title img {
  width: 200px;
  max-width: 100%;
}

.primary-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.primary-nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.primary-nav-list .menu-item {
  position: relative;
}

.primary-nav-list .menu-item > a {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-height);
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The section on screen, or the one about to be: a red bar along the header's edge. */
.primary-nav-list .menu-item > a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.primary-nav-list .menu-item > a:hover,
.primary-nav-list .menu-item > a:focus-visible,
.primary-nav-list .menu-item > a.active {
  color: var(--red);
}

.primary-nav-list .menu-item > a:hover::after,
.primary-nav-list .menu-item > a:focus-visible::after,
.primary-nav-list .menu-item > a.active::after {
  transform: scaleX(1);
}

/* ES | EN, after the sections. */
.menu-item--lang {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--steel-400);
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 600;
}

.primary-nav-list .menu-item--lang > a {
  height: auto;
  color: var(--grey);
  font-size: 16px;
}

.primary-nav-list .menu-item--lang > a::after {
  display: none;
}

.primary-nav-list .menu-item--lang > a[aria-current] {
  color: var(--black);
}

/* A submenu (Contenido → Menú): its title opens a list under it, with or without JavaScript (<details>). */
.sub-menu-wrap > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-height);
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.sub-menu-wrap > summary::-webkit-details-marker {
  display: none;
}

/* A small chevron that turns over while the list is open. */
.sub-menu-wrap > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.sub-menu-wrap[open] > summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.sub-menu-wrap > summary:hover,
.sub-menu-wrap > summary:focus-visible,
.sub-menu-wrap[open] > summary,
.menu-item--parent:has(a.active) .sub-menu-wrap > summary {
  color: var(--red);
}

.sub-menu {
  position: absolute;
  top: calc(var(--header-height) - 1px);
  left: -20px;
  z-index: 10;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  border-top: 4px solid var(--red);
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  list-style: none;
}

.primary-nav-list .sub-menu .menu-item > a {
  height: auto;
  padding: 10px 20px;
  white-space: nowrap;
}

.primary-nav-list .sub-menu .menu-item > a::after {
  display: none;
}

/* The mobile menu's button: three lines that turn into an X. */
.m-menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.m-menu-btn span:first-child,
.m-menu-btn span:first-child::before,
.m-menu-btn span:first-child::after {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--black);
}

.m-menu-btn span:first-child {
  position: relative;
  margin: 0 auto;
  transition: background-color 0s 0.2s;
}

.m-menu-btn span:first-child::before,
.m-menu-btn span:first-child::after {
  content: '';
  position: absolute;
  transition-property: margin, transform;
  transition-duration: 0.2s;
  transition-delay: 0.2s, 0s;
}

.m-menu-btn span:first-child::before {
  margin-top: -9px;
}

.m-menu-btn span:first-child::after {
  margin-top: 9px;
}

.m-menu-btn[aria-expanded='true'] span:first-child {
  background-color: transparent;
}

.m-menu-btn[aria-expanded='true'] span:first-child::before,
.m-menu-btn[aria-expanded='true'] span:first-child::after {
  margin-top: 0;
  transition-delay: 0s, 0.2s;
}

.m-menu-btn[aria-expanded='true'] span:first-child::before {
  transform: rotate(45deg);
}

.m-menu-btn[aria-expanded='true'] span:first-child::after {
  transform: rotate(-45deg);
}

@media (max-width: 1100px) {
  .primary-nav-list {
    gap: 22px;
  }
}

@media (max-width: 1000px) {
  :root {
    --header-height: 70px;
  }

  .site-title img {
    width: 170px;
  }

  .m-menu-btn {
    display: block;
    margin-right: -8px;
  }

  .primary-nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--header-height));
    padding: 8px 0 16px;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 4px solid var(--red);
    background: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  }

  .primary-nav-list.is-open {
    display: block;
  }

  .primary-nav-list .menu-item > a {
    display: block;
    height: auto;
    padding: 12px var(--gutter);
    font-size: 20px;
  }

  .primary-nav-list .menu-item > a::after {
    display: none;
  }

  .primary-nav-list .menu-item > a:hover,
  .primary-nav-list .menu-item > a:focus-visible {
    background-color: var(--steel-50);
  }

  .sub-menu-wrap > summary {
    height: auto;
    padding: 12px var(--gutter);
    font-size: 20px;
  }

  .sub-menu-wrap > summary:hover,
  .sub-menu-wrap > summary:focus-visible {
    background-color: var(--steel-50);
  }

  .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 4px;
    border-top: 0;
    background: none;
    box-shadow: none;
  }

  .primary-nav-list .sub-menu .menu-item > a {
    padding: 10px var(--gutter) 10px calc(var(--gutter) + 18px);
    font-size: 18px;
    white-space: normal;
  }

  .menu-item--lang {
    padding: 8px var(--gutter) 0;
  }

  .primary-nav-list .menu-item--lang > a {
    padding: 8px 0;
    font-size: 18px;
  }

  .primary-nav-list .menu-item--lang > a:hover,
  .primary-nav-list .menu-item--lang > a:focus-visible {
    background: none;
  }

  /* A legal page behind the holding page: only the language switch, never folded away. */
  .primary-nav--lang .primary-nav-list {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .primary-nav--lang .menu-item--lang {
    padding: 0;
  }
}

/* ---------- First screen: the photo in red, the slogan on the white panel ---------- */

.hero {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-height: min(100vh, 860px);
  min-height: min(100svh, 860px);
  padding-top: var(--header-height);
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

/* Grey photo multiplied over the red: white turns red and black stays black, as in the manual. */
.hero__photo {
  position: absolute;
  inset: var(--header-height) 0 0 0;
  z-index: -1;
  background: var(--red);
}

.hero__photo picture {
  display: block;
  height: 100%;
}

.hero__img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
  mix-blend-mode: multiply;
}

/* The white panel's left edge is the manual's slant. */
.hero__panel {
  display: flex;
  align-items: center;
  width: min(60%, 960px);
  background: #fff;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__inner {
  width: 100%;
  padding: 72px max(var(--gutter), calc((100vw - var(--container)) / 2)) 72px 27%;
}

.hero__title {
  margin: 0 0 28px;
  color: var(--red);
  font-size: clamp(3.25rem, 6.4vw, 6.5rem);
  line-height: 0.86;
}

.hero__subtitle {
  max-width: 30em;
  margin: 0 0 36px;
  color: var(--grey);
  font-size: 18px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

@media (max-width: 1000px) {
  .hero {
    display: block;
    min-height: 0;
  }

  .hero__photo {
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(240px, 56vw, 440px);
    clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
  }

  .hero__panel {
    width: 100%;
    clip-path: none;
  }

  .hero__inner {
    padding: 28px var(--gutter) 64px;
  }

  .hero__title {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero__subtitle {
    font-size: 17px;
  }
}

/* ---------- Nosotros, and the brand's philosophy ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px 72px;
  align-items: center;
}

.about__grid--text {
  grid-template-columns: minmax(0, 760px);
}

.about__text p {
  max-width: 62ch;
}

.about__kicker {
  margin-bottom: 10px;
  color: var(--red);
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
}

/* The photo's bottom edge rises to the right, like the manual's colour tiles. */
.about__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}

/* Dedicación · Calidad · Compromiso: three words, each closed by the red slant. */
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  margin: 88px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--steel-200);
  list-style: none;
}

.values__item {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--black);
  font-family: var(--heading-font);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.values__item::after {
  content: '';
  width: 14px;
  height: 0.7em;
  background: var(--red);
  transform: skewX(-18deg);
}

.values__item:last-child::after {
  display: none;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .values {
    margin-top: 56px;
  }
}

/* Misión y visión, once written in /admin. */
.commitment {
  background: var(--steel-50);
}

.commitment__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 64px;
}

.commitment__grid .section-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.commitment__part h3 {
  color: var(--red);
  font-size: 26px;
}

/* ---------- Nuestros servicios: a list, each service a row ---------- */

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 24px 64px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--steel-200);
}

.service:first-child {
  padding-top: 8px;
}

.service--text {
  grid-template-columns: minmax(0, 1fr);
}

.service__title {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
}

.service__text {
  max-width: 60ch;
}

.service__text:last-child {
  margin-bottom: 0;
}

.service__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

@media (max-width: 767px) {
  .service {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 0;
  }

  .service__photo {
    grid-row: 1;
  }
}

/* A project, step by step: numbered because it is a sequence. */
.process {
  margin-top: 88px;
}

.process__title {
  margin-bottom: 28px;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.process__step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 30px;
  background: var(--red);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}

.process__step:first-child {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.process__step:nth-child(even) {
  background: var(--grey);
}

.process__number {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  opacity: 0.85;
}

.process__name {
  font-family: var(--heading-font);
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .process__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .process__step,
  .process__step:first-child {
    flex-direction: row;
    align-items: baseline;
    gap: 18px;
    padding: 18px 24px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  }
}

/* ---------- Planta y equipo: the manual's grey, the machines as spec sheets ---------- */

.equipment {
  background: var(--grey);
  color: #fff;
}

.equipment .section-title,
.equipment__subtitle {
  color: #fff;
}

.equipment__head {
  max-width: 760px;
}

.equipment__lead {
  color: #fff;
  font-size: 18px;
  line-height: 1.65;
}

.equipment__photo {
  margin: 48px 0 0;
}

.equipment__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.equipment__subtitle {
  margin: 72px 0 28px;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.machine {
  display: flex;
  flex-direction: column;
  background: var(--grey-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.machine__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.machine__body {
  flex: 1;
  padding: 26px 28px 34px;
  border-top: 5px solid var(--red);
}

.machine__name {
  margin-bottom: 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

.machine__make {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 18px;
  color: var(--steel-400);
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.machine__model {
  color: #fff;
}

/* What each capacity measures on the left, its value on the right, lined up like a plate's. */
.machine__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
}

.machine__specs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.machine__spec-label {
  color: var(--steel-400);
}

.machine__spec-value {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  margin-left: auto;
}

/* ---------- Trabajos realizados: a gallery ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 36px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work figure {
  margin: 0;
}

.work img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--steel-50);
}

.work figcaption {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

/* ---------- Nuestros clientes ---------- */

.clients {
  background: var(--steel-50);
}

/* Cells drawn by their own edges, so a short last row leaves no grey gap. */
.client-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  margin: 0 -1px -1px 0;
  padding: 24px;
  border: 1px solid var(--steel-200);
  background: #fff;
  text-align: center;
}

.client img {
  width: auto;
  max-width: 160px;
  max-height: 72px;
}

/* Until a logo is uploaded, the name, set like one. */
.client__name {
  color: var(--grey);
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- Contacto ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 72px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.single-info {
  position: relative;
  margin-bottom: 32px;
  padding-left: 36px;
}

.single-info .icon,
.single-info .social-icon {
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  fill: var(--red);
}

.single-info h3,
.single-info__name {
  margin-bottom: 6px;
  font-size: 20px;
}

.single-info p {
  margin: 0;
  line-height: 1.5;
}

.single-info .single-info__role {
  color: var(--grey);
  font-size: 14px;
}

.single-info .phone-link {
  color: var(--text);
}

.single-info .phone-link:hover,
.single-info .phone-link:focus {
  color: var(--red);
}

.contact-area__title {
  margin-bottom: 16px;
  font-size: 24px;
}

/* «Contacto» while the form is hidden (Contenido → Formularios): the plant's details on the red slab, the people beside it. */
.contact-direct {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: start;
}

.contact-direct--single {
  grid-template-columns: minmax(0, 720px);
}

@media (max-width: 900px) {
  .contact-direct {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-main {
  padding: 44px 44px 52px;
  background: var(--red);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}

.contact-main__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
}

.contact-main__lead {
  max-width: 34em;
  margin: 0 0 28px;
  color: #fff;
}

.contact-main__lines {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.contact-main__lines li + li {
  margin-top: 12px;
}

/* The way to reach ALTECMI, the largest type in the section. */
.contact-main__line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--heading-font);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  overflow-wrap: anywhere;
}

.contact-main__line:hover,
.contact-main__line:focus {
  color: #fff;
  text-decoration-color: #fff;
}

.contact-main__line:focus-visible {
  outline-color: #fff;
}

.contact-main__line .icon,
.contact-main__line .social-icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-main__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 32px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-main__facts dt {
  margin-bottom: 4px;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-main__facts dd {
  margin: 0;
  line-height: 1.55;
}

.contact-people__area + .contact-people__area {
  margin-top: 40px;
}

.contact-people__title {
  margin: 0 0 20px;
  font-size: 26px;
}

.contact-people__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--black);
  list-style: none;
}

.contact-person {
  padding: 22px 0;
  border-bottom: 1px solid var(--steel-200);
}

.contact-person__name {
  margin: 0 0 4px;
  font-size: 24px;
}

.contact-person p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-person .contact-person__role {
  margin-bottom: 6px;
  color: var(--grey);
  font-size: 14px;
}

.contact-person .phone-link {
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 600;
}

.contact-person .phone-link:hover,
.contact-person .phone-link:focus {
  color: var(--red);
}

@media (max-width: 550px) {
  .contact-main {
    padding: 32px 24px 44px;
  }
}

/* The form. */
.contact-form {
  margin-bottom: 30px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 11px 14px;
  border: 1px solid #767676; /* 4.5:1 on white: the field's edge is visible */
  border-radius: 0;
  outline: none;
  background: #fff;
  color: var(--black);
  font-family: var(--text-font);
  font-size: 16px; /* below 16px, iPhones zoom in when the field gets focus */
  line-height: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  height: 170px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6f6f6e; /* the only visible label: 5:1 on white */
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--black);
  box-shadow: inset 0 -3px 0 var(--red);
}

.contact-form [aria-invalid='true'] {
  border-color: #b00020;
}

.form-error {
  margin: -16px 0 16px;
  color: #b00020;
  font-size: 13px;
  line-height: 18px;
}

.form-error[hidden] {
  display: none;
}

/* A list's first line is its label, in the placeholders' grey until something is chosen. */
.contact-form select {
  height: 48px;
}

.contact-form select:has(option[value='']:checked) {
  color: #6f6f6e;
}

/* A box to tick: the box, then its label. */
.form-field--check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-form .form-field--check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--red);
}

.form-field--check label {
  flex: 1 1 0;
  font-size: 14px;
  line-height: 22px;
}

.form-field--check .form-error {
  flex-basis: 100%;
  margin: 0;
}

/* A PDF: a label above it, and what it may be under it. */
.form-field--file label {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 14px;
  line-height: 20px;
}

.contact-form .form-field--file input {
  margin-bottom: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.form-hint {
  margin: 0 0 20px;
  color: #6f6f6e;
  font-size: 13px;
  line-height: 18px;
}

/* The field only bots see. */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin: -6px 0 16px;
  font-size: 13px;
  line-height: 20px;
}

/* A link in a sentence is told apart by more than its colour. */
.form-privacy a {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
}

.alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 4px solid transparent;
  font-size: 14px;
  line-height: 20px;
}

.alert-success {
  border-color: #2e7d32;
  background-color: #eef6ee;
  color: #1b5e20;
}

.alert-danger {
  border-color: var(--red);
  background-color: #fbeeee;
  color: var(--red-dark);
}

/* ---------- Map ---------- */

.map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(0.4);
}

@media (max-width: 650px) {
  .map iframe {
    height: 300px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 6px solid var(--red);
  background-color: var(--black);
  color: #fff;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  min-height: 88px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.social-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.social-btn a:hover,
.social-btn a:focus {
  background-color: #fff;
  color: var(--red);
}

.social-btn .social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}

.copy-right {
  margin: 0;
  color: var(--steel-400);
  font-size: 13px;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--steel-400);
  font-size: 13px;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-links a[aria-current] {
  color: #fff;
}

/* «Preferencias de cookies»: a button that looks like the links next to it. */
.footer-links__button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--steel-400);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.footer-links__button:hover,
.footer-links__button:focus {
  color: #fff;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: #fff;
}

/* Room for the back-to-top button, which sits over the footer's right end on narrower screens. */
@media (max-width: 1340px) {
  .site-footer .container {
    padding-right: calc(var(--gutter) + 56px);
  }
}

@media (max-width: 550px) {
  .site-footer .container {
    flex-direction: column;
    justify-content: center;
    padding-right: var(--gutter);
    padding-bottom: 72px;
  }

  .footer-fine {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Back to top, WhatsApp ---------- */

.scrollup {
  position: fixed;
  right: 24px;
  bottom: -60px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 5px;
  border: 0;
  background-color: var(--black);
  color: #fff;
  cursor: pointer;
  visibility: hidden;
  transition: bottom 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.scrollup svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.scrollup:hover,
.scrollup:focus {
  background-color: var(--red);
}

.scrollup.scrollup-show {
  bottom: 24px;
  visibility: visible;
}

.whatsapp-button {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.whatsapp-button:hover,
.whatsapp-button:focus {
  color: #fff;
  transform: scale(1.06);
}

.whatsapp-button .social-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .scrollup,
  .whatsapp-button,
  .site-header,
  .primary-nav-list .menu-item > a::after {
    transition: none;
  }
}

/* ---------- Cookie notice ---------- */

/* Bottom left on a first visit, across the bottom on a phone; both choices the same size. */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 150;
  width: calc(100% - 40px);
  max-width: 400px;
  padding: 22px 24px;
  border-top: 5px solid var(--red);
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__title {
  margin: 0 0 8px;
  font-size: 24px;
}

.cookie-notice__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 22px;
}

.cookie-notice__actions {
  display: flex;
  gap: 10px;
}

.cookie-notice__button {
  flex: 1 1 0;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 16px;
}

.cookie-notice__policy {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 550px) {
  .cookie-notice {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  }
}

/* Clear of the notice for people signed in to /admin, which sits across the bottom. */
body:has(.admin-notice) .cookie-notice {
  bottom: 90px;
}

/* While it's open the page scrolls clear of it, so the footer's links (the privacy notice) stay
   reachable before a choice. consent.js keeps --cookie-notice-height up to date. */
body:has(.cookie-notice:not([hidden])) .site-footer {
  padding-bottom: calc(var(--cookie-notice-height, 0px) + 20px);
}

.landing-page:has(.cookie-notice:not([hidden])) .landing {
  padding-bottom: calc(var(--cookie-notice-height, 0px) + 40px);
}

/* ---------- Text pages (privacy notice…), the 404 page and the form's answer ---------- */

.text-page {
  padding: calc(var(--header-height) + 72px) 0 88px;
}

.text-page__inner {
  max-width: calc(820px + 2 * var(--gutter));
  margin-left: 0;
}

.text-page__head {
  margin-bottom: 36px;
}

.text-page__title {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  line-height: 0.95;
}

.text-page__title::after {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 18px;
  background: var(--red);
}

.text-page__updated {
  color: #6f6f6e;
  font-size: 13px;
}

.text-page__body h2 {
  margin: 36px 0 12px;
  font-size: 28px;
}

.text-page__body h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.text-page__body ul,
.text-page__body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.text-page__body li {
  margin-bottom: 4px;
}

.text-page__body blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--red);
}

.text-page__body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Images added in Contenido → Páginas: the column's width at most. */
.text-page__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
}

/* A form under the page's text (Contenido → Formularios). */
.text-page__form {
  max-width: 640px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--steel-200);
}

/* ---------- Holding page ---------- */

/* The logo on white, over a red band cut at the manual's slant. */
.landing-page {
  background: #fff;
}

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 72px 24px 120px;
  text-align: center;
  isolation: isolate;
}

.landing::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 72px;
  background: var(--red);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.landing__brand {
  margin: 0 0 30px;
}

.landing__brand img {
  width: 340px;
}

.landing__rule {
  display: block;
  width: 64px;
  height: 5px;
  margin-bottom: 30px;
  background: var(--red);
}

.landing__text {
  max-width: 560px;
  margin-bottom: 8px;
  color: var(--black);
  font-size: 19px;
  line-height: 1.5;
}

.landing__text[lang] {
  color: var(--grey);
  font-size: 15px;
}

.landing__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.landing__contact a {
  color: var(--red);
  font-weight: 600;
}

.landing__contact a:hover,
.landing__contact a:focus {
  color: var(--black);
}

/* The privacy notice, the cookie policy and «Preferencias de cookies», small, at the bottom. */
.landing__legal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.landing__legal a,
.landing__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--grey);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.landing__legal a:hover,
.landing__legal a:focus,
.landing__legal button:hover,
.landing__legal button:focus {
  color: var(--red);
}

/* ---------- Notice for people signed in to /admin ---------- */

.admin-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 22px;
  padding: 10px 5vw;
  background: #1f6fd1;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.admin-notice__text {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.admin-notice__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-notice a:focus-visible {
  outline-color: #fff;
}

body:has(.admin-notice) .site-footer {
  padding-bottom: 60px;
}

/* ---------- Icons ---------- */

.icon {
  fill: currentColor;
}

.social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media print {
  .site-header,
  .scrollup,
  .whatsapp-button,
  .cookie-notice,
  .map,
  .hero__photo {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 0;
  }

  .hero__panel {
    width: 100%;
    clip-path: none;
  }

  .hero__inner {
    padding: 0;
  }

  .equipment,
  .equipment .section-title,
  .equipment__subtitle,
  .equipment__lead,
  .machine__name,
  .machine__model,
  .machine__spec-value {
    background: none;
    color: #000;
  }

  .machine {
    background: none;
    clip-path: none;
  }
}

/* ---------- Promotion pop-up (Contenido → Promociones) ---------- */

/* A card in the middle of the dimmed page; a sheet from the bottom on a phone. */
.promo {
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-top: 5px solid var(--red);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.promo::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.promo__close-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  margin: 0;
}

.promo__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  color: var(--black);
  cursor: pointer;
}

.promo__close:hover,
.promo__close:focus {
  background: var(--red);
  color: #fff;
}

.promo__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.promo__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.promo__body {
  padding: 28px 28px 30px;
}

.promo__title {
  margin: 0 44px 12px 0;
  font-size: 32px;
}

/* Under an image the × sits on the photo, so the title takes the whole width. */
picture + .promo__body .promo__title {
  margin-right: 0;
}

.promo__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 24px;
}

.promo__text:last-child {
  margin-bottom: 0;
}

.promo__button {
  display: flex;
  width: 100%;
}

@media (max-width: 550px) {
  .promo {
    width: 100%;
    max-width: none;
    max-height: 90%;
    margin: auto auto 0;
  }

  .promo__body {
    padding: 24px 20px calc(26px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .promo[open] {
    animation: promo-in 0.3s ease-out;
  }

  .promo[open]::backdrop {
    animation: promo-fade 0.3s ease-out;
  }
}

@keyframes promo-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes promo-fade {
  from {
    opacity: 0;
  }
}
