@font-face {
  font-family: Fraunces;
  src: url("/assets/fonts/fraunces-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/assets/fonts/fraunces-italic-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #1a1a1a;
  --muted: #666;
  --primary: #c2255c;
  --primary-hover: #a81d4e;
  --tint: #fdeef3;
  --surface: #f7f7f7;
  --border: #8d8d8d;
  --separator: #e2e2e2;
  --danger: #a41d38;
  --scroll-thumb: #888;
  --scroll-track: #f7f7f7;
  --scroll-hover: #666;
  --scroll-active: #c2255c;
  --focus: #9c1748;
  --radius: 14px;
  /* Movimiento: entradas con ease-out, cambios de estado con ease-in-out. */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 150ms;
  --dur-base: 250ms;
  --dur-enter: 350ms;
  --dur-reveal: 400ms;
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
html {
  scrollbar-gutter: stable;
  scroll-padding-top: 24px;
  scroll-padding-bottom: 24px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--primary);
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:active {
  opacity: 0.8;
}
button {
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  background: #fff;
  padding: 12px;
}
.header {
  height: 57px;
  border-bottom: 1px solid var(--separator);
}
.header-inner {
  max-width: 560px;
  height: 100%;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 750;
  font-size: 21px;
  letter-spacing: -0.7px;
  color: var(--foreground);
  text-decoration: none;
}
.brand svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}
.demo-label {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--separator);
  border-radius: 99px;
  padding: 3px 8px;
}
.page {
  max-width: 520px;
  margin: auto;
  padding: 22px 20px 64px;
}
.step-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  min-height: 24px;
  margin-bottom: 12px;
}
.steps {
  display: flex;
  gap: 4px;
}
.steps > * {
  width: 24px;
  height: 3px;
  border-radius: 4px;
  background: var(--separator);
}
.steps b {
  background: var(--primary);
}
h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 750;
  letter-spacing: -0.6px;
}
h1 {
  font-size: 32px;
  line-height: 1.12;
  margin: 0 0 9px;
}
h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
}
h1:focus {
  outline: none;
}
.intro {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 15px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
label,
legend {
  font-size: 13px;
  font-weight: 650;
  display: block;
  margin-bottom: 8px;
}
.field {
  margin-bottom: 23px;
}
input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 13px 14px;
  min-height: 50px;
  color: var(--foreground);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
textarea {
  display: block;
  min-height: 155px;
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 13px;
  margin: 6px 0 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}
.chip span {
  display: block;
  padding: 10px 15px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  min-height: 44px;
}
.chip input:checked + span {
  background: var(--tint);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 650;
}
.chip:hover span {
  border-color: var(--primary);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.method-field {
  margin-bottom: 16px;
}
.method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.method-tabs button {
  padding: 12px 4px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--background);
  min-height: 83px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
.method-tabs svg,
.upload-target svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.method-tabs button[aria-selected="true"] {
  border: 2px solid var(--primary);
  padding: 11.5px 3.5px;
  color: var(--primary);
  background: var(--tint);
  font-weight: 650;
}
.method-tabs button:hover {
  background: var(--tint);
}
.hints {
  border-radius: 14px;
  padding: 12px 15px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.hints summary {
  padding: 0;
  display: list-item;
  align-content: center;
  font-size: 14px;
}
.hints strong {
  font-size: 13px;
}
.hints ul {
  margin: 3px 0 0;
  padding-left: 18px;
}
.method-panel {
  text-align: center;
  margin: 16px 0 20px;
}
.method-panel textarea {
  text-align: left;
}
#panel-voz {
  margin-bottom: 24px;
}
.voice-guide {
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
  margin: 6px auto 0;
}
.voice-review {
  text-align: left;
  margin-top: 20px;
}
.voice-review label {
  display: block;
  font-weight: 650;
}
.voice-review textarea {
  min-height: 155px;
}
#voice-transcribe {
  margin-top: 12px;
}
.recorder {
  padding: 9px 0 4px;
}
/* 96 px: el micrófono y «Toca para grabar» caben en el primer pantallazo a 390×844 (H18, H23). */
.record-button {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid var(--tint);
  outline: 1px solid #e8b5c7;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.record-button:hover {
  background: var(--primary-hover);
}
.record-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
.record-button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.record-button .stop-square {
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 5px;
}
.record-label {
  font-size: 14px;
  margin: 13px 0 4px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.recorder-time {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin: 8px 0;
}
.wave {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 auto 12px;
}
.recorded audio {
  width: 100%;
  height: 48px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--primary);
  font-size: 14px;
  padding: 10px 0;
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.text-button:hover {
  text-decoration: underline;
}
.counter {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
  text-align: right;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  margin: 22px 0 0;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--primary);
}
.consent span {
  flex: 1;
}
.consent a {
  display: inline-block;
  padding: 3px 0;
}
/* Notas de la casilla, alineadas con su texto (casilla de 20 px + 10 px). */
#consent-error {
  margin-left: 30px;
}
.consent-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0 30px;
}
.demo-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0;
}
/* Una acción por paso: acompaña el scroll sin salir de la columna del formulario. */
html {
  scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}
