/*
 * postmind.es: la web pública. Mismos tokens que la app (src/client/styles.css):
 * tinta índigo sobre papel lila, iris como único acento y sol solo para lo que destaca.
 * Sin fuentes externas: la tipografía es la del sistema (redondeada donde existe).
 */
:root {
  color-scheme: light;
  --ink: #1d1a33; /* 15,5:1 sobre papel */
  --ink-soft: #4b4766; /* 8,1:1 */
  --ink-faint: #625e7a; /* 5,7:1 */
  --paper: #f6f5fb;
  --surface: #ffffff;
  --line: #e4e1ee;
  --line-strong: #c9c5d9;
  --iris: #5b3df5; /* blanco encima: 6,1:1 */
  --iris-hover: #4a2fd9;
  --iris-text: #4b32d6; /* 7,1:1 sobre papel */
  --iris-soft: #eeeafe; /* sobre iris: 5,2:1 */
  --sun: #ffc94d; /* tinta encima: 11:1. Nunca texto sobre iris: 4:1 */
  --sun-soft: #fff4d6;
  --amber-text: #8a5300; /* 5,8:1 sobre sun-soft */
  --focus: #4b32d6;
  --shadow-float: 0 30px 60px -28px rgba(29, 26, 51, 0.45);
  --shadow-soft: 0 18px 40px -20px rgba(29, 26, 51, 0.3);

  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala modular 1,25 sobre 17 px; el titular va aparte */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: 1.25rem;
  --t-h3: 1.5rem;
  --t-h2: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --t-hero: clamp(3rem, 1.2rem + 7.6vw, 7.5rem);

  --r-card: 20px;
  --r-shot: 18px;
  --r-pill: 999px;
  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body) / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: var(--t-h2);
  font-weight: 800;
}
h3 {
  font-size: var(--t-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--iris-text);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Botones: siempre píldoras ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-pill);
  font: 750 1.0625rem/1.2 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-small {
  white-space: nowrap;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.975rem;
}
.btn-iris {
  background: var(--iris);
  color: #fff;
}
.btn-iris:hover {
  background: var(--iris-hover);
}
.btn-sun {
  background: var(--sun);
  color: var(--ink);
}
.btn-sun:hover {
  background: #ffd36e;
}
.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn-ghost {
  color: var(--iris-text);
  border-color: var(--line-strong);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--iris);
}
.hero .btn:focus-visible,
.closing .btn:focus-visible,
.hero a:focus-visible {
  outline-color: #fff;
}

/* ---------- Marca ---------- */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  font: 850 1.4rem/1 var(--font-display);
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
}
.brandmark-pulse {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  flex: none;
  background: var(--iris) url("../img/pulse.svg") center / 1.35rem no-repeat;
}

