/* Capa compartida para ayuda, confirmación, legales y 404. */
.content-page {
  min-width: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
}

.content-page main {
  flex: 1 0 auto;
}

#cookies {
  scroll-margin-top: 7rem;
}

.content-page .content-main {
  padding-top: 95px;
}

.content-page .content-container {
  width: min(100% - 144px, 1340px);
  margin-inline: auto;
}

.content-page .content-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

/* Mismo criterio que `.site-breadcrumb`: altura de toque sin engordar la fila. */
.content-page .content-breadcrumb a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-block: -4px;
}

.content-page .content-breadcrumb span[aria-hidden] {
  opacity: 0.45;
}

.content-page .content-breadcrumb [aria-current="page"] {
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-page .content-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.content-page .content-title {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 500;
  letter-spacing: var(--ls-serif-lg);
  line-height: 0.96;
}

.content-page .content-lead {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(64, 28, 28, 0.68);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
}

.content-page .content-hero {
  padding: 52px 0 62px;
}

.content-page .content-section {
  padding: 64px 0;
}

.content-page .content-section.is-tinted {
  background: var(--papel-tibio);
}

.content-page .content-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.content-page .content-section-head h2 {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: var(--ls-serif-lg);
  line-height: 1;
}

.content-page .content-section-head p {
  max-width: 450px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.content-page .content-button {
  min-height: var(--cta-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  padding: 0 24px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: opacity 160ms var(--ease-standard), background 160ms var(--ease-standard);
}

.content-page .content-button.is-secondary {
  background: transparent;
  color: var(--ink);
}

.content-page .content-button:hover {
  opacity: 0.78;
}

.content-page .content-button:focus-visible,
.content-page .topic-card:focus-visible,
.content-page .help-question summary:focus-visible,
.content-page .help-search:focus-within {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Ayuda. */
.help-hero {
  background: linear-gradient(180deg, #fff 0%, var(--papel-tibio) 100%);
  text-align: center;
}

.help-hero .content-title,
.help-hero .content-lead {
  margin-inline: auto;
}

.help-search {
  width: min(100%, 680px);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px auto 0;
  border: 1px solid rgba(64, 28, 28, 0.2);
  border-radius: var(--r-md);
  background: #fff;
  padding: 0 20px;
  box-shadow: var(--shadow-lift-lg);
}

.help-search svg {
  flex: 0 0 auto;
}

.help-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.2 var(--font-sans);
  outline: 0;
}

.help-search input::placeholder {
  color: var(--text-secondary);
}

.help-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(64, 28, 28, 0.11);
  border-radius: var(--r-md);
  background: #fff;
  padding: 22px;
  transition: border-color 160ms var(--ease-standard);
}

/* Hover sin movimiento (DS: static dignity) — el borde hace el feedback. */
.topic-card:hover {
  border-color: rgba(226, 51, 51, 0.42);
}

.topic-card[hidden],
.help-question[hidden] {
  display: none;
}

.topic-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 51, 51, 0.09);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.topic-card h3 {
  margin: 24px 0 8px;
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1;
}

.topic-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.topic-card strong {
  margin-top: auto;
  padding-top: 20px;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.help-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-question {
  align-self: start;
  border: 1px solid rgba(64, 28, 28, 0.11);
  border-radius: var(--r-md);
  background: #fff;
}

.help-question summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.help-question summary::-webkit-details-marker {
  display: none;
}

.help-question summary::after {
  color: var(--red);
  font-size: 20px;
  font-weight: 400;
  content: "+";
}

.help-question[open] summary::after {
  content: "−";
}

.help-question p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.help-empty {
  margin: 28px 0 0;
  border: 1px dashed rgba(64, 28, 28, 0.2);
  border-radius: var(--r-md);
  padding: 30px;
  color: var(--text-secondary);
  text-align: center;
}

.support-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--red);
  padding: 38px 42px;
  color: #fff;
}

.support-banner::after {
  position: absolute;
  top: -26px;
  right: 210px;
  width: 170px;
  height: 152px;
  background: rgba(64, 28, 28, 0.2);
  content: "";
  -webkit-mask: url("/assets/brand-mark.svg") center / contain no-repeat;
  mask: url("/assets/brand-mark.svg") center / contain no-repeat;
}

.support-banner h2 {
  margin: 0 0 8px;
  font-family: var(--font-text);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1;
}

.support-banner p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.support-banner .content-button {
  position: relative;
  z-index: 1;
  border-color: #fff;
  background: #fff;
  color: var(--red);
}

/* Centro de ayuda compacto: una sola lista, sin buscador ni capas repetidas. */
.help-page .help-simple-hero {
  padding: 36px 0 30px;
}

.help-page .help-simple-hero .content-title {
  max-width: 760px;
}

.help-page .help-simple-hero .content-lead {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1.1;
}

.help-simple-section {
  padding: 30px 0 82px;
}

.help-simple-shell {
  max-width: 860px;
}

.help-simple-shell > h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1;
}

