/* ==========================================================================
   Stickvoice · onyx + rosa pastel · mobile first
   ========================================================================== */

:root {
  --onyx: #0a0a0d;
  --onyx-2: #101014;
  --surface: #16161c;
  --surface-2: #1d1d25;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f4f6;
  --muted: #a69ba4;
  --pink: #f6b8ca;
  --pink-2: #ffcbdc;
  --pink-deep: #e98fae;
  --pink-ink: #2b0d17;
  --mint: #9be3bd;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.9);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(680px 380px at 85% -8%, rgba(246, 184, 202, 0.16), transparent 70%),
    radial-gradient(520px 320px at 10% 0%, rgba(246, 184, 202, 0.06), transparent 65%),
    var(--onyx);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- estructura */
.app {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 18px;
}

.app-header__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.app-header__text span {
  color: var(--muted);
  font-size: 12px;
}

.app-header__text strong {
  font-size: 17px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--pink-2), var(--pink-deep));
  color: var(--pink-ink);
  font-weight: 800;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.avatar--lg {
  width: 84px;
  height: 84px;
  font-size: 28px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

/* ------------------------------------------------------------------ texto */
.eyebrow {
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.title {
  font-size: 27px;
  letter-spacing: -0.035em;
}

.subtitle {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
}

.muted {
  color: var(--muted);
  font-size: 12.5px;
}

/* ----------------------------------------------------------------- tarjetas */
.card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 12px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card__head h2,
.card__head h3 {
  font-size: 15.5px;
}

.card__head span {
  color: var(--muted);
  font-size: 11.5px;
}

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: #24242d;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn--primary {
  width: 100%;
  border: 0;
  padding: 15px 18px;
  background: linear-gradient(150deg, var(--pink-2), var(--pink) 55%, var(--pink-deep));
  color: var(--pink-ink);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 18px 34px -22px rgba(246, 184, 202, 0.8);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(150deg, #ffd6e3, var(--pink-2) 55%, var(--pink));
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: #d9cfd5;
}

.btn--small {
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 12px;
}

.btn--danger {
  border-color: rgba(255, 143, 163, 0.4);
  background: rgba(255, 143, 163, 0.1);
  color: #ffb6c3;
}

.btn--inline {
  width: auto;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- tabbar */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(440px, calc(100% - 28px));
  padding: 8px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 18, 23, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.9);
}

.tab {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.tab svg {
  width: 21px;
  height: 21px;
}

.tab.is-active {
  color: var(--pink-ink);
  background: linear-gradient(150deg, var(--pink-2), var(--pink-deep));
}

/* ------------------------------------------------------------------ footer */
.legal {
  margin: 26px 0 0;
  padding: 16px 0 8px;
  border-top: 1px solid var(--line);
  color: #6f666e;
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.legal strong {
  color: #8d838b;
}

/* ---------------------------------------------------------------- landing */
.landing {
  min-height: calc(100vh - 40px);
  display: grid;
  align-content: center;
  gap: 22px;
  padding-top: 32px;
  padding-bottom: 10px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--pink-2), var(--pink-deep));
  color: var(--pink-ink);
  font-weight: 900;
  font-size: 20px;
}

.logo-row strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.landing h1 {
  font-size: clamp(34px, 10vw, 46px);
  letter-spacing: -0.045em;
}

.landing h1 em {
  font-style: normal;
  color: var(--pink);
}

.landing-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(246, 184, 202, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.landing-actions {
  display: grid;
  gap: 10px;
}

/* -------------------------------------------------------------------- auth */
.auth {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 26px 18px 40px;
}

.auth__card {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  box-shadow: var(--shadow);
}

.auth__card h1 {
  font-size: 23px;
  letter-spacing: -0.03em;
}

.auth__card > p {
  margin-top: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label,
.field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-grid input,
.form-grid select,
.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--onyx-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.form-grid input:focus,
.field input:focus,
.form-grid select:focus {
  border-color: rgba(246, 184, 202, 0.55);
  outline: none;
}

.form-error {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 143, 163, 0.35);
  background: rgba(255, 143, 163, 0.1);
  color: #ffc3cd;
  font-size: 12.5px;
}

.form-ok {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(155, 227, 189, 0.35);
  background: rgba(155, 227, 189, 0.1);
  color: #bdf3d5;
  font-size: 12.5px;
}

.auth__links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.auth__links a:hover {
  color: var(--text);
}

.field__hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

.field__hint.is-valid {
  color: var(--mint);
}

.field__hint.is-invalid {
  color: #ffb0bd;
}

/* -------------------------------------------------------------------- home */
.greeting {
  margin-bottom: 18px;
}

.greeting h1 {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.greeting p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stat-pill__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: rgba(246, 184, 202, 0.12);
  color: var(--pink);
}

.stat-pill strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.stat-pill span {
  color: var(--muted);
  font-size: 10.5px;
}

.hero-action {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--pink-2), var(--pink) 45%, var(--pink-deep));
  color: var(--pink-ink);
  box-shadow: 0 30px 60px -34px rgba(246, 184, 202, 0.8);
}