.page {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-inline: -20px;
  padding: 12px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--background);
  border-top: 1px solid var(--separator);
}
.action-bar > div {
  max-width: 480px;
  margin: auto;
}
.action-bar small {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.page :is(input, textarea, select, button, a):focus-visible {
  scroll-margin-block: 24px 140px;
}
@media (max-width: 699px) {
  /* El teclado y su campo tienen prioridad. No se fija ni se oculta el contenido. */
  .page:has(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]):focus, textarea:focus, select:focus) .action-bar {
    position: static;
  }
}
.primary,
.secondary {
  border: 1.5px solid transparent;
  border-radius: 16px;
  min-height: 54px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}
.primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.primary:disabled {
  background: #ededed;
  color: #707070;
}
.primary[aria-busy="true"] {
  cursor: wait;
}
.secondary {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
}
.secondary:hover {
  background: var(--surface);
  border-color: var(--foreground);
}
.back {
  min-height: 44px;
  padding: 7px 0;
  margin: -7px 0;
}
.notice {
  border: 1px solid var(--separator);
  background: var(--surface);
  border-radius: 12px;
  font-size: 14px;
  padding: 12px 14px;
  margin: 16px 0;
}
.notice.error {
  border-color: var(--danger);
  color: var(--danger);
}
.upload-target {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  width: 100%;
  background: var(--surface);
  padding: 25px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
}
.upload-target:hover {
  border-color: var(--primary);
  background: var(--tint);
}
.upload-target small {
  color: var(--muted);
  font-size: 13px;
}
.photo-card {
  text-align: left;
  margin: 16px 0;
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 12px;
}
.photo-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.photo-top > div {
  flex: 1;
}
.photo-top strong {
  font-size: 14px;
}
.photo-top p {
  margin: 4px 0;
}
.photo-top img {
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}
.icon-button {
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  width: 44px;
  height: 44px;
  flex: none;
  font-size: 24px;
}
.icon-button:hover {
  background: var(--tint);
}
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.suggestion-chips button {
  border: 1px solid var(--border);
  border-radius: 99px;
  min-height: 44px;
  padding: 7px 12px;
  background: var(--surface);
  font-size: 13px;
}
.suggestion-chips button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.question {
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.question label {
  font-size: 14px;
}
.question > summary {
  color: var(--primary);
  font-weight: 600;
}
.question[open] > summary {
  margin-bottom: 12px;
}
.question-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.question-row textarea {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 15px;
}
.question-mic {
  width: 46px;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--primary);
  flex: none;
}
.question-mic:hover {
  background: var(--tint);
}
.question-mic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.question .recorder {
  text-align: center;
}
.question .record-button {
  width: 76px;
  height: 76px;
}
.question .record-button svg {
  width: 26px;
  height: 26px;
}
.question .record-label {
  font-size: 13px;
}
.styles-field {
  margin-top: 24px;
}
.section-hint {
  margin: -2px 0 12px;
}
.styles {
  display: grid;
  gap: 9px;
}
.style-row {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 11px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.style-row:has(input:checked) {
  border-color: var(--primary);
  background: var(--tint);
}
.sample {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--primary);
  font-size: 17px;
}
.sample:hover {
  background: #f2d6e1;
}
.sample[aria-pressed="true"] {
  background: var(--primary);
  color: white;
}
.style-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}
.style-choice > span {
  flex: 1;
  min-width: 0;
}
.style-choice strong {
  display: block;
  font-size: 15px;
}
.style-choice small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin-top: 2px;
}
.style-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex: none;
}
/* «Español e inglés» se lee entero: si no cabe al lado, el selector baja de línea (H48). */
.language-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 24px 0;
}
.language-row > div {
  flex: 1 1 150px;
  min-width: 0;
}
.language-row p {
  margin: 0;
}
.language-row label {
  margin-bottom: 3px;
}
.language-row select {
  flex: none;
  width: auto;
  min-width: 122px;
  max-width: 100%;
  font-size: 15px;
  padding: 10px;
}
.email-field {
  margin-bottom: 16px;
}
.email-field > p {
  margin-top: 6px;
}
.result-state {
  padding-top: 50px;
  text-align: center;
}
.result-state p {
  line-height: 1.6;
}
.result-state h1 {
  font-size: 32px;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--separator);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.eyebrow {
  font-size: 13px;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}
