/* FitOS — /prueba-gratis.html signup wizard */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --su-orange: #e65100;
  --su-orange-hot: #ff6d00;
  --su-ink: #171717;
  --su-muted: #666;
  --su-line: #e0e0e0;
  --su-bg: #0a0c0e;
  --su-card-w: min(960px, calc(100vw - 32px));
}

html, body {
  margin: 0;
  min-height: 100%;
}

body.su-page {
  font-family: Figtree, system-ui, sans-serif;
  color: #fff;
  background: var(--su-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.su-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(10, 12, 14, 0.88), rgba(10, 12, 14, 0.72)),
    url("/assets/home-hero-gym.jpg") center / cover no-repeat;
  filter: saturate(0.85);
}

.su-page-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
}

.su-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: Syne, Figtree, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.su-page-login {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.su-page-login:hover { color: var(--su-orange-hot); }

.su-page-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.lang-switch .lang-btn {
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-switch .lang-btn:hover,
.lang-switch .lang-btn:focus-visible { color: var(--su-orange-hot); }

.lang-switch .lang-btn[aria-pressed="true"] {
  background: var(--su-orange);
  color: #fff;
}

.su-page-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 32px;
  min-height: calc(100vh - 72px);
}

.su-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: var(--su-card-w);
  max-width: var(--su-card-w);
  min-width: 0;
  max-height: min(860px, calc(100vh - 96px));
  background: #fff;
  color: var(--su-ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.su-side {
  position: relative;
  min-height: 320px;
  min-width: 0;
  background: #0e1412;
  overflow: hidden;
}

.su-side img#signup-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.su-side-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
}

.su-side-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--su-orange-hot);
  font-weight: 700;
}

.su-side-lead {
  margin: 0;
  font-family: Syne, Figtree, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.su-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 30px 22px;
  overflow: auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
}

.su-progress {
  height: 4px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
  --su-pct: 14%;
  flex-shrink: 0;
}

.su-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--su-pct);
  background: var(--su-orange);
  border-radius: inherit;
  transition: width 0.25s ease;
}

/* Reserve error space so the card never jumps width/height on first error */
.su-error-slot {
  min-height: 0;
  flex-shrink: 0;
}

.su-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffebee;
  color: #b71c1c;
  font-size: 0.86rem;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.su-form h1 {
  margin: 4px 0 0;
  font-family: Syne, Figtree, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--su-ink);
}

.su-sub {
  margin: 0;
  color: var(--su-muted);
  font-size: 0.92rem;
}

.su-field,
.su-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #333;
  min-width: 0;
}

/* Label text + asterisk stay on ONE line */
.su-label-text {
  display: inline;
  font-size: 0.86rem;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
}

.su-req {
  color: #e53935;
  font-weight: 700;
  margin-left: 2px;
}

.su-label input,
.su-label select,
.su-label textarea,
.su-phone input,
.su-phone select {
  display: block;
  font: inherit;
  font-weight: 500;
  color: var(--su-ink);
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  width: 100%;
  min-height: 44px;
  max-width: 100%;
}

.su-label select {
  appearance: auto;
  cursor: pointer;
}

.su-label input:focus,
.su-label select:focus,
.su-label textarea:focus,
.su-phone input:focus,
.su-phone select:focus {
  outline: 2px solid color-mix(in srgb, var(--su-orange) 45%, transparent);
  border-color: var(--su-orange);
}

.su-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #444;
  font-weight: 500;
}

.su-terms a {
  color: var(--su-orange);
  text-decoration: underline;
}

.su-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.su-seg label { cursor: pointer; }

.su-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.su-seg span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.su-seg input:checked + span {
  background: var(--su-orange);
  border-color: var(--su-orange);
  color: #fff;
}

.su-photo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.su-photo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eee, #ddd);
  border: 2px dashed #ccc;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.su-photo-circle.has-photo {
  border-style: solid;
  border-color: var(--su-orange);
}

.su-photo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.su-photo-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--su-orange);
  cursor: pointer;
}

.su-photo-edit {
  border: 0;
  background: transparent;
  color: #666;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.su-theme-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0.75rem 0 0.25rem;
}

.su-theme-swatches[hidden] {
  display: none !important;
}

.su-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e6e2de;
  border-radius: 10px;
  background: #faf9f7;
}

.su-swatch-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.su-swatch-label {
  display: block;
  font-size: 0.72rem;
  color: #777;
  line-height: 1.2;
}

.su-swatch-hex {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
}

.su-theme-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0.75rem;
}

.su-theme-custom[hidden] {
  display: none !important;
}

.su-crop-dialog {
  border: 0;
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.1rem;
  max-width: 360px;
  width: calc(100% - 2rem);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.su-crop-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.su-crop-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.su-crop-hint {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #666;
}

.su-crop-stage {
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

#su-crop-canvas {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  background: #111;
}

#su-crop-canvas:active {
  cursor: grabbing;
}

.su-crop-zoom-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 1rem;
}

.su-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.su-crop-cancel {
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
  font-size: 0.9rem;
}

.su-crop-ok {
  border: 0;
  border-radius: 999px;
  background: var(--su-orange);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
}

.su-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.su-password-wrap input {
  width: 100%;
  padding-right: 2.75rem;
  box-sizing: border-box;
}

.su-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.su-password-toggle:hover,
.su-password-toggle:focus-visible {
  color: #333;
  outline: none;
  background: rgba(0, 0, 0, 0.05);
}

.su-password-toggle[aria-pressed="true"] {
  color: var(--su-orange);
}

.su-phone {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  width: 100%;
}

.su-hint {
  margin: 0;
  text-align: center;
  color: #888;
  font-size: 0.8rem;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}

.su-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.su-check {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--su-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.su-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--su-orange);
  flex-shrink: 0;
}

.su-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  gap: 12px;
  flex-shrink: 0;
}

.su-back {
  background: none;
  border: 0;
  color: #333;
  text-decoration: underline;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

.su-next {
  margin-left: auto;
  background: var(--su-orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.su-next:hover { background: var(--su-orange-hot); }
.su-next:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 760px) {
  .su-card {
    grid-template-columns: 1fr;
    max-height: none;
    width: var(--su-card-w);
  }

  .su-side { display: none; }

  .su-form { padding: 22px 18px 18px; }

  .su-page-main {
    align-items: flex-start;
    padding-top: 8px;
  }
}
