/* ==========================================================================
   Ads-Peria — style.css
   Metodología BEM: block__element--modifier · estados .is-* · hooks .js-* (sin estilos)
   --------------------------------------------------------------------------
   TABLA DE CONTENIDOS
   01. Tokens (:root)
   02. Reset / base
   03. Utilidades (.skip-link, .container, .reveal)
   04. Botones (.btn)
   05. Navegación (.nav)
   06. Hero (.hero)
   07. Buscador simulado (.serp)
   08. Secciones genéricas (.section)
   09. Por qué Google (.why, .point, .bars)
   10. Soluciones — tabs (.tabs)
   11. Proceso (.steps, .step)
   12. Gráfica (.chart)
   13. Nosotros (.about, .value)
   14. FAQ (.faq)
   15. CTA / Contacto (.cta)
   16. Footer (.footer)
   17. Página legal (body.page-legal)
   18. Media queries responsive
   19. Print / reduced motion
   ========================================================================== */

/* 01. Tokens
   ========================================================================== */
:root {
  /* Color */
  --ink: #14161a;
  --ink-soft: #474d56;
  --ink-faint: #7c828c;
  --paper: #fbfaf7;
  --paper-raised: #ffffff;
  --line: rgba(20, 22, 26, 0.12);
  --line-soft: rgba(20, 22, 26, 0.07);
  --blue: #0b57d0;
  --blue-ink: #0a47a8;
  --navy: #10306b;
  --blue-tint: rgba(11, 87, 208, 0.07);
  --red: #d33d2a;
  --yellow: #f4b400;
  --green: #188038;
  --green-tint: rgba(24, 128, 56, 0.08);

  /* Tipografía */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  /* Forma y ritmo */
  --radius: 16px;
  --radius-sm: 10px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --maxw: 72rem;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 02. Reset / base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* 03. Utilidades
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.u-nowrap {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 04. Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

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

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

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

.btn--inverse {
  background: #fff;
  color: var(--ink);
}

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

/* 05. Navegación
   ========================================================================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top, 0);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 2rem;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  border-color: var(--yellow);
}

.nav__cta-item {
  margin-left: 0.5rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 06. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero__title-mark {
  white-space: nowrap;
  color: var(--blue);
}

.hero__lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-top: 1.25rem;
}

/* 07. Buscador simulado — resultados estilo Google
   ========================================================================== */
.serp {
  width: min(40rem, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 30px 70px -35px rgba(20, 22, 26, 0.3);
  padding: 1.5rem 1.75rem 1.9rem;
  text-align: left;
  font-family: arial, sans-serif;
}

.serp__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  background: #fff;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.12);
}

.serp__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #9aa0a6;
}

.serp__query {
  font-size: 16px;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
}

.serp__caret {
  display: inline-block;
  width: 1.5px;
  height: 1.15em;
  background: #4285f4;
  vertical-align: text-bottom;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.serp__results {
  margin-top: 1.6rem;
  min-height: 16.5rem;
}

.serp__result {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.serp__result.is-shown {
  opacity: 1;
  transform: none;
}

.serp__result--fade.is-shown {
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 15%, transparent 95%);
}

.serp__result + .serp__result {
  margin-top: 1.5rem;
}

.serp__label {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
}

.serp__site {
  display: flex;
  align-items: center;
  gap: 10px;
}

.serp__favicon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f3f4;
  border: 1px solid #ecedef;
  font-size: 12px;
  font-weight: 700;
  color: #5f6368;
}

.serp__siteinfo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.serp__sitename {
  font-size: 14px;
  color: #202124;
}

.serp__url {
  font-size: 12px;
  color: #4d5156;
}

.serp__title {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #1a0dab;
  margin: 10px 0 4px;
}

.serp__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #4d5156;
  margin: 0;
}

.serp__caption {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  text-align: center;
  max-width: 40rem;
}

/* 08. Secciones genéricas
   ========================================================================== */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

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

.section--ink {
  background: var(--navy);
  color: #fff;
}

.section__head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--tight {
  margin-bottom: 1.5rem;
}

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section--ink .section__kicker {
  color: var(--yellow);
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
}