.cover {
  width: min(100%, 290px);
  aspect-ratio: 1;
  background: var(--tint);
  border-radius: 20px;
  overflow: hidden;
  margin: 24px auto;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: Fraunces, serif;
  font-size: 90px;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Portada tipográfica sin foto: solo «Para nombre» sobre el tinte, con la marca.
   La misma en la entrega y en la página de regalo (H72). */
.cover {
  container-type: inline-size;
}
.cover-type {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr auto;
  justify-items: center;
  gap: 3cqi;
  padding: 9cqi 8cqi 7cqi;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
}
.cover-name {
  grid-row: 2;
  font-weight: 750;
  font-size: clamp(17px, 14cqi, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary);
  overflow-wrap: anywhere;
}
.cover-title {
  grid-row: 3;
  font-weight: 500;
  font-size: clamp(11px, 6.4cqi, 19px);
  line-height: 1.25;
  color: var(--foreground);
  overflow-wrap: anywhere;
}
.cover-title:empty {
  display: none;
}
/* En la portada pequeña de 96 px (pantallas de 320) solo caben el nombre y la marca. */
@container (max-width: 104px) {
  .cover-title {
    display: none;
  }
}
.cover-brand {
  grid-row: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 750;
  font-size: clamp(10px, 5.2cqi, 15px);
  color: var(--primary);
}
.cover-brand svg {
  width: 1.3em;
  height: 1.3em;
}
/* Reproductor común: botón de 64 px que controla el <audio>, tiempo y barra (H37). */
.player {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
}
.play-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 14px 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
}
.play-icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.play-button:hover .play-icon {
  background: var(--primary-hover);
}
.play-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.icon-pause,
.playing .icon-play {
  display: none;
}
.playing .icon-pause {
  display: inline;
}
.player-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.player-seek {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  accent-color: var(--primary);
}
.player-time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.player-status {
  margin: 0;
}
.player audio {
  width: 100%;
  grid-column: 1 / -1;
}
/* Portada pequeña y reproductor en una fila: la entrega cabe en una pantalla. */
.listen {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  margin: 20px 0 12px;
  text-align: left;
}
.listen .cover {
  width: 112px;
  margin: 0;
  border-radius: 16px;
}
.listen .player {
  display: contents;
}
.listen .play-button {
  grid-column: 2;
}
.listen .player-track,
.listen .player-status {
  grid-column: 1 / -1;
}
@media (max-width: 359px) {
  .listen {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 12px;
  }
  .listen .cover {
    width: 96px;
  }
  .listen .play-button {
    gap: 10px;
    font-size: 16px;
  }
  .style-row {
    gap: 8px;
    padding-inline: 9px;
  }
  .style-choice {
    gap: 8px;
  }
}
/* Sin propuesta del asesor: estilos habituales de la ocasión y catálogo abierto (§3.5). */
.manual-styles {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 10px;
}
.samples-note {
  margin: 10px 0 0;
}
/* Resumen antes de pagar: todo lo que se compra, editable, con el precio y el pago al final. */
.review-list {
  margin: 4px 0 18px;
  border-top: 1px solid var(--separator);
}
.review-list > div {
  display: grid;
  grid-template-columns: minmax(0, 9em) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--separator);
}
.review-list dt {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.review-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.review-list dd p {
  margin: 0;
}
.review-list dd p + p {
  margin-top: 10px;
}
#review-story-preview:has(+ #review-story-details:not([hidden])) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
#review-story-details summary {
  color: var(--primary);
  font-size: 14px;
}
.review-question {
  color: var(--muted);
}
.review-photo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-photo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}
.review-photo span {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 459px) {
  .review-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.review-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.review-edit > .secondary {
  flex: 1 1 auto;
  font-size: 15px;
}
.review-edit p {
  flex-basis: 100%;
  margin: 0;
}
.review-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.review-pending .secondary {
  flex: 1 1 auto;
  font-size: 14px;
}
#review .order-summary {
  margin: 20px 0 16px;
}
#review .price-row {
  margin: 0 0 6px;
}
#review-error {
  margin: 0 0 12px;
}
#open-checkout {
  flex-wrap: wrap;
  column-gap: 0.3em;
  row-gap: 0;
  font-size: 16px;
}
#review .price {
  white-space: nowrap;
}
#review .includes-line {
  margin: 10px 0 2px;
}
/* Código de descuento (§9.3): el descuento y el total, a la vista antes de pagar. */
#review .discount-row strong {
  color: var(--primary);
}
#review-discount-label span {
  white-space: nowrap;
}
#review .total-row {
  margin: 10px 0 6px;
  padding-top: 10px;
  border-top: 1px solid var(--separator);
  font-weight: 650;
}
.promo {
  margin: 0 0 16px;
}
.promo summary {
  font-size: 15px;
}
.promo form {
  padding: 2px 0 4px;
}
.promo-row {
  display: flex;
  gap: 8px;
}
.promo-row input {
  flex: 1 1 auto;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.promo-row input::placeholder {
  text-transform: none;
}
.promo-row .secondary {
  flex: none;
  min-height: 50px;
  padding: 10px 18px;
  font-size: 15px;
}
#promo-help {
  margin: 8px 0 0;
}
.promo-status {
  margin: 8px 0 0;
  font-weight: 650;
}
.promo-status:empty {
  display: none;
}
#checkout-promo {
  margin: 0 0 12px;
  font-weight: 650;
}
/* Creación tras el pago: tres etapas sin minutos ni porcentajes; la actual gira. */
.stage-list {
  list-style: none;
  max-width: 360px;
  margin: 28px auto 20px;
  padding: 0;
  display: grid;
  gap: 14px;
  text-align: left;
}
.stage-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  font-size: 15px;
  color: var(--muted);
}
.stage-list li::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: none;
  border: 2px solid var(--separator);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}
