/* Clarel App design system — ported from the design team's Codex prototype
 * ("Clarel APP Codex", css/app.css), which replaced Figma as the design
 * source in 2026-10. Only the tokens and components the auth flows need are
 * here; class names are kept identical to the prototype's so its markup can
 * be ported screen by screen without translation.
 *
 * Brand rules from the prototype's AGENTS.md that this file encodes:
 * white page background; mandarin (#FF9D6E) primary actions with burgundy
 * (#782828) text, never white text on mandarin; all text burgundy, never
 * black; small links burgundy with a mandarin underline; 44px minimum touch
 * targets; Poppins only. */

:root {
  --salmon: #ff9d6e; /* Pantone 714 C */
  --salmon-100: #fcd5b6; /* Pantone 9201 C */
  --salmon-200: #fcd5b6;
  --salmon-50: #fcf3eb; /* Pantone 9224 C */
  --cream: #fcf3eb;
  --cream-2: #f5f5f5;
  --cream-3: #e5e5e5;
  --white: #ffffff;
  --burgundy: #782828; /* Pantone 188 C */

  --ink: var(--burgundy);

  --success: #2f7a4f;
  --success-bg: #e3f1e7;
  --danger: #c2282e;
  --danger-bg: #fbe4e3;
  --info-bg: var(--cream);

  --bg: var(--white);
  --line: #eae7e5;
  --line-strong: #d5ceca;
  --action-bg: var(--salmon);
  --action-ink: var(--burgundy);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-1:
    0 1px 2px rgba(120, 40, 40, 0.06), 0 2px 8px rgba(120, 40, 40, 0.05);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;

  /* Content column: the prototype is mobile-only; on wider screens the
   * same single column is centered rather than stretched. */
  --content-max: 30rem;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
  border-radius: 8px;
}
/* Components set display (flex/grid); without this, the hidden attribute
 * would no longer hide them. */
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Page shell ────────────────────────────────────────────────────────── */

.clarel-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mandarin strip: the prototype's root header (.hdr-root) minus its search
 * pill and profile avatar, which belong to the native app's own chrome, not
 * to these browser-hosted auth pages. Straight bottom edge, no radius. */
.clarel-topbar {
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
  background: var(--salmon);
  display: flex;
  align-items: center;
}
.clarel-topbar__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* The brand symbol is the original artwork used as a mask (never redrawn),
 * as in the prototype's C.gota(). The source PNG is 67×67 with the symbol
 * occupying x 12–55, y 1–66; the mask offsets/size below crop exactly that
 * region into a 22×33 box (scale 33/65), the size the brand owner approved
 * for the header, inside a 44×44 touch area. */
.gota-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
}
.gota {
  display: block;
  width: 22px;
  height: 33px;
  background: currentColor;
  -webkit-mask: url("brand/clarel-gota-white.png") -6.09px -0.51px / 34.02px
    34.02px no-repeat;
  mask: url("brand/clarel-gota-white.png") -6.09px -0.51px / 34.02px 34.02px
    no-repeat;
}

/* Interior title row: optional back arrow, then the title aligned left with
 * the content column (prototype's "Títulos de pantalla" rule). */
.hdr {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 2px 20px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 54px;
}
.hdr .nav-back {
  flex: none;
  /* Lines the chevron up with the content's left edge. */
  margin-left: -12px;
}
.hdr__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.nav-back {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 12px;
}
.nav-back svg {
  width: 22px;
  height: 22px;
}
.nav-back:hover,
.nav-back:active {
  background: var(--salmon-50);
}

.clarel-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Root element of each view inside .clarel-main (e.g. <div id="login">):
 * carries the column's vertical rhythm down to the view's own children. */
.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Page heading inside the content (e.g. "Hola de nuevo"), distinct from the
 * smaller title in the .hdr row. */
.page-intro h1 {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}
/* Prototype's account-login-intro: an icon badge beside the heading. */
.page-intro__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-intro__icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--salmon-100);
  color: var(--ink);
}
.page-intro__icon svg {
  width: 24px;
  height: 24px;
}
.page-intro p {
  margin: 6px 0 0;
  line-height: 1.55;
}