.help-article-list {
  border-top: 1px solid rgba(64, 28, 28, 0.12);
}

.help-page .help-question {
  border: 0;
  border-bottom: 1px solid rgba(64, 28, 28, 0.12);
  border-radius: 0;
  background: transparent;
}

.help-page .help-question summary {
  min-height: 62px;
  padding: 17px 0;
  font-size: 15px;
}

.help-page .help-question summary::after {
  color: var(--ink);
}

.help-page .help-question p {
  max-width: 720px;
  padding: 0 42px 20px 0;
  font-size: 14px;
  line-height: 1.58;
}

.help-contact-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: var(--papel-tibio);
}

.help-contact-inline > div {
  display: grid;
  gap: 5px;
}

.help-contact-inline strong,
.help-contact-inline span,
.help-contact-inline :is(a, button) {
  font-family: var(--brand-sans);
}

.help-contact-inline strong {
  font-size: 15px;
}

.help-contact-inline > div > span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.help-contact-inline :is(a, button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.help-contact-inline :is(a, button) span {
  font-size: 17px;
}

/* Beacon de soporte: misma lógica que Help Scout, presentado con el DS Unicos. */
.help-beacon-trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: calc(var(--z-modal) + 3);
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(226, 51, 51, 0.24);
  cursor: pointer;
  transition:
    background 160ms var(--ease-standard),
    opacity 160ms var(--ease-standard),
    transform 160ms var(--ease-standard),
    visibility 0s linear;
}

@media (hover: hover) {
  .help-beacon-trigger:hover {
    background: var(--red-dark);
  }
}

.help-beacon-trigger:focus-visible,
.help-beacon-close:focus-visible,
.help-beacon-form button:focus-visible,
.help-beacon-success button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.help-beacon-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  border: 0;
  background: rgba(64, 28, 28, 0.2);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity 180ms var(--ease-standard);
}

.help-beacon-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: calc(var(--z-modal) + 2);
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100dvh - 106px);
  overflow-y: auto;
  border: 1px solid rgba(64, 28, 28, 0.1);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 24px 70px rgba(64, 28, 28, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.985);
  transform-origin: bottom right;
  transition:
    opacity 180ms var(--ease-standard),
    transform 180ms var(--ease-standard);
}

.help-beacon.is-open .help-beacon-scrim,
.help-beacon.is-open .help-beacon-panel {
  opacity: 1;
  pointer-events: auto;
}

.help-beacon.is-open .help-beacon-panel {
  transform: none;
}

.help-beacon-head {
  position: relative;
  padding: 24px 24px 22px;
  border-bottom: 1px solid rgba(64, 28, 28, 0.08);
  background: var(--papel-crema);
  color: var(--ink);
}

.help-beacon-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.help-beacon-head h2 {
  max-width: 290px;
  margin: 0;
  font-family: var(--font-text);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1;
}

.help-beacon-head p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.help-beacon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.help-beacon-close::before,
.help-beacon-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: var(--r-pill);
  background: currentColor;
  content: "";
}

.help-beacon-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.help-beacon-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .help-beacon-close:hover {
    background: transparent;
    color: var(--red);
  }
}

.help-beacon-form {
  display: grid;
  gap: 14px;
  padding: 22px 24px 24px;
}

.help-beacon-form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 12px;
  font-weight: 500;
}