/* ---------- Cabecera ---------- */
.site-header {
  background: var(--iris);
  color: #fff;
}
.site-header .brandmark {
  color: #fff;
}
.site-header .brandmark-pulse {
  background-color: var(--ink);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a,
.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover,
.link-quiet:hover {
  background: rgba(255, 255, 255, 0.14);
}
.site-header :focus-visible {
  outline-color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.site-header .btn-iris {
  background: var(--sun);
  color: var(--ink);
}
.site-header .btn-iris:hover {
  background: #ffd36e;
}

/* ---------- Portada ---------- */
.hero {
  background: var(--iris);
  color: #fff;
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
  /* el papel empieza a media captura */
  background-image: linear-gradient(var(--iris), var(--iris));
  background-size: 100% calc(100% - clamp(7rem, 16vw, 15rem));
  background-repeat: no-repeat;
  background-color: var(--paper);
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: var(--t-hero);
  font-size: clamp(2.4rem, 0.25rem + 11vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 11ch;
}
.hero-lede {
  margin-top: 1.6rem;
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: 36rem;
  color: #fff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-fine {
  margin-top: 1.1rem;
  max-width: 34rem;
  font-size: var(--t-small);
  color: var(--iris-soft);
}
.hero {
  --pulse-h: clamp(7rem, 26vw, 23rem);
  overflow-x: clip;
}
.hero-pulse {
  display: block;
  position: relative;
  width: 100%;
  height: var(--pulse-h);
  margin-top: calc(var(--pulse-h) * -0.5);
  overflow: visible;
  pointer-events: none;
}
.hero-pulse path {
  fill: none;
  stroke: var(--sun);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-pulse path {
    animation: draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
  }
  @keyframes draw {
    from {
      stroke-dashoffset: 1;
    }
  }
}
.hero-media {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--pulse-h) * -0.25);
  padding-bottom: 1rem;
}
.hero-shot,
.hero-phone,
.shot {
  margin: 0;
}
.hero-shot img,
.shot img {
  border-radius: var(--r-shot);
  box-shadow: var(--shadow-float);
  background: var(--surface);
  outline: 1px solid rgba(29, 26, 51, 0.08);
}
.hero-shot {
  max-width: 62rem;
}
.hero-phone {
  display: none;
}

@media (min-width: 64rem) {
  .hero-phone {
    display: block;
    position: absolute;
    right: var(--gutter);
    bottom: -3rem;
    width: 15.5rem;
  }
  .hero-phone img {
    border-radius: 2rem;
    border: 0.5rem solid var(--ink);
    box-shadow: var(--shadow-float);
  }
}

/* ---------- Promesas ---------- */
.promises {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}
.promises ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
}
.promises li {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 1.75rem;
  position: relative;
  max-width: 26rem;
}
.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px var(--sun-soft);
}
.promises strong {
  display: block;
  font: 800 1.6rem/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
@media (min-width: 52rem) {
  .promises ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Funciones ---------- */
.section-title {
  max-width: 22ch;
}
.section-lede {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: var(--t-lead);
  color: var(--ink-soft);
}
.features {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3.5rem, 8vw, 7rem);
}
.feature-text {
  max-width: 30rem;
}
.feature-text p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}
.ticks {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.ticks li {
  position: relative;
  padding-left: 1.9rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--iris-soft) url("../img/check.svg") center / 0.8rem no-repeat;
}
.shot-pair {
  position: relative;
}
.shot-pair .shot-phone {
  position: absolute;
  width: 34%;
  right: -0.5rem;
  bottom: -2.5rem;
}
.shot-phone img {
  border-radius: 1.6rem;
  border: 0.4rem solid var(--ink);
}
.shot-solo {
  width: min(17rem, 70%);
  justify-self: center;
}
@media (min-width: 64rem) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
  .feature-flip .feature-text {
    order: 2;
  }
  .feature-flip > :not(.feature-text) {
    order: 1;
  }
  .shot-solo {
    justify-self: start;
    width: 17rem;
  }
}

.more {
  margin-top: clamp(4rem, 9vw, 8rem);
}
.more-title {
  font-size: var(--t-h2);
}
.more-list {
  margin: 2rem 0 0;
  display: grid;
  gap: 0;
}
.more-list > div {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-strong);
}
.more-list dt {
  font: 800 1.25rem/1.2 var(--font-display);
  letter-spacing: -0.015em;
}
.more-list dd {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  max-width: 34rem;
}
@media (min-width: 48rem) {
  .more-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}