.stage-list li.hecha {
  color: var(--foreground);
}
.stage-list li.hecha::before {
  content: "✓";
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.stage-list li[aria-current="step"] {
  color: var(--foreground);
  font-weight: 650;
}
.stage-list li[aria-current="step"]::before {
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
#creation-delay {
  text-align: left;
}
/* Problema tras el pago: nunca un botón de pago; reintentar, comprobar y escribirnos. */
.problem-actions {
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin: 20px auto 0;
}
.problem-actions > * {
  width: 100%;
}
#problem-reference {
  color: var(--foreground);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.problem-contact {
  margin: 16px 0 0;
}
dialog {
  padding: 24px;
  max-width: 440px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--separator);
  border-radius: 20px;
  overflow: auto;
  color: var(--foreground);
  background: var(--background);
}
dialog::backdrop {
  background: #2228;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.dialog-actions > * {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  padding: 12px;
}
dialog label:not(:first-child) {
  margin-top: 14px;
}
dialog p {
  font-size: 15px;
}
#failed .text-button {
  margin-top: 16px;
}
@media (min-width: 700px) {
  .page {
    padding-top: 36px;
  }
  .header-inner {
    max-width: 560px;
  }
  h1 {
    font-size: 36px;
  }
}
@media (max-width: 699px) {
  .page {
    padding-top: 16px;
  }
  .page > .notice:first-child {
    margin: 0 0 12px;
    padding: 8px 12px;
    font-size: 13px;
  }
  #step-one .intro {
    margin-bottom: 18px;
  }
  #step-one .field,
  #occasion-field {
    margin-bottom: 16px;
  }
  /* Nueve ocasiones en tres filas a 390 px. */
  .chip span {
    padding: 10px 12px;
  }
  .method-tabs button {
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .method-tabs button[aria-selected="true"] {
    padding-top: 7.5px;
    padding-bottom: 7.5px;
  }
  .method-panel {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .spinner,
  .stage-list li[aria-current="step"]::before {
    animation: none;
    border-style: dotted;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .chip input:checked + span,
  .style-row:has(input:checked),
  .method-tabs button[aria-selected="true"] {
    outline: 2px solid Highlight;
  }
  .primary {
    border: 2px solid ButtonText;
  }
  .record-button {
    border: 4px solid ButtonText;
  }
}

/* Una propuesta principal y tres alternativas; el catálogo completo es opcional. */
.style-primary {
  border-color: var(--control-border, #8d8d8d);
  padding: 15px 11px;
}
.style-primary .style-choice strong {
  font-size: 18px;
}
.style-choice .style-rank-label {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 5px;
}
.style-choice .style-fit {
  color: var(--foreground, #1a1a1a);
  font-weight: 600;
  margin: 5px 0;
}
.style-auto {
  margin-top: 14px;
  width: 100%;
}
.style-auto[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--tint);
}
.advisor-status {
  min-height: 42px;
  line-height: 1.5;
}
/* Espera del asesor: fase, reloj y, desde los 20 s, la opción destacada de seguir. */
.advisor-progress {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--tint);
}
.advisor-progress .advisor-status {
  flex: 1;
  min-height: 0;
  margin: 0;
  color: var(--foreground);
}
.advisor-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: breathe 1.6s var(--ease-in-out) infinite;
}
.advisor-clock {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.advisor-skip {
  margin: 0 0 16px;
  padding: 14px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
}
.advisor-skip p {
  margin: 0 0 10px;
}
.advisor-skip .primary {
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .advisor-dot {
    animation: none;
  }
}
.other-styles {
  margin: 18px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
}
.other-styles > summary {
  font-size: 15px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--primary);
  font-weight: 600;
}
.other-styles[open] > summary {
  margin-bottom: 12px;
}
.other-styles select {
  margin-bottom: 12px;
}
.style-search-wrap {
  position: relative;
  margin-bottom: 14px;
}
.style-search-wrap input {
  padding-right: 52px;
}
.style-search-wrap input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.style-search-clear {
  position: absolute;
  right: 4px;
  top: 3px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
}
.style-search-clear:hover {
  background: var(--surface);
  color: var(--primary);
}
.style-search-clear:active {
  background: var(--tint);
}
#catalog-count {
  margin: 8px 0 12px;
}
.style-no-results {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}
.style-no-results p {
  margin: 0 0 8px;
}
.style-no-results .text-button {
  min-height: 44px;
}
.style-advice {
  border-left: 3px solid var(--primary);
  padding: 2px 0 2px 14px;
  margin: 0 0 18px;
}
.style-recommendation {
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 5px;
}
.style-advice .small {
  margin: 0;
  line-height: 1.5;
}
.selected-style {
  margin-top: 12px;
  border-color: var(--separator);
}
.selected-style strong {
  font-size: 15px;
}
.selected-style p {
  margin: 3px 0 0;
}
#style-sample-note {
  font-size: 13px;
}
.style-alternatives {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.style-alternative {
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: var(--primary);
  text-decoration: underline;
  font-size: 13px;
  min-height: 44px;
}
.style-alternative:hover {
  color: var(--primary-hover);
}

.song-idea {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
  margin: 26px 0;
}
.song-idea p {
  margin: 8px 0;
  line-height: 1.6;
}
.order-summary {
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 22px;
  margin: 24px 0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
}
.price-row strong {
  white-space: nowrap;
}
.included {
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0;
}
details summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 650;
}
details summary:hover {
  color: var(--primary);
}
.lyrics-block {
  text-align: left;
  margin: 24px 0;
}
/* Letra para leer: rótulos sin corchetes y atenuados; el estribillo, en cursiva (H08). */
.lyrics {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.7;
  padding: 18px;
  background: var(--surface);
  border-radius: 14px;
}
.lyrics-section + .lyrics-section {
  margin-top: 16px;
}
.lyrics-label {
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.lyrics-lines {
  margin: 0;
}
.chorus .lyrics-lines {
  font-style: italic;
}
.test-options {
  margin-top: 18px;
  font-size: 13px;
}
.test-options .secondary {
  font-size: 14px;
  margin: 0 8px 8px 0;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}
.download-actions > * {
  flex: 1 1 auto;
  white-space: nowrap;
  font-size: 15px;
}
#dedicatoria {
  min-height: 110px;
}
#gift-form > p {
  margin: 8px 0 14px;
}
#gift-form .notice {
  margin: 0 0 14px;
}
#save-gift {
  width: 100%;
}
/* Tras crear el regalo, enviarlo es la acción principal; copiar, ver y el QR, secundarias (H09, H44). */
.gift-ready {
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid var(--separator);
}
#gift-feedback {
  margin: 0 0 14px;
  font-weight: 650;
}
#gift-feedback:empty {
  display: none;
}
#share-gift {
  width: 100%;
}
#gift-lifetime {
  margin: 8px 0 16px;
}
.gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gift-actions > * {
  flex: 1 1 auto;
  font-size: 15px;
  white-space: nowrap;
}
#copy-status {
  margin: 8px 0 0;
}
#copy-status:empty {
  display: none;
}
.gift-link {
  margin: 8px 0;
}
.gift-link summary {
  font-size: 15px;
}
.gift-link input {
  font-size: 15px;
}
/* Códigos de la entrega: el de la siguiente canción y el que se comparte (§9.3). */
.promos {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
}
.promos > summary {
  font-size: 22px;
}
.promos .demo-note {
  margin: 0 0 12px;
}
.promo-card {
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 12px;
}
.promo-card p {
  margin: 0;
}
.promo-card .small + .small {
  margin-top: 6px;
}
.promo-title {
  font-weight: 650;
  font-size: 15px;
}
.promo-card .promo-title + .small {
  margin-top: 6px;
}
.promo-card .promo-code {
  display: inline-block;
  margin: 10px 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--tint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}
