/* ==========================================================================
   FERAND — sistema visual
   Grafito, marfil y naranja de marca. Editorial, sobrio, responsive y AA.
   ========================================================================== */

:root {
  --graphite: #17191a;
  --graphite-2: #222527;
  --graphite-3: #34383a;
  --ivory: #f5f1e8;
  --paper: #fbfaf6;
  --sand: #ece6d9;
  --orange: #ff4a12;
  --orange-deep: #c43a06;
  --muted: #63625b;
  --line: rgba(23, 25, 26, 0.14);
  --line-strong: rgba(23, 25, 26, 0.34);
  --line-light: rgba(245, 241, 232, 0.18);
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 84px;
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--orange);
  color: var(--graphite);
}

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

.site-footer :focus-visible,
.cta-band :focus-visible,
.cookie-banner :focus-visible,
.statement :focus-visible,
.page-hero--dark :focus-visible,
.cookie-settings-panel :focus-visible {
  outline-color: var(--ivory);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.8rem 1rem;
  background: var(--graphite);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

/* --------------------------------------------------------------------------
   Tipografía y utilidades
   -------------------------------------------------------------------------- */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: inherit;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 4.3vw, 4.2rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.h1 {
  font-size: clamp(2.3rem, 4.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.h2 {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: none;
  background: var(--orange);
}

.eyebrow--light {
  color: rgba(245, 241, 232, 0.86);
}

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

.section {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.section-head .h2 {
  max-width: 18ch;
  margin-top: 0.9rem;
}

.section-head__lead {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Botones y enlaces
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 1px;
  background: transparent;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--graphite);
}

.btn--primary:hover {
  background: var(--graphite);
  color: var(--ivory);
}

.btn--primary:focus-visible {
  outline-color: var(--graphite);
}

.btn--dark {
  background: var(--graphite);
  color: var(--ivory);
}

.btn--dark:hover {
  background: var(--orange);
  color: var(--graphite);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--graphite);
}

.btn--ghost:hover {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--ivory);
}

.btn--cookie {
  padding: 0.65rem 1rem;
  border-color: rgba(245, 241, 232, 0.38);
  color: var(--ivory);
  font-size: 0.82rem;
}

.btn--cookie:hover {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--graphite);
}

