/* sesgo.ia: single stylesheet (one request, no render-blocking chain).
   Sections, in cascade order: tokens, base, sections (header + hero), work (cases), blocks (rest of the page). */

/* ==================== tokens ==================== */

/* Metric-matched fallback for Manrope: while the web font loads, Arial is scaled to Manrope's width and line
   metrics so the swap does not move the hero (CLS). Values measured from the Manrope v23 files. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  font-weight: 400 600;
  size-adjust: 102.49%;
  ascent-override: 104.01%;
  descent-override: 29.27%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700 800;
  size-adjust: 101.92%;
  ascent-override: 104.59%;
  descent-override: 29.44%;
  line-gap-override: 0%;
}

:root {
  /* Brand palette (brandbook: 60% carbon, 30% marfil, 10% accent) */
  --carbon: #111318;
  --carbon-2: #1a1d24;
  --vermilion: #ff4d2e;
  --marfil: #f3f0e9;

  --line: rgb(243 240 233 / 0.14);
  --muted: rgb(243 240 233 / 0.64);

  /* Typography */
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.5rem, 6.4vw, 6.2rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.35rem);
  --fs-small: 0.8125rem;

  /* Layout */
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 140px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 760px) {
  :root {
    --header-h: 124px;
  }
}

/* ==================== base ==================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

/* Cover intro: the whole screen starts covered in vermilion with the logo. hero.js first curves the screen's
   top-right corner until the vermilion is a quarter circle (.intro__shape, clip-path), then moves that quarter
   (.intro__cover) with transform only, on the compositor, down to the headline's dot. */
.intro {
  display: none;
}

html.has-intro {
  overflow: hidden;
}

html.has-intro .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.intro__cover {
  position: absolute;
  inset: 0;
  background: var(--vermilion);
  transform-origin: 0 100%;
  will-change: transform;
}

/* The full-screen rectangle that curves into the quarter; it sits over the cover until they are the same shape. */
.intro__shape {
  position: absolute;
  inset: 0;
  background: var(--vermilion);
}

.intro__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(220px, 28vw, 380px);
  height: auto;
  translate: -50% -50%;
  will-change: transform, opacity;
}

/* The real quarter stays hidden until the cover has closed down onto it. */
html.has-intro .quarter {
  visibility: hidden;
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--marfil);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--vermilion);
  color: var(--carbon);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  background: var(--vermilion);
  color: var(--carbon);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--marfil);
}

.btn--ghost {
  background: transparent;
  color: var(--marfil);
  box-shadow: inset 0 0 0 1.5px var(--marfil);
}

.btn--ghost:hover {
  background: var(--marfil);
  color: var(--carbon);
}

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

/* ==================== sections ==================== */

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 20px var(--gutter) 0;
}

/* Logo + slogan lockup: the slogan sits under the logo on a single line, bigger than a caption. */
.brand-block {
  flex: none; /* brandbook: never render the logo below 220 px */
}

.brand {
  display: block;
  width: clamp(220px, 20vw, 280px);
}

.brand img {
  width: 100%;
  height: auto;
}

.brand__tag {
  margin: 12px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap; /* always a single line, it may run wider than the logo */
  color: var(--marfil);
}

.brand__tag em {
  font-style: normal;
  color: var(--vermilion);
}

@media (max-width: 760px) {
  .brand__tag {
    margin-top: 9px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 12px;
  }

  .site-header .btn {
    padding: 0.7em 1.1em;
  }
}

@media (max-width: 380px) {
  /* Very narrow phones: keep logo (min 220 px) and button on one row without horizontal overflow. */
  .site-header {
    gap: 8px;
  }

  .site-header .btn {
    padding: 0.6em 0.85em;
    font-size: 0.75rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding: calc(var(--header-h) + 6vh) var(--gutter) 5vh;
  overflow: clip;
}

.hero__o {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -14vmin;
  width: min(96vmin, 960px);
  height: auto;
  translate: 0 -46%;
}

.hero__o rect {
  fill: var(--carbon-2);
}

.hero__inner {
  align-self: center;
  max-width: 78rem;
}

.hero__eyebrow {
  margin: 0 0 clamp(18px, 3vh, 32px);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermilion);
}