@media (min-width: 72rem) {
  .more-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Redes ---------- */
.networks {
  background: var(--surface);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.net-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.net {
  display: grid;
  align-content: start;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-card);
  background: var(--paper);
}
.net-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 800 1.15rem/1.2 var(--font-display);
}
.net-name::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--dot, var(--ink));
  flex: none;
}
.net-how {
  justify-self: end;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 700;
  white-space: nowrap;
}
.net-auto {
  background: var(--iris-soft);
  color: var(--iris-text);
}
.net-hand {
  background: var(--sun-soft);
  color: var(--amber-text);
}
.net-note {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.975rem;
}
.net[data-net="instagram"] { --dot: #d62976; }
.net[data-net="facebook"] { --dot: #1877f2; }
.net[data-net="tiktok"] { --dot: #00a3a3; }
.net[data-net="linkedin"] { --dot: #0a66c2; }
.net[data-net="x"] { --dot: #1d1a33; }
.net[data-net="youtube"] { --dot: #e62117; }
.net[data-net="pinterest"] { --dot: #c8102e; }
.net[data-net="threads"] { --dot: #1d1a33; }
.net[data-net="bluesky"] { --dot: #1185fe; }
.net[data-net="gbp"] { --dot: #1e8e3e; }
@media (min-width: 48rem) {
  .net-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Precios ---------- */
.pricing {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.price-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.seg {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.seg legend {
  padding: 0 0 0.45rem 0.25rem;
  font-size: var(--t-small);
  font-weight: 650;
  color: var(--ink-soft);
}
.seg-pills {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.6rem;
  background: var(--surface);
}
.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.seg label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  font-weight: 650;
  cursor: pointer;
  color: var(--ink-soft);
}
.seg label:hover {
  color: var(--ink);
  background: var(--paper);
}
.seg input:checked + label {
  background: var(--ink);
  color: #fff;
}
.seg input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Los precios se eligen sin JavaScript: el navegador oculta las combinaciones que no tocan.
   En navegadores sin :has() se ven todas, cada una con su etiqueta. */
.pricing:has(#per-ano:checked) [data-p="mes"],
.pricing:has(#per-mes:checked) [data-p="ano"],
.pricing:has(#iva-sin:checked) [data-i="con"],
.pricing:has(#iva-con:checked) [data-i="sin"] {
  display: none;
}

.plans {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
@media (min-width: 72rem) {
  .plans {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .plan {
    padding: 1.4rem 1.1rem;
  }
  .amount {
    font-size: 2.1rem;
  }
  .plan-features {
    font-size: 0.9375rem;
  }
  .plans {
    margin-inline: calc(-1 * clamp(0rem, (100vw - var(--wrap)) / 2, 4.5rem));
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan h3 {
  font-size: 1.4rem;
}
.trial-badge {
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 750;
  white-space: nowrap;
}
.price {
  margin-top: 1rem;
}
.price > span {
  display: block;
}
.amount {
  font: 900 2.3rem/1 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.per {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--t-small);
  color: var(--ink-faint);
}
.price-note {
  margin-top: 0.6rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.plan-features {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.plan-features sup a {
  padding: 0 0.15rem;
  text-decoration: none;
  font-weight: 700;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
  padding-inline: 0.75rem;
  white-space: nowrap;
  font-size: 1rem;
}
.plan-trial {
  background: var(--iris);
  border-color: var(--iris);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.plan-trial .per,
.plan-trial .price-note {
  color: var(--iris-soft);
}
.plan-trial .plan-features {
  border-top-color: rgba(255, 255, 255, 0.25);
}
.plan-trial a:not(.btn) {
  color: #fff;
}
.plan-trial :focus-visible {
  outline-color: #fff;
}
.extra-brands {
  margin-top: 1.5rem;
  font-weight: 600;
}
.price-notes {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
  max-width: 48rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.territory {
  margin-top: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-card);
  background: var(--sun-soft);
  color: var(--ink);
}

/* ---------- Preguntas ---------- */
.faq {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--surface);
}
.faq-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 64rem) {
  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 4rem;
  }
}
.faq-list details {
  border-top: 1px solid var(--line-strong);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: 1.1rem 0;
  font: 750 1.2rem/1.3 var(--font-display);
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--iris-soft) url("../img/plus.svg") center / 0.9rem no-repeat;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list summary:hover {
  color: var(--iris-text);
}
.faq-list details > :not(summary) {
  max-width: 44rem;
  color: var(--ink-soft);
}
.faq-list details > p {
  margin-bottom: 1rem;
}
.faq-list details > ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

/* ---------- Cierre y pie ---------- */
.closing {
  background: var(--iris);
  color: #fff;
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.closing h2 {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.site-footer {
  background: var(--ink);
  color: #fff;
  padding-block: 2.5rem;
}
.site-footer .brandmark {
  color: #fff;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.6rem;
  color: #fff;
}
.site-footer :focus-visible {
  outline-color: var(--sun);
}
.footer-note {
  margin-left: auto;
  color: var(--line-strong);
  font-size: var(--t-small);
}

/* ---------- Idiomas ---------- */
/* Menú de idioma en la cabecera: <details> nativo, funciona sin JavaScript (js/idioma.js solo lo cierra al pulsar fuera). */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.8rem;
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary:hover,
.lang-menu[open] summary {
  background: rgba(255, 255, 255, 0.14);
}
.lang-globe {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.lang-code {
  display: none;
}
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.lang-list a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.lang-list a:hover {
  background: var(--paper);
}
.lang-list a[aria-current] {
  background: var(--iris-soft);
  color: var(--iris-text);
}
.site-header .lang-list :focus-visible {
  outline-color: var(--focus);
}

/* Precios sin IVA (páginas en otros idiomas): una línea junto al selector de pago */
.vat-hint {
  align-self: flex-end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  min-height: 3.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Pie: todos los idiomas */
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  margin-top: 1.25rem;
}
.footer-langs nav {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  flex: 1 1 100%;
}
.site-footer .footer-langs nav a {
  text-decoration: none;
  padding-inline: 0.5rem;
}
.site-footer .footer-langs nav a:hover {
  text-decoration: underline;
}
.site-footer .footer-langs a[aria-current] {
  color: var(--sun);
  font-weight: 700;
}
.footer-legal-note {
  color: var(--line-strong);
  font-size: var(--t-small);
}

/* Sugerencia de idioma (js/idioma.js): abajo, sin tapar el contenido al cargar */
.lang-hint {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 38rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
}
.lang-hint p {
  flex: 1 1 14rem;
  font-weight: 600;
}
.lang-hint .btn-iris {
  background: var(--sun);
  color: var(--ink);
}
.lang-hint .btn-iris:hover {
  background: #ffd36e;
}
.lang-hint-close {
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lang-hint-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.lang-hint :focus-visible {
  outline-color: var(--sun);
}

/* ---------- Móvil ---------- */
@media (max-width: 52rem) {
  .main-nav {
    display: none;
  }
  .lang-menu {
    margin-left: auto;
  }
  .header-actions {
    margin-left: 0;
  }
}
@media (max-width: 40rem) {
  /* En el móvil, el menú de idioma es solo el globo (el nombre del idioma sigue ahí para lectores de pantalla).
     Si en algún idioma los botones no caben, bajan a una segunda fila en vez de salirse de la pantalla. */
  .header-row {
    flex-wrap: wrap;
    gap: 0.5rem 0.15rem;
    padding-block: 0.6rem;
    min-height: 4.75rem;
  }
  .lang-menu summary {
    padding: 0 0.45rem;
  }
  .site-header .brandmark {
    font-size: 1.15rem;
    gap: 0.4rem;
  }
  .site-header .brandmark-pulse {
    width: 1.9rem;
    height: 1.9rem;
  }
  .site-header .link-quiet {
    padding: 0 0.45rem;
  }
  .lang-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header-actions {
    margin-left: auto;
  }
  .lang-menu + .header-actions {
    margin-left: 0;
  }
  .site-header .btn-small {
    padding-inline: 0.8rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 40rem) {
  .hero-shot {
    max-width: 20rem;
    margin-inline: auto;
  }
  .hero-shot img {
    aspect-ratio: 520 / 760;
    object-fit: cover;
    object-position: top;
    border-radius: 1.75rem;
    border: 0.45rem solid var(--ink);
  }
  .shot-pair .shot-phone {
    width: 40%;
    right: -0.25rem;
  }
  /* En el móvil, las capturas de escritorio se recortan a lo importante para que se lean mejor */
  .crop-center img,
  .crop-left img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .crop-center img {
    aspect-ratio: 4 / 3;
    object-position: 50% 0;
  }
  .crop-left img {
    object-position: 30% 0;
  }
  .hero {
    --pulse-h: 7rem;
  }
  .hero-pulse {
    margin-top: 0;
  }
  .seg label {
    flex: 1 1 0;
    padding: 0.35rem 0.75rem;
  }
  .net {
    grid-template-columns: 1fr;
  }
  .net-how {
    justify-self: start;
  }
  .footer-note {
    margin-left: 0;
  }
  .brandmark {
    font-size: 1.25rem;
  }
  .link-quiet {
    padding: 0 0.6rem;
  }
}
@media (max-width: 26rem) {
  .header-row {
    gap: 0.5rem 0.15rem;
  }
  .site-header .brandmark {
    font-size: 1.15rem;
    gap: 0.45rem;
  }
  .site-header .btn-small {
    padding-inline: 0.7rem;
    font-size: 0.9rem;
  }
  .link-quiet {
    padding: 0 0.5rem;
  }
  /* Con el menú de idioma, «Entrar» y el botón se aprietan un poco para caber en una fila en todos los idiomas */
  .site-header .link-quiet {
    padding: 0 0.4rem;
    font-size: 0.9375rem;
  }
  .site-header .header-actions {
    gap: 0.2rem;
  }
  .lang-menu summary {
    padding: 0 0.3rem;
  }
  .site-header .brandmark {
    gap: 0.35rem;
  }
}
@media (max-width: 23rem) {
  .site-header .brandmark-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 22rem) {
  .header-row {
    gap: 0.5rem;
  }
  .brandmark-pulse {
    width: 1.8rem;
    height: 1.8rem;
  }
  .btn-small {
    padding: 0.4rem 0.8rem;
  }
}

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

@media print {
  .site-header,
  .hero-pulse,
  .closing,
  .lang-hint,
  .footer-langs {
    display: none;
  }
}

/* ---------- 404: el pulso plano ---------- */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.notfound {
  flex: 1;
  padding-block: clamp(3rem, 10vw, 7rem);
}
.notfound h1 {
  font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
.notfound p {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: var(--t-lead);
  color: var(--ink-soft);
}
.notfound-pulse {
  display: block;
  width: min(100%, 24rem);
  height: auto;
  margin-bottom: 1.5rem;
}
.notfound-pulse path {
  fill: none;
  stroke: var(--iris);
  stroke-width: 10;
  stroke-linecap: round;
}