#promo-new {
  width: 100%;
  margin: 0 0 12px;
  font-size: 15px;
}
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.promo-actions > * {
  flex: 1 1 auto;
  font-size: 15px;
  white-space: nowrap;
}
.promo-actions #share-code {
  flex-basis: 100%;
  white-space: normal;
  justify-content: flex-start;
  font-size: 14px;
}
#share-status {
  margin-top: 8px;
}
/* «Avísame cuando abra» cierra la demo, como en la portada (H13). */
.notify-line {
  margin: 24px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
  text-align: center;
}
.notify-line .text-button {
  font-size: 15px;
  font-weight: 650;
}
.qr-block {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--separator);
  border-radius: 16px;
}
.qr-block img {
  width: 120px;
  height: 120px;
  flex: none;
}
.qr-block > div {
  flex: 1 1 150px;
  min-width: 0;
}
.qr-block p {
  margin: 0 0 10px;
  font-size: 14px;
}
.qr-block .secondary {
  font-size: 15px;
  min-height: 48px;
  padding: 10px 16px;
}
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.qr-block .text-button {
  font-size: 14px;
}
/* Página de regalo: cabecera centrada como una tarjeta, botón grande pegado a la portada,
   dedicatoria destacada, letra abierta y salida hacia Cancionea (H07, H37, H64, H65, H66). */