.hero__title {
  margin: 0;
  max-width: 11.5em;
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--vermilion);
}

/* The orange quarter circle: same radius as the logo bite, used as the final period. */
.quarter-home {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  margin-left: 0.05em;
}

.quarter {
  display: block;
  width: var(--q, 100%);
  height: var(--q, 100%);
  background: var(--q-color, var(--vermilion));
  border-top-right-radius: 100%;
  transform-origin: 0 100%;
  translate: var(--qx, 0) var(--qy, 0);
  will-change: translate;
}

.hero__sub {
  max-width: 34rem;
  margin: clamp(24px, 4vh, 44px) 0 0;
  font-size: var(--fs-lead);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vh, 40px);
}

.hero__cta .btn {
  min-height: 48px;
  font-size: 0.9375rem;
}

.hero__for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 10px;
  max-width: 52rem;
  margin-top: clamp(20px, 3.5vh, 36px);
}

.hero__for-label {
  margin: 0 8px 0 0;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vermilion);
}

.hero__for ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__for li {
  padding: 0.5em 1.05em;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__facts strong {
  display: inline-block;
  min-width: 2ch; /* the counter animates 0 → 15: fixed-width digits keep the row from shifting */
  margin-right: 0.4em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--marfil);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermilion);
}

/* ==================== work ==================== */

/* Cases as a list that straightens itself.
   Every job arrives crooked, showing the "before" (struck through). As its row crosses the middle of the screen it
   levels out and turns into the "after". work.js writes --lvl (0 crooked → 1 level) and --sw (0 before → 1 after)
   on each row. Without JS or with reduced motion both lines are simply shown, stacked, no tilt. */

.work {
  position: relative;
  padding: clamp(72px, 10vw, 144px) var(--gutter) clamp(56px, 8vw, 112px);
  background: var(--carbon);
  color: var(--marfil);
}

.work__head {
  max-width: 64rem;
  margin-bottom: clamp(36px, 6vw, 84px);
}

.work__title {
  margin: 0.4em 0 0;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.work__lead {
  max-width: 40rem;
  margin: 1.1em 0 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
}

.work__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.work__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(12px, 2vw, 28px);
  padding: clamp(22px, 3.4vw, 46px) 0;
  border-top: 1px solid var(--line);
}

.work__num {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.work__line { min-width: 0; }

.work__antes,
.work__ahora {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(1.5rem, 4vw, 3.8rem);
  text-wrap: balance;
}

/* Static layout (no JS / reduced motion): the before sits small above the after. */
.work__antes {
  margin-bottom: 0.35em;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--vermilion);
  text-decoration-thickness: 0.1em;
}

.work__ahora::after {
  content: "";
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.12em;
  background: var(--vermilion);
  border-top-right-radius: 100%;
}