/* Fixed bottom action bar. In the prototype it's absolutely positioned in a
 * phone frame; here it sticks to the viewport bottom within the column. */
.cta-bar {
  position: sticky;
  bottom: 0;
  margin: auto -20px -32px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(120, 40, 40, 0.06);
}

/* ── Buttons & links ───────────────────────────────────────────────────── */

.btn {
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: none;
  cursor: pointer;
  position: relative;
  overflow-wrap: anywhere;
  transition:
    transform var(--t-fast) var(--ease),
    background var(--t-fast),
    box-shadow var(--t-fast);
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: var(--action-bg);
  color: var(--action-ink);
  box-shadow: 0 3px 8px rgba(120, 40, 40, 0.1);
}
.btn--primary:hover {
  box-shadow:
    inset 0 0 0 2px var(--action-ink),
    0 3px 8px rgba(120, 40, 40, 0.1);
}
.btn--secondary {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--burgundy);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  box-shadow: inset 0 0 0 3px var(--ink);
}
.btn--ghost {
  min-height: 44px;
  padding: 0 12px;
}
.btn--danger {
  background: var(--danger);
  color: var(--white);
}
.btn[disabled],
.btn.is-disabled {
  background: var(--cream-3);
  box-shadow: none;
  pointer-events: none;
}
.btn.is-loading {
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(120, 40, 40, 0.25);
  border-top-color: var(--action-ink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--salmon);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.link:hover {
  text-decoration-color: var(--burgundy);
}
/* A standalone link inside a form ("¿Has olvidado tu contraseña?"):
 * full 44px touch target, not stretched by the column. */
.form-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: none;
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(120, 40, 40, 0.06);
}
.icon-btn svg {
  width: 24px;
  height: 24px;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* kratos_form.hbs: buttons stacked; with ctaBar the form fills the column
 * so the sticky .cta-bar sits at the bottom of the viewport. */
.form__actions {
  display: grid;
  gap: 12px;
}
.form--cta {
  flex: 1;
}
/* Kratos text nodes (e.g. secrets/codes shown to the user). */
.kratos-text {
  display: block;
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label,
.field .label {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
}
.field label small {
  font-size: var(--fs-sm);
  font-weight: 400;
}
.input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  font: inherit;
  font-size: var(--fs-md);
  color: var(--ink);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}
.input::placeholder {
  color: var(--ink);
  opacity: 1;
}
.input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(120, 40, 40, 0.1);
}
.input.is-error,
.input[aria-invalid="true"] {
  border-color: var(--danger);
}
.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-right: 52px;
}
.input-wrap .icon-btn {
  position: absolute;
  right: 4px;
  top: 4px;
}
select.input {
  appearance: none;
  padding-right: 44px;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23782828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 18px no-repeat;
  cursor: pointer;
}
/* A native <select> laid transparently over a box showing only the
 * selected value (registration's phone prefix): the full option text stays
 * in the OS picker, the narrow column shows "+34". */
.prefix-select {
  position: relative;
}
.prefix-select .input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.prefix-select span.input svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.prefix-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: var(--fs-md);
  cursor: pointer;
}
.prefix-select:focus-within > .input {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(120, 40, 40, 0.1);
}
.prefix-select.is-enhanced > span.input {
  display: none;
}

/* Prototype's registration-picker, built by clarel-forms.js over each
 * <select>: the OS dropdown paints the selected option in its own system
 * color, the design wants salmon. */