.gift-top {
  text-align: center;
}
.gift-top .cover {
  margin: 22px auto 14px;
}
.gift-top .player {
  justify-items: center;
  max-width: 320px;
  margin: 0 auto;
}
.gift-top .play-button {
  padding-right: 18px;
}
.dedication {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 450;
  font-size: 23px;
  line-height: 1.4;
  color: var(--primary);
  margin: 26px 0 8px;
}
.dedication::before {
  content: "“";
}
.dedication::after {
  content: "”";
}
.gift-page .notice {
  margin-top: 24px;
}
.gift-more {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  font-size: 15px;
  text-align: center;
}
.gift-more p {
  margin: 0 0 12px;
}
.gift-more .secondary {
  margin-top: 4px;
}
#checkout .primary {
  margin-top: 20px;
}

/* Movimiento: decorativo y sin esperas; ninguna acción, foco o petición depende de él. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
/* Cada paso entra desde abajo, con la barra de acción en el flujo; los errores salen al instante. */
:where(
  .page > section > :not(form, .field-error),
  .page > section > form > :not(.field-error)
) {
  animation: rise var(--dur-enter) var(--ease-out) backwards;
}
:where(.page > section > form > *) {
  animation-delay: 50ms;
}
.styles .style-row {
  animation: rise var(--dur-base) var(--ease-out) backwards;
}
.styles .style-row:nth-child(2) {
  animation-delay: 50ms;
}
.styles .style-row:nth-child(3) {
  animation-delay: 100ms;
}
/* El paso 2 se rellena mientras Seguir prepara la propuesta. */
.steps i {
  position: relative;
  overflow: hidden;
}
.steps i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-reveal) var(--ease-in-out);
}
#step-one:has(#next[aria-busy="true"]) .steps i:first-of-type::after {
  transform: none;
}
/* Etiquetas de la foto, una a una (--i lo fija displayPhoto). */
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}
.suggestion-chips button {
  animation: pop var(--dur-base) var(--ease-out) backwards;
  animation-delay: min(calc(var(--i, 0) * 30ms), 150ms);
}
.suggestion-chips .quieto {
  animation: none !important;
}
/* Onda: cada barra sigue el nivel real del micrófono (--a, grabador.js). */
@keyframes breathe {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.8;
  }
}
.wave {
  animation: fade var(--dur-base) var(--ease-out);
}
.wave i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleY(calc(0.08 + var(--a, 0) * 0.92));
}
.wave.idle i {
  animation: breathe var(--dur-reveal) var(--ease-in-out) infinite alternate;
}
.record-button:has(.stop-square) {
  box-shadow: 0 0 0 calc(var(--l, 0) * 10px) #f8d0de;
}
.recorded {
  animation: rise var(--dur-base) var(--ease-out) backwards;
}
/* Ecualizador: quieto como icono; se mueve solo mientras suena. */
@keyframes eq {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 11px;
  margin-left: 4px;
  vertical-align: -1px;
}
.eq i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform-origin: bottom;
  transform: scaleY(0.3);
  animation: eq 300ms var(--ease-in-out) infinite alternate;
  animation-name: none;
}
.eq i:nth-child(2) {
  transform: scaleY(0.47);
  animation-duration: 380ms;
  animation-delay: -150ms;
}
.eq i:nth-child(3) {
  transform: scaleY(0.94);
  animation-duration: 340ms;
  animation-delay: -250ms;
}
.eq i:nth-child(4) {
  transform: scaleY(0.31);
  animation-duration: 400ms;
  animation-delay: -60ms;
}
.style-row:has([aria-pressed="true"]) .eq,
.sonando .eq {
  color: var(--primary);
}
.style-row:has([aria-pressed="true"]) .eq i,
.sonando .eq i {
  animation-name: eq;
}
/* Entrega: al sonar, halo de la portada y ecualizador. */
.cover {
  position: relative;
  transition: box-shadow var(--dur-reveal) var(--ease-out);
}
.sonando .cover {
  box-shadow: 0 0 0 6px var(--tint);
}
.cover .eq {
  position: absolute;
  right: 12px;
  bottom: 12px;
  height: 16px;
  gap: 3px;
  margin: 0;
  padding: 8px 10px;
  box-sizing: content-box;
  border-radius: 99px;
  background: var(--background);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.cover .eq i {
  width: 3px;
}
.sonando .cover .eq {
  opacity: 1;
}
/* La portada tipográfica es pequeña y lleva nombre, título y marca: sin distintivo encima. */
.cover:has(> .cover-type:not([hidden])) .eq {
  display: none;
}
/* Sobre la foto de 112/96 px el distintivo se reduce. */
.listen .cover .eq {
  right: 6px;
  bottom: 6px;
  height: 10px;
  padding: 4px 6px;
}
/* Ocasiones y acción principal: respuesta inmediata al tocar. */
@keyframes nudge {
  to {
    transform: translateX(4px);
  }
}
.chip span {
  transition:
    background-color var(--dur-micro),
    border-color var(--dur-micro),
    color var(--dur-micro),
    transform var(--dur-micro) var(--ease-out);
}
.chip:active span {
  transform: scale(0.98);
}
.primary {
  transition:
    background-color var(--dur-micro),
    transform var(--dur-micro) var(--ease-out);
}
.primary > span[aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .primary:hover:not(:disabled) {
    transform: translateY(-1px);
  }
  .primary:hover:not(:disabled) > span[aria-hidden="true"] {
    transform: translateX(3px);
  }
}
.primary:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}
.primary[aria-busy="true"] > span[aria-hidden="true"] {
  animation: nudge var(--dur-reveal) var(--ease-in-out) infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  /* Sin desplazamientos: fundidos breves; las barras solo cambian de opacidad. */
  .recorded,
  .suggestion-chips button,
  .styles .style-row,
  :where(
    .page > section > :not(form, .field-error),
    .page > section > form > :not(.field-error)
  ) {
    animation: fade var(--dur-micro) var(--ease-out) backwards !important;
  }
  .primary > span[aria-hidden="true"],
  .eq i,
  .wave i {
    animation: none !important;
  }
  .wave i {
    transform: scaleY(0.35);
    opacity: calc(0.6 + var(--l, 0) * 0.2);
  }
  .record-button:has(.stop-square) {
    box-shadow: none;
  }
  .primary,
  .primary > span[aria-hidden="true"] {
    transform: none !important;
  }
}
@media (forced-colors: active) {
  .eq i,
  .wave i {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