/* Result line: always visible under the after, in both layouts. */
.work__res {
  margin: 0.7em 0 0;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

/* Live layout: both lines share one cell. The before leans and straightens; the after takes over. */
.work-live .work__line { display: grid; }
.work-live .work__res { grid-area: 2 / 1; }

.work-live .work__antes,
.work-live .work__ahora {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.work-live .work__antes {
  transform-origin: 0 100%;
  transform: rotate(calc(var(--tilt, -3deg) * (1 - var(--lvl, 0))));
  opacity: calc(1 - var(--sw, 0));
  text-decoration-thickness: 0.07em;
}

.work-live .work__ahora {
  opacity: var(--sw, 0);
  transform: translateY(calc((1 - var(--sw, 0)) * 16px));
}

.work-live .work__ahora::after {
  transform-origin: 0 100%;
  transform: rotate(calc((1 - var(--lvl, 1)) * -70deg));
}

.work__tag {
  align-self: center;
  padding: 0.35em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.work__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.15em;
  border: 1.5px solid var(--marfil);
  border-radius: 999px;
  background: transparent;
  color: var(--marfil);
  font: 700 var(--fs-small) var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.work__more i { font-style: normal; font-size: 1.2em; line-height: 1; }

.work__more:hover,
.work__more:focus-visible,
.work__item.is-open .work__more {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: var(--carbon);
}

/* Detail: opens in place, no modal. */
.work__detail {
  grid-column: 2 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.work__item.is-open .work__detail { grid-template-rows: 1fr; }

.work__detail-in { min-height: 0; overflow: hidden; }

.work__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 40px);
}

.work__body:not(:has(.work__shots, .work__chat)) { grid-template-columns: minmax(0, 46rem); }

.work__client {
  margin: 0 0 0.4em;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vermilion);
}

.work__name {
  margin: 0 0 0.8em;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.work__ba { margin: 0; display: grid; gap: 1.1em; }
.work__ba div { margin: 0; }

.work__ba dt {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__ba dd { margin: 0.25em 0 0; font-size: 1.05rem; line-height: 1.5; }
.work__ba div:first-child dd { color: var(--muted); }
.work__ba div:last-child dd { font-weight: 600; }

.work__how { margin: 1.3em 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.work__how strong { color: var(--marfil); }

.work__link {
  display: inline-block;
  margin-top: 1.1em;
  font-weight: 700;
  color: var(--vermilion);
}

.work__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.work__shots img { display: block; width: 100%; height: auto; border-radius: 8px; }
.work__demo { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--muted); }

.work__chat { display: grid; gap: 8px; align-content: start; max-width: 26rem; }

.work__bub {
  margin: 0;
  max-width: 88%;
  padding: 0.65em 0.9em;
  border-radius: 14px 14px 14px 3px;
  background: var(--marfil);
  color: var(--carbon);
  font-size: 0.9rem;
  line-height: 1.4;
}

.work__bub--out { justify-self: end; border-radius: 14px 14px 3px 14px; background: #ffd9cf; }
.work__bub b { color: var(--vermilion); }

@media (max-width: 760px) {
  .work__item { grid-template-columns: 2rem minmax(0, 1fr); row-gap: 14px; }
  .work__tag { display: none; }
  .work__more { grid-column: 2; justify-self: start; }
  .work__detail { grid-column: 1 / -1; }
  .work__body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .work__detail { transition: none; }
}

/* ==================== blocks ==================== */

/* ---------- Shared ---------- */
.eyebrow--dark { color: var(--carbon); opacity: 0.7; }

.btn--dark {
  background: var(--carbon);
  color: var(--marfil);
}

.btn--dark:hover {
  background: var(--marfil);
  color: var(--carbon);
}

/* ---------- Tres formas (marfil) ---------- */
.formas {
  background: var(--marfil);
  color: var(--carbon);
  padding: clamp(72px, 14vh, 160px) var(--gutter);
}

.formas .eyebrow { color: var(--carbon); opacity: 0.7; }

.formas__title {
  margin: 0 0 clamp(40px, 8vh, 88px);
  max-width: 14em;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.formas__grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid rgb(17 19 24 / 0.2);
}

@media (min-width: 900px) {
  .formas__grid { grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); }
}

.forma {
  padding: 28px 0 36px;
  border-bottom: 1px solid rgb(17 19 24 / 0.2);
}

@media (min-width: 900px) {
  .forma { border-bottom: 0; padding-bottom: 0; }
}

.forma__num {
  margin: 0 0 18px;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--carbon);
}

.forma h3 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.forma__list,
.chips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.forma__list li {
  padding: 7px 0;
  border-top: 1px solid rgb(17 19 24 / 0.14);
  font-size: 1rem;
}

.forma__list { margin-bottom: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-block;
  padding: 0.55em 1.05em;
  border-radius: 999px;
  background: var(--carbon);
  color: var(--marfil);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.chip:hover,
.chip:focus-visible {
  background: var(--vermilion);
  color: var(--carbon);
  transform: translateY(-2px);
}

/* ---------- Cómo trabajamos (carbón) ---------- */
.metodo {
  background: var(--carbon);
  padding: clamp(72px, 14vh, 160px) var(--gutter);
}

.metodo__title {
  margin: 0 0 clamp(40px, 8vh, 88px);
  max-width: 14em;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.metodo__steps {
  --p: 1; /* final state when no JS: line fully drawn */
  position: relative;
  padding-top: 28px;
}

.metodo__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--vermilion);
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
}

.metodo__list {
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .metodo__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.metodo__num {
  display: block;
  margin-bottom: 14px;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--vermilion);
}

.metodo__list h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metodo__list p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-lead);
}

