/* gogym · base visual compartida
   Postura: papel cálido, tinta profunda y un verde bosque que no grita.
   Sin rojo: una cita movida es un estado normal, no una alerta. */

:root {
  color-scheme: light;

  --bg: #f3f0e9;
  --bg-deep: #eae5da;
  --surface: #fbf9f5;
  --surface-2: #f4f0e7;
  --surface-3: #ece7dc;

  --ink: #171814;
  --ink-2: #4f5049;
  --ink-3: #6f6f65;

  --line: #dfd9cd;
  --line-strong: #b3ab9c;

  --accent: #1e4d3d;
  --accent-hover: #173e31;
  --accent-ink: #f7faf7;
  --accent-soft: #dbe7de;
  --accent-soft-2: #c9dbcf;

  --warm: #b9713d;
  --warm-soft: #f4e5d6;
  --warm-ink: #6d4527;

  --shadow-1: 0 1px 2px rgba(31, 29, 22, 0.05), 0 8px 24px rgba(31, 29, 22, 0.04);
  --shadow-2: 0 2px 6px rgba(31, 29, 22, 0.05), 0 24px 60px rgba(31, 29, 22, 0.08);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #121310;
    --bg-deep: #0d0e0b;
    --surface: #1a1b17;
    --surface-2: #20211c;
    --surface-3: #282920;

    --ink: #f2efe7;
    --ink-2: #c3c0b5;
    --ink-3: #9b998e;

    --line: #2e2f28;
    --line-strong: #45463b;

    --accent: #9fc9b4;
    --accent-hover: #b4d7c4;
    --accent-ink: #10241c;
    --accent-soft: #24382f;
    --accent-soft-2: #2f473b;

    --warm: #d99a66;
    --warm-soft: #33251a;
    --warm-ink: #efc7a4;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.22);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(255, 255, 255, 0.55), transparent 62%),
    radial-gradient(48% 48% at 92% 100%, rgba(30, 77, 61, 0.09), transparent 72%);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(70% 55% at 12% 0%, rgba(255, 255, 255, 0.035), transparent 62%),
      radial-gradient(48% 48% at 92% 100%, rgba(159, 201, 180, 0.08), transparent 72%);
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Marca ─────────────────────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 17px;
}

.brand-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.brand-bars i:nth-child(1) {
  height: 9px;
}

.brand-bars i:nth-child(2) {
  height: 17px;
}

.brand-bars i:nth-child(3) {
  height: 6px;
}

/* ── Tipografía ────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.99;
}

/* ── Controles ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 77, 61, 0.18);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn[disabled],
.btn[aria-busy='true'] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
  box-shadow: none;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--ink);
}

.field {
  display: block;
  margin-bottom: 15px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.field-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.field-hint {
  font-size: 11px;
  color: var(--ink-3);
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input::placeholder {
  color: var(--ink-3);
  opacity: 0.75;
}

.input:hover {
  border-color: var(--ink-3);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}

.input-wrap .input {
  padding-right: 74px;
}

.input-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.input-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--warm) 28%, transparent);
  border-radius: var(--r-md);
  background: var(--warm-soft);
  color: var(--warm-ink);
  font-size: 13px;
  line-height: 1.45;
}

.notice::before {
  content: '!';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--warm);
  color: var(--surface);
  font-size: 11px;
  font-weight: 800;
}

.notice[hidden] {
  display: none;
}

.fineprint {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.fineprint a {
  color: var(--ink-2);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* ── Movimiento ────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s var(--ease) both;
  }

  .rise-1 {
    animation-delay: 0.05s;
  }

  .rise-2 {
    animation-delay: 0.12s;
  }

  .rise-3 {
    animation-delay: 0.19s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

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