.registration-picker {
  position: relative;
}
.registration-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-right: 10px;
  text-align: left;
  cursor: pointer;
}
.registration-picker__trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.registration-picker__trigger svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 50%;
  flex: none;
}
.registration-picker__trigger:is(:hover, :focus-visible, [aria-expanded="true"])
  svg {
  background: var(--salmon-100);
}
.registration-picker__trigger[aria-expanded="true"] {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(120, 40, 40, 0.1);
}
.registration-picker__search {
  margin-top: 8px;
  padding: 8px 8px 0;
  border: 0.5px solid var(--salmon-100);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--white);
}
.registration-picker__search .input {
  min-height: 44px;
}
.registration-picker__search .input::-webkit-search-cancel-button {
  appearance: none;
}
.registration-picker__options {
  margin-top: 8px;
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0.5px solid var(--salmon-100);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.registration-picker__search + .registration-picker__options {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.registration-picker__options[hidden],
.registration-picker__search[hidden],
.registration-picker__options button[hidden] {
  display: none;
}
.registration-picker__options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: var(--fs-md);
  line-height: 1.5;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.registration-picker__options button svg {
  width: 16px;
  height: 16px;
  flex: none;
  visibility: hidden;
}
.registration-picker__options button[aria-selected="true"] svg {
  visibility: visible;
}
.registration-picker__options
  button:is(:hover, :focus-visible, [aria-selected="true"]) {
  background: var(--salmon-100);
  outline: none;
}
/* Prototype's date trigger and calendar (purchaseDatePicker), built by
 * clarel-forms.js over each <input type="date">. */
.date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.date-trigger svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--fs-sm);
  border-radius: 12px;
}
.btn--ghost:is(:hover, :focus-visible, :active) {
  background: var(--cream);
}
.clarel-calendar {
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(58, 20, 20, 0.22);
}
.clarel-calendar::backdrop {
  background: rgba(42, 16, 14, 0.42);
}
.clarel-calendar :where(button:not(.btn, .icon-btn)) {
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 0 20px;
  background: var(--salmon);
}
.calendar-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.calendar-head .icon-btn:hover {
  background: var(--salmon-100);
}
.calendar-selected {
  padding: 0 20px 18px;
  background: var(--salmon);
  font-size: 1rem;
}
.calendar-content {
  padding: 12px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 8px;
}
.calendar-nav > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.calendar-nav > div button {
  min-height: 44px;
  padding: 4px 6px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}
.calendar-nav button:hover {
  background: var(--cream);
}
.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}
.calendar-week {
  font-size: var(--fs-sm);
  padding-bottom: 8px;
}
.calendar-days button {
  width: 100%;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  font-size: 1rem;
}
.calendar-days button::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: -1;
}
.calendar-days button[aria-current="date"]::before {
  box-shadow: inset 0 0 0 1px var(--salmon);
}
.calendar-days button:hover::before {
  background: var(--cream);
}
.calendar-days button[aria-pressed="true"]::before {
  background: var(--salmon);
}
.calendar-days button:disabled,
.calendar-options button:disabled {
  opacity: 0.35;
  cursor: default;
}
.calendar-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.calendar-options button {
  min-height: 44px;
  border-radius: 22px;
  font-size: var(--fs-sm);
}
.calendar-options button:hover {
  background: var(--cream);
}
.calendar-options button[aria-pressed="true"] {
  background: var(--salmon-100);
}
.calendar-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
  border-top: 0.5px solid var(--line);
}
.calendar-actions .btn {
  min-height: 44px;
  padding-inline: 6px;
}
.calendar-actions .btn:disabled {
  opacity: 0.45;
}
.clarel-calendar button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  border-radius: 18px;
}

/* The prefix column is too narrow for "+34 España": its list spills over
 * the phone input's column. */
.prefix-select .registration-picker__search,
.prefix-select .registration-picker__options {
  position: relative;
  z-index: 2;
  width: min(340px, calc(100vw - 40px));
  box-sizing: border-box;
}
.form-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
  gap: 10px;
}
.help {
  font-size: var(--fs-sm);
  color: var(--ink);
}
/* Help text led by an icon: the read-only fields' lock, the birthday's
 * gift (prototype's datos). */
.help--icon,
.field--readonly .help {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.help--icon > svg,
.field--readonly .help > svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
}
.field--readonly .input {
  background: var(--cream-2);
  color: var(--ink);
}
/* Errors are never conveyed by color alone (WCAG): the prototype keeps the
 * text burgundy and adds an icon; the red is on the input border. */