/* On the vermilion closing section the quarter turns carbon so it stays visible. */
.cierre .quarter-home { --q-color: var(--carbon); }

/* Without JS or with reduced motion there is no travelling quarter: each title shows a static one. */
html:not(.quarter-live) .quarter-home:empty::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--q-color, var(--vermilion));
  border-top-right-radius: 100%;
}

/* ---------- Cierre (vermilion) ---------- */
.cierre {
  background: var(--vermilion);
  color: var(--carbon);
  padding: clamp(64px, 12vh, 140px) var(--gutter) clamp(56px, 10vh, 120px);
}

.cierre__logo {
  width: clamp(220px, 26vw, 340px);
  height: auto;
  margin-bottom: clamp(40px, 8vh, 96px);
}

.cierre__title {
  margin: 0 0 clamp(32px, 6vh, 56px);
  max-width: 11em;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cierre__lead {
  max-width: 34rem;
  margin: -12px 0 clamp(28px, 5vh, 48px);
  font-size: var(--fs-lead);
  font-weight: 600;
}

.btn--big {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 1.1em 1.8em;
  border-radius: 20px;
}

.btn--big .btn__label {
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.btn--big .btn__number {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cierre__alt {
  margin: 22px 0 0;
  font-size: var(--fs-lead);
  font-weight: 600;
}

.cierre__alt a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cierre__meta {
  margin: 28px 0 0;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 22px var(--gutter);
  background: var(--carbon);
  color: var(--muted);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }

.site-footer__mail {
  color: inherit;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__mail:hover { color: var(--marfil); }

/* ---------- Mail chooser ---------- */
.mailmenu {
  width: min(92vw, 420px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--carbon-2);
  color: var(--marfil);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), inset 0 0 0 1px var(--line);
}

.mailmenu::backdrop {
  background: rgb(17 19 24 / 0.72);
  backdrop-filter: blur(4px);
}

.mailmenu__card {
  display: grid;
  gap: 10px;
  padding: 26px 24px 20px;
}

.mailmenu__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mailmenu__hint {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.mailmenu__primary,
.mailmenu__option {
  display: block;
  width: 100%;
  padding: 0.95em 1.2em;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mailmenu__primary {
  background: var(--vermilion);
  color: var(--carbon);
  font-weight: 800;
}

.mailmenu__option {
  background: rgb(243 240 233 / 0.08);
  color: var(--marfil);
}

.mailmenu__primary:hover,
.mailmenu__option:hover {
  background: var(--marfil);
  color: var(--carbon);
}

.mailmenu__status {
  min-height: 1.2em;
  margin: 0;
  color: var(--vermilion);
  font-size: var(--fs-small);
  font-weight: 600;
}

.mailmenu__close {
  width: 100%;
  padding: 0.7em;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 560px) {
  /* Bottom sheet on phones */
  .mailmenu {
    margin: auto auto 0;
    width: 100%;
    max-width: none;
    border-radius: 22px 22px 0 0;
  }
}

/* ==================== touch targets ==================== */

/* Phones: every tap target is at least 44 px tall. Inline text links grow their hit area with padding only,
   so the text layout does not move. */
@media (max-width: 760px) {
  .site-header .btn,
  .work__more,
  .chip,
  .work__link {
    min-height: 44px;
  }

  .chip,
  .work__link {
    display: inline-flex;
    align-items: center;
  }

  .cierre__alt a,
  .site-footer__mail {
    padding-block: 13px;
  }
}