.hero-action::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(8px);
}

.hero-action h2 {
  font-size: 23px;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero-action p {
  font-size: 12.5px;
  color: rgba(43, 13, 23, 0.72);
  max-width: 26ch;
}

.hero-action .hero-actions {
  justify-self: start;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-action .hero-actions a {
  justify-self: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hero-action .hero-actions a.primary {
  background: rgba(10, 10, 13, 0.9);
  color: var(--text);
}

.hero-action .hero-actions a.ghost {
  background: transparent;
  border: 1px solid rgba(43, 13, 23, 0.45);
  color: var(--pink-ink);
}

.hero-action a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 13px;
  background: rgba(10, 10, 13, 0.9);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.action-tile {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 17px;
  border-radius: 21px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 128px;
}

.action-tile__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(246, 184, 202, 0.12);
  color: var(--pink);
}

.action-tile strong {
  font-size: 14px;
}

.action-tile span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 10px;
}

.section-head h2 {
  font-size: 16px;
}

.section-head a {
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
}

.activity {
  display: grid;
  gap: 2px;
}

.activity__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.activity__item:last-child {
  border-bottom: 0;
}

.activity__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  flex: none;
}

.activity__item time {
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.empty {
  padding: 22px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ creador */
.editor-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  scroll-margin-top: 12px;
  background-color: #0d0d11;
  background-image:
    linear-gradient(45deg, #191920 25%, transparent 25%),
    linear-gradient(-45deg, #191920 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #191920 75%),
    linear-gradient(-45deg, transparent 75%, #191920 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.editor-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.editor-stage canvas.is-dragging {
  cursor: grabbing;
}

.editor-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center center;
}

.editor-stage__img.is-editable {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.editor-stage__img.is-editable.is-dragging {
  cursor: grabbing;
}

.editor-stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center center;
}

.editor-stage__video.is-editable {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.editor-stage__video.is-editable.is-dragging {
  cursor: grabbing;
}

.stage-sound {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(18, 18, 23, 0.72);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.stage-sound svg {
  width: 20px;
  height: 20px;
}

.stage-sound.is-muted .stage-sound__waves {
  display: none;
}

.stage-sound:not(.is-muted) .stage-sound__muted {
  display: none;
}

.trim {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.trim__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.trim__row input {
  width: 100%;
}

.trim__row input[type="range"] {
  min-width: 0;
}

.trim__number {
  width: 62px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: right;
}

.trim__info {
  color: var(--muted);
  font-size: 11px;
}

.trim__audio {
  justify-self: start;
  margin-top: 2px;
}

.progress {
  width: 100%;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--pink);
  transition: width 0.2s ease;
}

.editor-stage__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  color: var(--muted);  font-size: 12px;
  pointer-events: none;
}

.drop {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop:hover,
.drop.is-over {
  border-color: rgba(246, 184, 202, 0.6);
  background: rgba(246, 184, 202, 0.05);
}

.drop svg {
  width: 24px;
  height: 24px;
  color: var(--pink);
}

.drop span {
  color: var(--text);
  font-size: 12.5px;
}

.drop small {
  color: var(--muted);
  font-size: 10.5px;
}

.drop--small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.drop--small svg {
  width: 18px;
  height: 18px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.controls .control:first-child {
  grid-column: 1 / -1;
}

/* El recorte (sliders de inicio/fin) ocupa todo el ancho, también en móvil. */
#trimWrap {
  grid-column: 1 / -1;
}

.control {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.control > span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.control input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
  height: 26px;
}

.control select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--onyx-2);
  color: var(--text);
  font-size: 12.5px;
}

.control input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--onyx-2);
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--onyx-2);
}

.segmented button {
  flex: 1;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.segmented button.is-active {
  background: rgba(246, 184, 202, 0.16);
  color: var(--pink);
}

.meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  min-height: 16px;
}