.btn--sm {
  padding: 0.62rem 0.95rem;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 1rem 1.65rem;
  font-size: 1rem;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(2px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.text-link:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(23, 25, 26, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  color: var(--graphite);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: 190px;
  object-fit: contain;
}

.brand--footer .brand__logo {
  height: 34px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav__list {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang-switch a {
  padding: 0.3rem 0.15rem;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  border-bottom: 1px solid var(--orange);
  color: var(--graphite);
}

.lang-switch span {
  color: var(--line-strong);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon .icon {
  width: 18px;
  height: 18px;
}

.menu-toggle__icon .menu-icon {
  display: block;
}

.menu-toggle__icon .menu-icon--close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon--close {
  display: block;
}

.mobile-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-height: min(720px, calc(100svh - var(--header-h)));
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.hero__content {
  display: flex;
  align-items: center;
}

.hero__content-inner {
  max-width: 760px;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.hero .display {
  max-width: 16ch;
  margin: 1rem 0 1.6rem;
}

.hero__lead {
  max-width: 53ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--orange);
}

.hero__media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--sand);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 3px;
  background: var(--orange);
}

.hero__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  margin: 0;
  padding: 0.55rem 0.8rem;
  background: rgba(23, 25, 26, 0.86);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Home — intro, ventajas, manifiesto, pasos, partners
   -------------------------------------------------------------------------- */

.intro {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.intro__body .h2 {
  max-width: 18ch;
  margin-bottom: 1.3rem;
}

.intro__text {
  max-width: 56ch;
  color: var(--graphite);
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.advantage {
  padding: 2rem 2rem 2.4rem 0;
  border-right: 1px solid var(--line);
}

.advantage:not(:first-child) {
  padding-left: 2rem;
}

.advantage:last-child {
  padding-right: 0;
  border-right: 0;
}

.advantage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.4rem;
}

.advantage__num {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.advantage__icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.advantage:hover .advantage__icon {
  color: var(--orange);
  transform: translate(2px, -2px);
}

.advantage .h3 {
  margin-bottom: 0.75rem;
}

.advantage p {
  max-width: 34ch;
  color: var(--muted);
}

.statement {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  background: var(--graphite);
  color: var(--ivory);
}

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.statement__media {
  position: relative;
  margin: 0;
}

.statement__media img {
  width: 100%;
  height: clamp(260px, 30vw, 430px);
  aspect-ratio: auto;
  object-fit: cover;
}

.statement__media::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--line-light);
  pointer-events: none;
}

.statement blockquote {
  margin: 1.5rem 0;
}

.statement blockquote p {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.statement__rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--orange);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.step {
  position: relative;
  padding: 2.2rem 2rem 0 0;
  border-right: 1px solid var(--line);
}

.step:not(:first-child) {
  padding-left: 2rem;
}

.step:last-child {
  padding-right: 0;
  border-right: 0;
}

.step__num {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.step__dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.step:not(:first-child) .step__dot {
  left: 2rem;
}

.step .h3 {
  margin: 1.8rem 0 0.65rem;
}

.step p {
  max-width: 30ch;
  color: var(--muted);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.partner-tile {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 1.5rem;
  background: var(--ivory);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  outline: 1px dashed var(--line-strong);
  outline-offset: -8px;
}

.partner-tile span {
  max-width: 16ch;
}

.team__note {
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Banda CTA
   -------------------------------------------------------------------------- */

.cta-band {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  border-top: 3px solid var(--orange);
  background: var(--graphite);
  color: var(--ivory);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 3rem;
  align-items: center;
}

.cta-band .h2 {
  max-width: 20ch;
  margin: 0.8rem 0 1rem;
}

.cta-band p {
  max-width: 50ch;
  color: rgba(245, 241, 232, 0.72);
}

.cta-band .eyebrow--light {
  color: rgba(245, 241, 232, 0.8);
}

/* --------------------------------------------------------------------------
   Páginas interiores — hero, migas y barra de anclas
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.75rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.page-hero--simple .page-hero__inner {
  grid-template-columns: minmax(0, 1fr);
}

.page-hero--simple .page-hero__main {
  max-width: 900px;
}

.page-hero__main .h1 {
  max-width: 15ch;
  margin: 0.8rem 0 1.5rem;
}

.page-hero__main .lead {
  max-width: 55ch;
}

.page-hero__media {
  position: relative;
  align-self: start;
  height: clamp(260px, 34vw, 390px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--sand);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-hero__media::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 3px;
  background: var(--orange);
}

.page-hero--dark {
  border-color: var(--line-light);
  background: var(--graphite);
  color: var(--ivory);
}

.page-hero--dark .lead {
  color: rgba(245, 241, 232, 0.72);
}

.page-hero--dark .eyebrow {
  color: rgba(245, 241, 232, 0.86);
}

.page-hero--dark .h1 {
  max-width: 14ch;
}

.page-hero--dark .breadcrumbs,
.page-hero--dark .breadcrumbs a {
  color: rgba(245, 241, 232, 0.58);
}

.page-hero--dark .breadcrumbs a:hover {
  color: var(--orange);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--orange-deep);
}

.anchor-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.96);
  backdrop-filter: blur(10px);
}

.anchor-bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar__inner::-webkit-scrollbar {
  display: none;
}

.anchor-bar__label {
  flex: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.anchor-bar a {
  flex: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.anchor-bar a:hover {
  border-color: var(--orange);
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.audience__aside {
  position: sticky;
  top: calc(var(--header-h) + 80px);
}

.audience__aside .h2 {
  max-width: 15ch;
  margin: 0.8rem 0 1.2rem;
}

.audience__aside .lead {
  max-width: 40ch;
  font-size: 1.02rem;
}

.service-list {
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.service-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.service-item__num {
  padding-top: 0.25rem;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-item .h3 {
  margin-bottom: 0.45rem;
}

.service-item p {
  max-width: 55ch;
  color: var(--muted);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tech-tile {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--ivory);
}

.tech-tile__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.96);
}

.tech-tile__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1.5rem;
}

.tech-tile__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  color: var(--orange);
}

.tech-tile__mark .icon {
  width: 16px;
  height: 16px;
}

.tech-tile__title {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.tech-tile__note {
  color: var(--muted);
  font-size: 0.74rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.faq-layout__head {
  position: sticky;
  top: calc(var(--header-h) + 80px);
}

.faq-layout__head .h2 {
  max-width: 14ch;
  margin-top: 0.8rem;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--orange);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__body {
  max-width: 60ch;
  padding: 0 2.5rem 1.5rem 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Quiénes somos
   -------------------------------------------------------------------------- */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-intro__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 1rem;
  background: var(--orange);
}

.about-intro__body .h2 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.about-intro__body .intro__text {
  margin-bottom: 1rem;
}

.about-intro__body > p:last-child {
  max-width: 58ch;
  color: var(--muted);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.mission-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--paper);
}

.mission-card__label {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-card__text {
  max-width: 24ch;
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: pretty;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.value-card {
  min-height: 220px;
  padding: 2rem 1.75rem;
  background: var(--ivory);
}

.value-card__num {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.value-card .h3 {
  margin: 2rem 0 0.75rem;
}

.value-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  min-height: 280px;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.team-card__avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.team-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.team-card__role {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-card__link {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

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

.section--contact {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.contact-info .h2 {
  max-width: 14ch;
  margin: 0.8rem 0 1.2rem;
}

.contact-info > p:not(.eyebrow) {
  max-width: 42ch;
  color: var(--muted);
}

.contact-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-strong);
}

.contact-list > div {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list dt .icon {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.contact-list dd {
  margin: 0;
  font-size: 1rem;
}

.contact-info__note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-form-wrap {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: var(--ivory);
}

.contact-form-wrap .h2 {
  max-width: 18ch;
  margin-bottom: 0.5rem;
}

.contact-form__intro {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.req {
  color: var(--orange-deep);
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--graphite);
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field select {
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%),
    linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  appearance: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f6e66;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--graphite-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--graphite);
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a92d23;
  background: #fff7f5;
}

.field__error {
  margin: 0;
  color: #a92d23;
  font-size: 0.76rem;
  line-height: 1.45;
}

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

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  accent-color: var(--orange);
}

.check label {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.check label a {
  color: var(--graphite);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--orange);
  background: var(--sand);
}

.privacy-note__title {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.privacy-note p {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.form-notice {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line-strong);
  background: var(--paper);
}

.form-notice__title {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-notice p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-status {
  padding: 0.9rem 1rem;
  background: var(--graphite);
  color: var(--ivory);
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-status .ph {
  border-color: rgba(255, 74, 18, 0.6);
  background: rgba(255, 74, 18, 0.18);
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   Páginas legales
   -------------------------------------------------------------------------- */

.section--legal {
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.legal-toc__label {
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--orange-deep);
}

.legal {
  min-width: 0;
  max-width: 820px;
}

.legal-layout > * {
  min-width: 0;
}

.draft-banner {
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--orange);
  background: var(--ivory);
}

.draft-banner__label {
  margin-bottom: 0.35rem;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.draft-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.legal__updated {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.legal__section {
  padding-top: 1.8rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal__section h2 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal__section h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.legal__section p,
.legal__section li {
  color: var(--muted);
  font-size: 0.94rem;
}

.legal__section p {
  margin-bottom: 0.9rem;
}

.legal__section ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

.legal__section li {
  margin-bottom: 0.45rem;
}

.legal__section strong {
  color: var(--graphite);
  font-weight: 600;
}

.legal__section a {
  color: var(--graphite);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__section a:hover {
  color: var(--orange-deep);
}

.legal-table,
.cookie-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.legal-table th,
.legal-table td,
.cookie-table th,
.cookie-table td {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 34%;
  background: var(--ivory);
  font-family: var(--font-display);
  font-weight: 600;
}

.legal-table td {
  color: var(--muted);
}

.cookie-table th {
  background: var(--graphite);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cookie-table td {
  background: var(--ivory);
  color: var(--muted);
}

.cookie-table code {
  padding: 0.1rem 0.3rem;
  background: var(--sand);
  font-size: 0.78rem;
}

.table-scroll {
  max-width: 100%;
  margin: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .cookie-table {
  min-width: 720px;
  margin: 0;
}

.legal-callout {
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--orange);
  background: var(--ivory);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.ph {
  padding: 0 0.15em;
  border-bottom: 1px dotted var(--orange);
  background: rgba(255, 74, 18, 0.09);
  color: var(--graphite);
  font-weight: 500;
}

.cookie-settings-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--graphite);
  color: var(--ivory);
}

.cookie-settings-panel p {
  max-width: 60ch;
  margin-top: 0.4rem;
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.88rem;
}

.cookie-settings-panel .btn--dark {
  background: var(--ivory);
  color: var(--graphite);
}

.cookie-settings-panel .btn--dark:hover {
  background: var(--orange);
  color: var(--graphite);
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 6rem) 1.5rem;
  background: var(--graphite);
  color: var(--ivory);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.brand--footer .brand__name {
  color: var(--ivory);
}

.footer__intro {
  max-width: 34ch;
  margin: 1.5rem 0 1rem;
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.94rem;
}

.footer__note {
  max-width: 36ch;
  color: rgba(245, 241, 232, 0.58);
  font-size: 0.74rem;
  line-height: 1.55;
}

.footer__title {
  margin-bottom: 1.2rem;
  color: rgba(245, 241, 232, 0.56);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.footer__list a,
.footer__list .link-button {
  color: rgba(245, 241, 232, 0.82);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer__list a:hover,
.footer__list .link-button:hover {
  color: var(--orange);
}

.footer__list--muted li {
  color: rgba(245, 241, 232, 0.62);
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer .ph {
  border-color: rgba(255, 74, 18, 0.5);
  background: rgba(255, 74, 18, 0.16);
  color: var(--ivory);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  color: rgba(245, 241, 232, 0.56);
  font-size: 0.72rem;
}

.footer__bottom .link-button {
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.72rem;
}

.footer__bottom .link-button:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Banner y diálogo de cookies
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding-block: 1.2rem;
  border-top: 3px solid var(--orange);
  background: var(--graphite);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.18);
  color: var(--ivory);
}

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

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 2rem;
  align-items: center;
}

.cookie-banner__text h2 {
  margin-bottom: 0.35rem;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.cookie-banner__text p {
  max-width: 75ch;
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.78rem;
  line-height: 1.55;
}

.cookie-banner__text a {
  color: var(--ivory);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-dialog {
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: var(--ivory);
  color: var(--graphite);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.cookie-dialog::backdrop {
  background: rgba(23, 25, 26, 0.66);
  backdrop-filter: blur(3px);
}

.cookie-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}

.cookie-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-dialog__head h2 {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: none;
  color: var(--graphite);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--graphite);
  color: var(--ivory);
}

.cookie-dialog__intro {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.consent-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--line-strong);
}

.consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.consent-row--fixed {
  cursor: default;
}

.consent-row__copy h3 {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.consent-row__copy p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.consent-badge {
  flex: none;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.switch {
  position: relative;
  flex: none;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch__track {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--sand);
  transition: background 0.2s var(--ease);
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ivory);
  transition: transform 0.2s var(--ease);
}

.switch input:checked + .switch__track {
  border-color: var(--orange);
  background: var(--orange);
}

.switch input:checked + .switch__track .switch__thumb {
  border-color: var(--graphite);
  background: var(--graphite);
  transform: translateX(20px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--graphite);
  outline-offset: 2px;
}

.cookie-dialog__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Movimiento
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .nav__list {
    gap: 1.15rem;
  }

  .header__inner {
    gap: 1.25rem;
  }

  .hero .display {
    max-width: 15ch;
  }
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(n + 3) {
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
  }

  .step:nth-child(3) {
    padding-left: 0;
  }

  .step:nth-child(3) .step__dot {
    left: 0;
  }

  .step:nth-child(n + 3) .step__dot {
    top: -5px;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 72px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header__cta {
    display: none;
  }

  .mobile-nav {
    display: block;
    max-height: calc(100svh - var(--header-h));
    padding-block: 1.5rem;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--ivory);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav__list {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    list-style: none;
  }

  .mobile-nav__list li {
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav__list .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.08rem;
  }

  .mobile-nav__list .nav__link::after {
    display: none;
  }

  .mobile-nav__cta {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__content-inner {
    max-width: none;
    padding-block: clamp(3rem, 8vw, 5rem);
  }

  .hero .display {
    max-width: 17ch;
  }

  .hero__media {
    min-height: 0;
    height: 56vw;
    max-height: 520px;
  }

  .intro__grid,
  .section-head--split,
  .page-hero__inner,
  .audience,
  .faq-layout,
  .about-intro,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .intro__aside .eyebrow {
    margin-bottom: 0.5rem;
  }

  .page-hero__media {
    height: 56vw;
    min-height: 0;
    max-height: 360px;
  }

  .page-hero__media img {
    aspect-ratio: 16 / 9;
  }

  .audience__aside,
  .faq-layout__head,
  .contact-info,
  .legal-toc {
    position: static;
  }

  .audience__aside {
    max-width: 680px;
  }

  .audience + .service-list {
    margin-top: 1rem;
  }

  .legal-toc {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
  }

  .statement__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }

  .cookie-settings-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .advantage-grid,
  .mission-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .advantage {
    padding: 1.35rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .advantage:not(:first-child) {
    padding-left: 0;
  }

  .advantage:last-child {
    border-bottom: 0;
  }

  .advantage__top {
    margin-bottom: 1.4rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:not(:first-child) {
    padding: 1.35rem 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .step:first-child {
    border-top: 0;
  }

  .step__dot,
  .step:not(:first-child) .step__dot,
  .step:nth-child(3) .step__dot {
    top: -5px;
    left: 0;
  }

  .step:nth-child(n + 3) {
    padding-top: 1.8rem;
  }

  .step .h3 {
    margin-top: 1.2rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    margin-top: 2.5rem;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .statement__grid {
    grid-template-columns: 1fr;
  }

  .statement__media {
    max-width: 420px;
  }

  .statement blockquote p {
    max-width: 20ch;
  }

  .cookie-dialog__intro {
    margin: 0.8rem 0 1rem;
    font-size: 0.84rem;
  }

  .consent-row {
    padding: 0.9rem 0;
  }

  .consent-row__copy h3 {
    font-size: 0.9rem;
  }

  .consent-row__copy p {
    font-size: 0.76rem;
  }

  .cookie-dialog__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .cookie-dialog__actions .btn {
    width: 100%;
  }

  .cookie-dialog__actions [data-cookie-action="save"] {
    grid-column: 1 / -1;
    order: -1;
  }

  .cookie-settings-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 1.15rem;
  }

  .header__inner {
    gap: 0.75rem;
  }

  .brand__name {
    font-size: 1.02rem;
    letter-spacing: 0.14em;
  }

  .brand__mark {
    width: 24px;
    height: 24px;
  }

  .lang-switch {
    font-size: 0.7rem;
  }

  .menu-toggle__label {
    display: none;
  }

  .menu-toggle {
    padding: 0.55rem;
  }

  .display {
    font-size: clamp(2.35rem, 10.5vw, 3.1rem);
  }

  .h1 {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
  }

  .h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.2rem);
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .partners-grid,
  .tech-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .partner-tile {
    min-height: 110px;
  }

  .tech-tile {
    min-height: 180px;
  }

  .value-card {
    min-height: 0;
  }

  .service-item {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    padding: 0.6rem 0.35rem;
    font-size: 0.76rem;
  }

  .page-hero {
    padding-top: 2rem;
  }

  .breadcrumbs {
    margin-bottom: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Impresión
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .cookie-dialog,
  .anchor-bar,
  .legal-toc,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .page-hero,
  .section,
  .section--legal {
    padding-block: 1rem;
    background: #fff;
  }

  .legal-layout {
    display: block;
  }

  .legal__section {
    break-inside: avoid-page;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