.help-beacon-form input,
.help-beacon-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font: 400 15px/1.35 var(--brand-sans);
  outline: 0;
  resize: vertical;
}

.help-beacon-form textarea {
  min-height: 92px;
}

.help-beacon-form :is(input, textarea):focus {
  border-color: var(--focus-ring);
  box-shadow: inset 0 1px 2px rgba(64, 28, 28, 0.03);
}

.help-beacon-form :is(input, textarea):focus-visible {
  outline: 0;
}

.help-beacon-form > button,
.help-beacon-success button {
  min-height: 48px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--red);
  color: #fff;
  font-family: var(--brand-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.help-beacon-success {
  padding: 42px 26px 28px;
  text-align: center;
}

.help-beacon-success[hidden],
.help-beacon-form[hidden] {
  display: none;
}

.help-beacon-success > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 22px;
}

.help-beacon-success h3 {
  margin: 0;
  font-family: var(--font-text);
  font-size: 30px;
  font-weight: 500;
}

.help-beacon-success p {
  margin: 12px 0 22px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.help-beacon-success button {
  width: 100%;
  padding: 0 18px;
}

body.is-help-beacon-open {
  overflow: hidden;
}

body.is-site-menu-open .help-beacon-trigger {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
}

/* Legales: una única columna editorial, compartida por las tres páginas. */
.legal-main {
  padding-bottom: 90px;
}

.legal-document.content-container {
  width: min(100% - 144px, 960px);
  padding-top: 36px;
}

.legal-document .content-title {
  max-width: none;
  font-size: clamp(50px, 5vw, 68px);
}

.legal-header {
  padding: 2px 0 48px;
}

.legal-header > p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.legal-document section {
  padding: 32px 0;
  border-top: 1px solid rgba(64, 28, 28, 0.1);
  scroll-margin-top: 108px;
}

.legal-document section h2 {
  margin: 0 0 14px;
  font-family: var(--font-text);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1.05;
}

.legal-document section h3 {
  margin: 24px 0 9px;
  font-size: 15px;
}

.legal-document p,
.legal-document li {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.72;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document ul,
.legal-document ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ══ Pedido confirmado ═══════════════════════════════════
   Un resguardo claro sobre blanco: la noticia primero, la fecha como segundo
   dato y la cuenta completa siempre desplegada. */
.confirmation-main {
  padding-bottom: 0;
  background: #fff;
}

.confirmation-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Raíl de estado: la matrícula del pedido, en la tipografía de sistema. */
.confirmation-rail {
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 0 0 40px;
  border-bottom: 1px solid rgba(64, 28, 28, 0.09);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.confirmation-rail b {
  color: var(--ink);
  font-weight: 400;
}

.confirmation-rail-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

.confirmation-rail-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.confirmation-status-mark {
  display: block;
  width: 32px;
  height: 24px;
  margin: 0 auto 14px;
  color: var(--success);
}

.confirmation-status-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-title {
  max-width: none;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(42px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: var(--ls-serif-lg);
  line-height: 1;
}

.confirmation-promise {
  max-width: 36ch;
  margin: 15px auto 0;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1.25;
}

.confirmation-date {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 17px;
  line-height: 1.4;
}

.confirmation-date b {
  color: var(--ink);
  font-weight: 600;
}

.confirmation-lead {
  max-width: 64ch;
  margin: 18px auto 0;
  color: var(--text-strong);
  font-family: var(--brand-sans);
  font-size: 15px;
  line-height: 1.62;
}

.confirmation-lead span {
  display: block;
}

.confirmation-progress {
  max-width: 720px;
  margin: 34px auto 0;
  padding: 20px 0 22px;
  border-top: 1px solid rgba(64, 28, 28, 0.09);
  border-bottom: 1px solid rgba(64, 28, 28, 0.09);
}

.confirmation-progress h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1.1;
}

.confirmation-progress ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.confirmation-progress ol::before,
.confirmation-progress ol::after {
  position: absolute;
  top: 6px;
  left: 16.666%;
  height: 1px;
  content: "";
}

.confirmation-progress ol::before {
  right: 16.666%;
  background: rgba(64, 28, 28, 0.16);
}

.confirmation-progress ol::after {
  width: 33.333%;
  background: linear-gradient(90deg, var(--success), var(--red));
  transform-origin: left;
  animation: confirmationProgressFill 520ms var(--ease-standard) 260ms both;
}

.confirmation-progress li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 22px 8px 0;
  text-align: center;
}

.confirmation-progress li > i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(64, 28, 28, 0.3);
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.confirmation-progress li.is-done > i {
  border-color: var(--success);
  background: var(--success);
}

.confirmation-progress li.is-done > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 5px;
  height: 3px;
  border-bottom: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

.confirmation-progress li.is-current > i {
  border-color: var(--red);
  background: var(--red);
  animation: confirmationCurrentStep 720ms var(--ease-standard) 620ms both;
}

.confirmation-progress strong,
.confirmation-progress span {
  font-family: var(--brand-sans);
}

.confirmation-progress strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.confirmation-progress span {
  max-width: 170px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

/* Espera social: mismo eje que el progreso, con presencia secundaria. */
.confirmation-social {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: var(--papel-tibio);
}

.confirmation-social h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1.1;
}

.confirmation-social p {
  max-width: 62ch;
  margin: 11px 0 0;
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 13px;
  line-height: 1.5;
}

.confirmation-social nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.confirmation-social a {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(64, 28, 28, 0.14);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-family: var(--brand-sans);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 160ms var(--ease-standard), color 160ms var(--ease-standard);
}

.confirmation-social svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .confirmation-social a:hover {
    border-color: rgba(226, 51, 51, 0.42);
    color: var(--red);
  }
}

.confirmation-social a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ── El resguardo, siempre a la vista ────────────────────
   Sin tarjeta ni fondo: filetes finos. Los importes comparten un solo eje
   derecho, como en un albarán bien compuesto. */
.confirmation-detail {
  max-width: 720px;
  margin: 32px auto 0;
  padding-top: 0;
}

.confirmation-detail > h2 {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-detail > h2 span {
  color: var(--ink);
  font-weight: 500;
}

.order-lines {
  display: block;
}

.order-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}

.order-line + .order-line {
  border-top: 1px solid rgba(64, 28, 28, 0.08);
}

.order-line img {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  background: var(--papel-crema);
  object-fit: cover;
}

.order-line h3 {
  margin: 0 0 5px;
  font-family: var(--brand-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.order-line p {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 13px;
  line-height: 1.45;
}

.order-line-prices {
  display: grid;
  align-self: start;
  justify-items: end;
  gap: 3px;
  font-family: var(--brand-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-line-prices s {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.order-line-prices strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

/* La cuenta, anclada al eje derecho del documento. */
.order-totals {
  display: grid;
  width: min(380px, 100%);
  margin-left: auto;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(64, 28, 28, 0.11);
}

/* `hidden` gana SIEMPRE al display de la fila: sin esto, un pedido sin
   descuento pintaba «Descuento −0,00 €» fantasma y la cuenta no sumaba. */
.order-totals p[hidden] {
  display: none !important;
}

.order-totals p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 15px;
}

.order-totals p > strong {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* El descuento en verde: es lo que NO pagas, igual que en el checkout. El
   chip del código va en tinta sobre verde suave (el verde puro no da AA). */
.order-totals-discount > strong {
  color: var(--success);
  font-weight: 600;
}

.order-totals-savings > strong {
  color: var(--red);
  font-weight: 600;
}

.order-totals-discount em {
  margin-left: 4px;
  padding: 3px 7px;
  border-radius: var(--r-xs);
  background: var(--success-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-totals-discount em:empty {
  display: none;
}

/* El total, la única cifra en serif de la página: el ojo aterriza solo. */
.order-totals .order-total {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(64, 28, 28, 0.11);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.order-totals .order-total > strong {
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1;
}

.order-totals .order-tax {
  justify-content: flex-end;
  margin-top: -6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.confirmation-email {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(64, 28, 28, 0.09);
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.confirmation-email strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── La cola ─────────────────────────────────────────────
   La cita en serif, el chiste debajo y las dos salidas. */
.confirmation-tail {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 0 0;
  border-top: 1px solid rgba(64, 28, 28, 0.11);
  margin-top: 34px;
}

.confirmation-tail p.confirmation-quote {
  max-width: 30ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: var(--ls-serif-md);
  line-height: 1.25;
}

.confirmation-tail p.confirmation-note {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-family: var(--brand-sans);
  font-size: 14px;
  line-height: 1.5;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.confirmation-actions .content-button {
  flex: 0 0 auto;
}

.confirmation-actions .content-button:not(.is-secondary) {
  border-color: var(--red);
  background: var(--red);
}

.confirmation-actions .content-button:not(.is-secondary):hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  opacity: 1;
}

/* Cierre: el filete a todo el ancho, interrumpido en el centro por la u. */
.confirmation-close {
  position: relative;
  max-width: 720px;
  margin: 44px auto 0;
  padding-bottom: 48px;
  border-top: 1px solid rgba(64, 28, 28, 0.11);
}

.confirmation-close span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 21px;
  transform: translate(-50%, -50%);
  background: rgba(226, 51, 51, 0.32);
  box-shadow: 0 0 0 14px #fff;
  -webkit-mask: url("/assets/brand-mark.svg") center / contain no-repeat;
  mask: url("/assets/brand-mark.svg") center / contain no-repeat;
}

/* La caja del recorte del cierre: la sombra blanca abre el hueco en el filete. */
.confirmation-close span::before {
  position: absolute;
  inset: -8px -14px;
  background: #fff;
  content: "";
  z-index: -1;
}

@keyframes confirmationProgressFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes confirmationCurrentStep {
  0% { box-shadow: 0 0 0 0 rgba(226, 51, 51, 0); }
  55% { box-shadow: 0 0 0 7px rgba(226, 51, 51, 0.12); }
  100% { box-shadow: 0 0 0 3px rgba(226, 51, 51, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .confirmation-progress ol::after,
  .confirmation-progress li.is-current > i {
    animation: none;
  }
}

/* 404. */
.not-found-main {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 150px 20px 90px;
  text-align: center;
}

.not-found-code {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: rgba(226, 51, 51, 0.07);
  font-family: var(--display);
  font-size: clamp(190px, 31vw, 460px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.7;
  transform: translate(-50%, -50%);
  user-select: none;
}

.not-found-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.not-found-copy .content-title {
  margin-inline: auto;
}

.not-found-copy .content-lead {
  margin-inline: auto;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 36px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* Fila de navegación, no enlaces dentro de una frase: no les vale la excepción
   de la WCAG y medían 13px de alto. El hueco de la fila absorbe el crecimiento. */
.not-found-links a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .content-page .content-container {
    width: min(100% - 56px, 960px);
  }

}

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

}

@media (max-width: 760px) {
  .content-page .content-main {
    padding-top: 76px;
  }

  .content-page .content-container {
    width: calc(100% - 36px);
  }

  .content-page .content-hero {
    padding: 34px 0 44px;
  }

  .content-page .content-breadcrumb {
    margin-bottom: 24px;
    font-size: 11px;
  }

  .content-page .content-title {
    font-size: clamp(39px, 12.5vw, 50px);
    line-height: 0.98;
  }

  .content-page .content-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.5;
  }

  .content-page .content-section {
    padding: 46px 0;
  }

  .content-page .content-section-head {
    display: block;
    margin-bottom: 24px;
  }

  .content-page .content-section-head p {
    margin-top: 12px;
  }

  .content-page .nav-actions {
    gap: 4px;
  }

  .topic-grid,
  .help-faq-list {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 166px;
    padding: 20px;
  }

  .topic-card h3 {
    margin-top: 18px;
  }

  .help-search {
    min-height: 54px;
    margin-top: 26px;
    border-radius: var(--r-md);
    padding-inline: 16px;
  }

  .support-banner {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .support-banner::after {
    right: -35px;
  }

  .support-banner .content-button {
    justify-self: start;
  }

  .help-page .help-simple-hero {
    padding: 30px 0 18px;
  }

  .help-page .help-simple-hero .content-lead {
    margin-top: 13px;
    font-size: 23px;
  }

  .help-simple-section {
    padding: 20px 0 54px;
  }

  .help-simple-shell > h2 {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .help-page .help-question summary {
    min-height: 58px;
    padding: 15px 0;
    font-size: 14px;
  }

  .help-page .help-question p {
    padding-right: 20px;
    font-size: 13px;
  }

  .help-contact-inline {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
    padding: 22px 20px;
  }

  .help-contact-inline :is(a, button) {
    justify-self: start;
  }

  .help-beacon-trigger {
    right: 14px;
    bottom: 14px;
  }

  .help-beacon-panel {
    right: 12px;
    bottom: 82px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 94px);
  }

  .help-beacon-head {
    padding: 22px 20px 20px;
  }

  .help-beacon-head h2 {
    max-width: 250px;
    font-size: 29px;
  }

  .help-beacon-form {
    padding: 20px;
  }

  .legal-main {
    padding-bottom: 58px;
  }

  .legal-document.content-container {
    padding-top: 34px;
  }

  .legal-document .content-title {
    font-size: clamp(42px, 12.5vw, 52px);
  }

  .legal-header {
    padding-bottom: 36px;
  }

  .legal-header > p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
  }

  .legal-document section {
    padding: 25px 0;
  }

  .legal-document p,
  .legal-document li {
    font-size: 14px;
    line-height: 1.68;
  }

  /* Confirmación en móvil: misma composición, solo cambian cuerpos y aire. */
  .confirmation-rail {
    flex-wrap: nowrap;
    margin-bottom: 30px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .confirmation-title {
    font-size: clamp(34px, 9.7vw, 40px);
    line-height: 1;
  }

  .confirmation-promise {
    max-width: 30ch;
    margin-top: 13px;
    font-size: 19px;
    line-height: 1.25;
  }

  .confirmation-date {
    margin-top: 18px;
    font-size: 15px;
  }

  .confirmation-lead {
    margin-top: 19px;
    font-size: 14px;
    line-height: 1.58;
  }

  .confirmation-progress {
    margin-top: 24px;
    padding: 18px 0 20px;
  }

  .confirmation-progress h2 {
    margin-bottom: 16px;
    font-size: 23px;
  }

  .confirmation-progress li {
    padding-right: 4px;
    padding-left: 4px;
  }

  .confirmation-progress strong {
    font-size: 12px;
  }

  .confirmation-progress span {
    max-width: 108px;
    font-size: 10.5px;
  }

  .confirmation-social {
    margin-top: 16px;
    padding: 22px 18px;
  }

  .confirmation-social h2 {
    font-size: 23px;
  }

  .confirmation-social p {
    font-size: 12.5px;
  }

  .confirmation-social nav {
    gap: 7px;
    margin-top: 16px;
  }

  .confirmation-social a {
    gap: 6px;
    padding: 0 7px;
    font-size: 11px;
  }

  .confirmation-social svg {
    width: 15px;
    height: 15px;
  }

  .confirmation-detail {
    margin-top: 24px;
    padding-top: 0;
  }

  .order-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 0;
  }

  .order-line img {
    width: 64px;
    height: 64px;
  }

  .order-totals {
    width: 100%;
  }

  .order-totals p {
    font-size: 14px;
  }

  .order-totals .order-total > strong {
    font-size: 28px;
  }

  .confirmation-tail p.confirmation-quote {
    max-width: none;
    font-size: 21px;
  }

  .confirmation-note {
    margin-top: 18px;
  }

  .confirmation-actions {
    width: 100%;
  }

  .confirmation-actions .content-button {
    flex: 1 1 100%;
  }

  .confirmation-close {
    padding-bottom: 40px;
  }

  .not-found-main {
    min-height: 610px;
    padding: 120px 18px 70px;
  }

  .not-found-code {
    font-size: clamp(170px, 64vw, 250px);
  }

  .not-found-actions .content-button {
    width: 100%;
  }

}

@media (max-width: 360px) {
  .content-page .content-container {
    width: calc(100% - 36px);
  }

  .content-page .content-breadcrumb {
    gap: 6px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .topic-card,
  .content-page .content-button {
    transition: none;
  }
}