.meta--ok {
  color: var(--mint);
}

.meta--warn {
  color: #f3c98a;
}

.meta--err {
  color: #ffb0bd;
}

/* ------------------------------------------------------------------- audio */
.switch {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch__track {
  position: relative;
  width: 44px;
  height: 25px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #26262f;
  transition: background 0.15s ease;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #8d838b;
  transition: transform 0.15s ease, background 0.15s ease;
}

.switch input:checked + .switch__track {
  background: rgba(246, 184, 202, 0.24);
  border-color: rgba(246, 184, 202, 0.5);
}

.switch input:checked + .switch__track::after {
  transform: translateX(19px);
  background: var(--pink);
}

.switch input:disabled + .switch__track {
  opacity: 0.4;
}

.switch__text {
  font-size: 12.5px;
  font-weight: 600;
}

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(246, 184, 202, 0.35);
  background: rgba(246, 184, 202, 0.1);
  color: var(--pink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.hint--warn {
  color: #f3c98a;
}

audio {
  width: 100%;
  margin-top: 10px;
  height: 40px;
  color-scheme: dark;
}

/* --------------------------------------------------------------------- log */
.log {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--onyx-2);
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  display: grid;
  gap: 6px;
  max-height: 200px;
  overflow: auto;
}

.log__line {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 7px;
  color: #cfc4ca;
}

.log__line::before {
  content: "•";
  color: var(--muted);
}

.log__line--ok::before { content: "✓"; color: var(--mint); }
.log__line--err::before { content: "✕"; color: #ff9faf; }
.log__line--warn::before { content: "!"; color: #f3c98a; }
.log__line--info::before { content: "›"; color: var(--pink); }

/* ---------------------------------------------------------------- descargador */
.url-row {
  display: grid;
  gap: 8px;
}

.url-row input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--onyx-2);
  color: var(--text);
  font-size: 13.5px;
}

.progress {
  margin-top: 12px;
  height: 7px;
  border-radius: 999px;
  background: #22222a;
  overflow: hidden;
}

.progress > div {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink-2));
  transition: width 0.3s ease;
}

.preview-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background-color: #0d0d11;
  background-image:
    linear-gradient(45deg, #191920 25%, transparent 25%),
    linear-gradient(-45deg, #191920 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #191920 75%),
    linear-gradient(-45deg, transparent 75%, #191920 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.preview-media img {
  max-width: 100%;
  max-height: 320px;
}

/* -------------------------------------------------------------------- admin */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat {
  padding: 15px 16px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stat strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 10.5px;
}

.admin-grid {
  display: grid;
  gap: 12px;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  margin: 12px auto;
  max-width: 230px;
}

.qr-box img {
  width: 100%;
  height: auto;
}

.qr-box .qr-placeholder {
  color: #0a0a0d;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.invite-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.invite-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--onyx-2);
  font-size: 11.5px;
}

.invite code {
  color: var(--pink);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.invite__meta {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th, td {
  padding: 10px 11px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.table-actions {
  display: flex;
  gap: 5px;
}

.event-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  font-size: 11.5px;
}

.event-list li {
  display: flex;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--onyx-2);
  border: 1px solid var(--line);
  color: #c9bec5;
  list-style: none;
}

.event-list time {
  color: var(--muted);
  flex: none;
  font-size: 10.5px;
}

/* -------------------------------------------------------------------- perfil */
.profile-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 0 20px;
  text-align: center;
}

.profile-head strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.profile-head span {
  color: var(--muted);
  font-size: 11.5px;
}

.profile-actions {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #e3d9df;
  font-size: 13px;
}

.link-row svg {
  width: 18px;
  height: 18px;
  color: var(--pink);
}

.link-row span {
  margin-left: auto;
  color: var(--muted);
}

/* --------------------------------------------------------------- escritorio */
@media (min-width: 900px) {
  body {
    padding-bottom: 40px;
  }

  .app {
    max-width: 1080px;
    padding: 28px 32px 0;
  }

  .tabbar {
    display: none;
  }

  .app-header {
    padding-bottom: 24px;
  }

  .home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 16px;
    align-items: start;
  }

  .home-layout .hero-action {
    grid-column: 1 / -1;
  }

  .desktop-only {
    display: block;
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}

.desktop-nav a {
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.desktop-nav a.is-active,
.desktop-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 900px) {
  .app--wide { max-width: 980px; }
}


@media (min-width: 900px) {
  .desktop-nav { display: flex; }
}