.err {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  display: flex;
  gap: 6px;
  align-items: center;
}
.err svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--danger);
}

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: var(--fs-sm);
  margin-top: 2px;
}
.rules span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rules span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  flex: none;
}
.rules span.ok::before {
  background: var(--success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center/10px no-repeat;
  box-shadow: none;
}

.check {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-md);
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
}
.check .box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex: none;
  box-shadow: inset 0 0 0 2px var(--line-strong);
  background: var(--white);
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}
.check .box svg {
  width: 15px;
  height: 15px;
  color: var(--ink);
  opacity: 0;
}
.check input:checked + .box {
  background: var(--salmon);
  box-shadow: none;
}
.check input:checked + .box svg {
  opacity: 1;
}
.check:has(input:disabled) {
  cursor: default;
}
.check input:disabled + .box {
  opacity: 0.6;
}
.check input:focus-visible + .box {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
}

.check__desc {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  white-space: pre-line;
}

/* ── Registration ──────────────────────────────────────────────────────── */

.registration-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.purposes {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.purpose {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.legal-details summary::-webkit-details-marker {
  display: none;
}
.legal-details summary span {
  flex: 1;
}
.legal-details summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--t-fast);
}
.legal-details[open] summary svg {
  transform: rotate(180deg);
}
.legal-details .legal {
  margin-top: 6px;
  white-space: pre-line;
}
/* The consent document text on registration and the login re-check,
 * always expanded, as the prototype's "Tratamiento de datos" block. */
.registration-privacy {
  display: grid;
  gap: 8px;
}
.registration-privacy h2 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.55;
}
.registration-privacy__body {
  white-space: pre-line;
}

/* ── Lists, cards & dialogs (account deletion) ─────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.list {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.row {
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: var(--fs-md);
  color: var(--ink);
  text-decoration: none;
}
.row + .row {
  box-shadow: inset 0 1px 0 var(--line);
}
.row__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--salmon-100);
  color: var(--ink);
  flex: none;
}
.row__icon svg {
  width: 20px;
  height: 20px;
}
.row__body {
  flex: 1;
  min-width: 0;
}
.row__body small {
  display: block;
  font-size: var(--fs-sm);
  margin-top: 1px;
}
.row__end {
  display: flex;
  align-items: center;
}
.row__end svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 50%;
  transition: background-color var(--t-fast);
}
a.row:is(:active, :focus-visible) .row__end svg {
  background: var(--salmon-100);
}
@media (hover: hover) {
  a.row:hover .row__end svg {
    background: var(--salmon-100);
  }
}

/* Prototype's C.dialog, as a native modal <dialog>. */
.dialog {
  width: min(360px, calc(100vw - 48px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 26px 22px 20px;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(58, 20, 20, 0.22);
  text-align: center;
}
.dialog::backdrop {
  background: rgba(42, 16, 14, 0.42);
}
.dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
}
.dialog .empty__art {
  width: 72px;
  height: 72px;
  margin: 10px auto 0;
}
.dialog .empty__art svg {
  width: 34px;
  height: 34px;
}
.dialog h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: 18px 0 8px;
}
.dialog p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.55;
}
.dialog .btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* ── Feedback & misc ───────────────────────────────────────────────────── */

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
}
.notice p {
  margin: 0;
}
.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.notice--info {
  background: var(--info-bg);
}
.notice--success {
  background: var(--success-bg);
}
.notice--danger {
  background: var(--danger-bg);
}
.notice--brand {
  background: var(--salmon-100);
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.empty__art {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--salmon-100);
  display: grid;
  place-items: center;
  position: relative;
}
.empty__art svg {
  width: 40px;
  height: 40px;
  color: var(--ink);
}
/* Prototype's recuperar: the badge centered over the intro. */
.recovery-key-art {
  align-self: center;
  margin-top: 16px;
}
.recovery-key-art svg {
  width: 44px;
  height: 44px;
}
/* Prototype's email-verificado: the check at the right of the heading, a
 * plain burgundy stroke like the emails' title icons. */
.verified-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.verified-heading__icon {
  display: inline-flex;
  flex: none;
  color: var(--ink);
}
.verified-heading__icon svg {
  width: 36px;
  height: 36px;
}

.legal {
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* "¿Ya tienes cuenta? Iniciar sesión" style prompts. */
.access-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  margin: 0;
  text-align: center;
}
.access-prompt .link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
