@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/font-2.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/font-4.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/font-5.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/font-1.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --purple: #2e225f;
  --ink: #282137;
  --muted: #60566e;
  --lavender: #f0eaf6;
  --pale: #faf8fc;
  --line: #d5cbe1;
  --control: #8d7da6;
  --error: #852940;
  --gutter: clamp(1.15rem, 5vw, 3rem);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
h1, h2, h3, .entry-date { color: var(--purple); }
h2, h3 { line-height: 1.25; }
h2:not(.question), dialog h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 600; }
h2 { font-size: clamp(1.45rem, 3.5vw, 1.95rem); }
h3 { font-size: 1.15rem; }
a { color: var(--purple); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #6953a3; outline-offset: 4px; }
#page-title[tabindex="-1"]:focus { outline: none; }
:where(h1, h2, #error, main)[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .7rem 1rem; background: white; transform: translateY(-170%); }
.skip:focus { transform: none; }
.column { width: min(calc(100% - 2 * var(--gutter)), 46rem); margin-inline: auto; }
.masthead { background: white; border-bottom: 1px solid #eee9f3; }
.masthead-inner { width: min(calc(100% - 2 * var(--gutter)), 68rem); margin-inline: auto; min-height: 5.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* El original tiene un lienzo amplio. Esta ventana reproduce el recorte del sitio. */
.brand { width: clamp(8.6rem, 17vw, 11.5rem); aspect-ratio: 184 / 77; overflow: hidden; position: relative; flex: none; }
.brand img { position: absolute; width: 378.8%; max-width: none; height: auto; left: -39.67%; top: -61.04%; }
.hero { padding-block: clamp(1.65rem, 4vw, 3rem); background: linear-gradient(108deg, #f3eef7, #eee7f4 68%, #f4eff7); }
.eyebrow { margin-bottom: .5rem; color: #615276; font-size: .81rem; letter-spacing: .075em; font-weight: 700; text-transform: uppercase; }
h1 { font: 600 clamp(2.8rem, 6.2vw, 4.45rem)/.99 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: -.022em; text-wrap: balance; }
.content { padding-block: clamp(1.45rem, 4vw, 2.6rem) 4rem; }
.stack { display: grid; gap: 1.35rem; }
.stack > *, .entry-list > *, .summary-row > * { min-width: 0; }
.card { border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1.1rem, 3.6vw, 1.8rem); }
.login { max-width: 35rem; margin-inline: auto; }
.note { color: var(--purple); background: var(--lavender); border-radius: .55rem; padding: 1rem 1.25rem; }
.muted, .help { color: var(--muted); }
.help, .meta { font-size: .95rem; }
.meta { color: var(--muted); margin-top: .2rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 3rem;
  border: 1px solid transparent; border-radius: .38rem; padding: .65rem 1.35rem;
  font-weight: 700; line-height: 1.35; text-align: center; cursor: pointer;
}
.primary { background: var(--purple); color: white; }
.primary:hover { background: #422e72; }
.secondary { color: var(--purple); background: white; border-color: var(--control); }
.secondary:hover, .link:hover { background: var(--pale); }
.compact { min-height: 2.75rem; padding: .45rem 1rem; }
.link { background: transparent; color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; min-height: 2.75rem; padding: .45rem .15rem; }
.button:disabled { cursor: wait; opacity: .68; }
.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.center { justify-content: center; text-align: center; }
.field-label { display: block; font-weight: 700; margin-bottom: .5rem; }
.question { font-size: clamp(1.35rem, 2.7vw, 1.8rem); line-height: 1.3; margin-bottom: 1rem; color: var(--ink); }
.question label { cursor: text; }
input, textarea { width: 100%; border: 1px solid var(--control); border-radius: .44rem; background: white; color: var(--ink); padding: .82rem 1rem; }
input { min-height: 3rem; }
textarea { display: block; resize: vertical; min-height: 9rem; line-height: 1.55; }
.long-answer { min-height: clamp(11.5rem, 24vh, 15rem); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .95rem; font-weight: 600; margin-top: .4rem; }
.field-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .7rem; margin-top: .42rem; color: var(--muted); font-size: .85rem; }
.site-return { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .7rem 0 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.site-return a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.field-error:empty, #status:empty, #error:empty, #recovery:empty { margin: 0; padding: 0; border: 0; }
#status:not(:empty), #error:not(:empty), #recovery:not(:empty) { margin-bottom: 1rem; }
#status { color: var(--muted); font-size: .95rem; }
#error:not(:empty), .urgent { padding: .9rem 1.15rem; border-left: .26rem solid var(--error); background: #faf0f3; color: #682335; }
.immediate-help { margin-bottom: 1rem; }
.immediate-help summary { cursor: pointer; width: fit-content; padding-block: .55rem; color: var(--purple); font-size: .95rem; font-weight: 600; }
.urgent p + p { margin-top: .45rem; }
.urgent a { font-weight: 700; color: inherit; }
.feedback { scroll-margin-top: 1rem; }
.progress-text { margin-bottom: .55rem; }
progress { display: block; appearance: none; border: 0; width: 100%; height: .55rem; overflow: hidden; border-radius: 2rem; color: var(--purple); background: #e7dff0; }
progress::-webkit-progress-bar { background: #e7dff0; border-radius: 2rem; }
progress::-webkit-progress-value { background: var(--purple); border-radius: 2rem; }
progress::-moz-progress-bar { background: var(--purple); border-radius: 2rem; }
.step-form { margin-top: 1.8rem; }
.step-form .actions { margin-top: .3rem; }
.step-form .button:not(.link) { min-width: 7rem; }
.summary-row { display: grid; grid-template-columns: minmax(7rem, 27%) 1fr; gap: .65rem 1rem; padding: .78rem 0; border-bottom: 1px solid var(--line); align-items: start; }
dt, .answer-label { font-weight: 700; color: var(--purple); }
.patient-text, .turn-question { white-space: pre-wrap; overflow-wrap: anywhere; }
.choice { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.turn-number { display: inline-block; width: fit-content; font-size: .88rem; font-weight: 700; color: var(--purple); background: var(--lavender); border-radius: .32rem; padding: .23rem .65rem; }
.turn { display: grid; gap: .85rem; }
.turn h3 { color: var(--ink); }
.answer { border: 1px solid var(--line); border-radius: .45rem; background: var(--pale); padding: .8rem 1rem; }
.answer-label { margin-bottom: .2rem; }
.entry-list { list-style: none; padding: 0; }
.entry-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.entry-date { font-weight: 700; }
.list-heading { font-size: 1.3rem; margin-bottom: .35rem; }
.list-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.1rem; }
dialog { width: min(28rem, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: white; }
dialog::backdrop { background: rgb(31 23 55 / .4); }
dialog p { margin: 1rem 0 1.3rem; }
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .masthead-inner { min-height: 4.65rem; }
  .summary-row { grid-template-columns: minmax(6rem, 30%) 1fr; gap: .6rem; }
  .content { padding-bottom: 2.5rem; }
}
@media (max-width: 23rem) {
  .summary-row { grid-template-columns: 1fr; gap: .15rem; }
  .entry-row { align-items: flex-start; flex-wrap: wrap; }
}
@media (forced-colors: active) {
  progress { appearance: auto; }
  .primary, .link { border-color: ButtonText; }
}