.section__lede {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.section--ink .section__lede {
  color: rgba(255, 255, 255, 0.72);
}

/* 09. Por qué Google
   ========================================================================== */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.why__points {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.point__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.5rem;
}

.point__dot--green {
  background: var(--green);
}

.point__dot--blue {
  background: var(--blue);
}

.point__dot--yellow {
  background: var(--yellow);
}

.point__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.point__text {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Comparativa de intención */
.bars {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.bars__row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bars__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.bars__label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bars__value {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

.bars__value--low {
  color: var(--ink-faint);
}

.bars__track {
  height: 10px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.bars__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  transition: width 1.1s var(--ease) 0.2s;
}

.bars__fill--social {
  background: var(--ink-faint);
  transition-delay: 0.45s;
}

.bars.is-visible .bars__fill--search {
  width: 88%;
}

.bars.is-visible .bars__fill--social {
  width: 18%;
}

.bars__note {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* 10. Soluciones — tabs
   ========================================================================== */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.tabs__tab {
  min-height: 44px;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.tabs__tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.tabs__tab.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.tabs__panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.tabs__panel[hidden] {
  display: none;
}

.tabs__panel-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.tabs__panel-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.tabs__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tabs__point {
  display: flex;
  align-items: start;
  gap: 0.8rem;
  padding: 0.9rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

.tabs__point + .tabs__point {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs__point-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  margin-top: 0.55rem;
}

/* 11. Proceso
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.step:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.1rem;
}

.step__num--blue {
  background: var(--blue);
}

.step__num--red {
  background: var(--red);
}

.step__num--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.step__num--green {
  background: var(--green);
}

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* 12. Gráfica
   ========================================================================== */
.chart {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.chart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.chart__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chart__legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chart__legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.chart__legend-swatch--spend {
  background: var(--line);
}

.chart__legend-swatch--return {
  background: var(--blue);
}

.chart__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: end;
  height: 200px;
}

.chart__group {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 100%;
}

.chart__bar {
  width: clamp(20px, 4vw, 36px);
  border-radius: 6px 6px 0 0;
  height: calc(var(--h) * 1%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
}

.chart__bar--spend {
  background: var(--line);
}

.chart__bar--return {
  background: var(--blue);
}

.chart.is-visible .chart__bar {
  transform: scaleY(1);
}

.chart.is-visible .chart__group:nth-child(1) .chart__bar {
  transition-delay: 0.1s;
}

.chart.is-visible .chart__group:nth-child(2) .chart__bar {
  transition-delay: 0.3s;
}

.chart.is-visible .chart__group:nth-child(3) .chart__bar {
  transition-delay: 0.5s;
}

.chart.is-visible .chart__group:nth-child(4) .chart__bar {
  transition-delay: 0.7s;
}

.chart__labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.9rem;
}

.chart__label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.chart__caption {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* 13. Nosotros
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.about__text p + p {
  margin-top: 1.1rem;
}

.about__text {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.about__values {
  display: flex;
  flex-direction: column;
}

.value {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0;
}

.value + .value {
  border-top: 1px solid var(--line);
}

.value__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-faint);
  padding-top: 0.2rem;
}

.value__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.value__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* 14. FAQ
   ========================================================================== */
.faq__list {
  max-width: 48rem;
  margin-inline: auto;
}

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

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--blue);
}

.faq__q::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.faq__a {
  padding: 0 3.75rem 1.5rem 0.25rem;
  color: var(--ink-soft);
}

/* 15. CTA / Contacto
   ========================================================================== */
.cta {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.cta__panel {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.5rem, 7vw, 5rem);
  text-align: center;
  overflow: hidden;
}

.cta__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.cta__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.cta__address {
  font-style: normal;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta__address a {
  color: #fff;
  font-weight: 600;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}

/* 16. Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem 0 3rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand img {
  height: 1.75rem;
  width: auto;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
}

.footer__link:hover {
  color: var(--blue);
}

.footer__legal {
  width: 100%;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

/* 17. Página legal
   ========================================================================== */
.page-legal main {
  max-width: 44rem;
  margin-inline: auto;
  padding: 3.5rem var(--pad-x) 5rem;
}

.page-legal__header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-raised);
}

.page-legal__header-inner {
  max-width: 44rem;
  margin-inline: auto;
  padding: 1.1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-legal__header-inner img {
  height: 1.75rem;
  width: auto;
}

.page-legal__back {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue);
}

.page-legal__back:hover {
  text-decoration: underline;
}

.page-legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-legal__updated {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 2.5rem;
}

.page-legal h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
}

.page-legal p,
.page-legal li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.page-legal ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.page-legal li + li {
  margin-top: 0.4rem;
}

/* 18. Media queries responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links {
    gap: 1.1rem;
  }

  .nav__link {
    font-size: 0.9rem;
  }

  .nav__cta-item .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }
}

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

  .serp {
    max-width: 34rem;
    margin-inline: auto;
  }

  .serp__caption {
    margin-inline: auto;
  }

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

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--pad-x) 1.25rem;
  }

  .nav.is-open .nav__link {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.05rem;
  }

  .nav.is-open .nav__cta-item {
    margin: 1.1rem 0 0;
  }

  .nav.is-open .nav__cta-item .btn {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .why__grid,
  .about__grid,
  .tabs__panel {
    grid-template-columns: 1fr;
  }
}

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

  .hero__actions .btn {
    width: 100%;
  }

  .chart__bars {
    height: 150px;
  }

  .serp__results {
    min-height: 18rem;
  }

  .faq__a {
    padding-right: 0.25rem;
  }

  .cta__panel .btn {
    display: block;
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding-inline: 1.2rem;
  }
}

/* 19. Print / reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .bars__fill,
  .chart__bar,
  .btn,
  .step {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bars.is-visible .bars__fill--search,
  .bars__fill--search {
    width: 88%;
  }

  .bars__fill--social {
    width: 18%;
  }

  .chart__bar {
    transform: none;
  }

  .serp__caret {
    animation: none;
  }
}

@media print {
  .nav,
  .skip-link,
  .nav__toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-legal main {
    padding: 0;
  }

  .page-legal__back {
    display: none;
  }

  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
