/* ==========================================================================
   KrysionFit — sistema visual de la home aplicado al portal
   Mismo lenguaje que hello-elementor-child/css/inicio-modern.css (sección
   18, patrón de calisteniapp.com): negro puro, retícula de líneas finas,
   esquinas rectas, títulos en mayúsculas con una palabra en cursiva serif
   naranja encima, botones rectos en mayúsculas y fotos en blanco y negro con
   velo naranja. Va DESPUÉS de los estilos propios de cada página y solo
   sobreescribe; no cambia marcado ni lógica.
   Secciones:
     0) Tokens
     1) Login (login.php)
     2) Formularios (index.php, sobre css/styles.css)
     3) Pago (pagar.php, pago_exitoso.php)
     4) Área privada (area_privada.php, editar.php)
   ========================================================================== */

/* 0) Tokens --------------------------------------------------------------- */
:root {
  --kf-bg: #000;
  --kf-surface: #0a0a0a;
  --kf-surface-2: #111;
  --kf-line: #27272a;
  --kf-border: var(--kf-line);
  --kf-border-strong: #3f3f46;
  --kf-r-sm: 0px;
  --kf-r-md: 0px;
  --kf-r-lg: 0px;
  --kf-serif: 'Instrument Serif', Georgia, serif;

  /* Nombres que usan pagar.php y area_privada.php en sus <style> propios */
  --bg-dark: #000;
  --card-surface: #0a0a0a;
  --card-border: var(--kf-line);
  --radius-lg: 0px;
  --radius-md: 0px;
}
/* Tapiz de ejercicios del inicio en todo el portal, atenuado con un velo para
   que sea sutil; el login lo redefine más abajo a intensidad completa. */
body {
  background:
    linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
    url('/wp-content/plugins/krysion-ux/assets/img/fondo-fitness.svg') 0 0 / 540px repeat,
    #0b0b0c;
  background-attachment: fixed, fixed, scroll;
}

/* 1) Login ---------------------------------------------------------------- */
/* Login (login.php): mismo lenguaje que «Empieza ahora» (kf-checkout-skin.css)
   y que el inicio: fondo #0b0b0c con el tapiz de ejercicios, campos y botón
   redondeados y el fueguito en lugar de etiquetas. Solo afecta a .auth. */
body.kf-login-page {
  background:
    radial-gradient(ellipse 900px 520px at 50% -120px, color-mix(in srgb, var(--kf-accent, #f2600c) 10%, transparent), transparent 70%) no-repeat,
    url('/wp-content/plugins/krysion-ux/assets/img/fondo-fitness.svg') 0 0 / 540px repeat,
    #0b0b0c;
}
.auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}
.login-mascot { display: block; width: 84px; height: auto; margin: 0 auto 12px; }
.auth h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
}
.auth .lead { margin-bottom: 0; font-size: 15px; }
.auth label {
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.auth .input {
  height: 52px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #131315;
  color: #f4f4f5;
}
.auth .input:hover { border-color: rgba(255, 255, 255, 0.16); }
.auth .input:focus {
  background: #18181b;
  border-color: var(--kf-accent, #f2600c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--kf-accent, #f2600c) 18%, transparent);
  outline: none;
}
.auth .toggle-pass { border-radius: 12px; }
.auth .alert { border-radius: 16px; }
.auth .btn-submit {
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--kf-accent, #f2600c);
  color: #0b0b0c;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.auth .btn-submit:hover { background: var(--kf-accent-hover, #ff8a3d); transform: none; }
.auth .link-back { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.auth .divider { background: rgba(255, 255, 255, 0.08); }
.auth .logo,
.auth .link-back { white-space: nowrap; }
/* Estándares móviles: controles oscuros nativos, toque inmediato, sin destello */
html:has(body.kf-login-page) { color-scheme: dark; }
.auth a,
.auth button,
.auth label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.auth .btn-submit:active { transform: scale(0.98); }

/* Áreas táctiles de 44px en los enlaces de texto del formulario. El logo solo
   en móvil: en escritorio la cabecera del formulario lo oculta (.auth-top). */
.auth .field-help,
.auth .signup a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.auth .field-help { margin: -12px 0; }
@media (max-width: 1023px) {
  .auth-top .logo { display: inline-flex; align-items: center; min-height: 44px; }
}

/* A 320px el logo y el enlace no caben juntos con el margen de 24px */
@media (max-width: 360px) {
  .auth-main { padding-left: 16px; padding-right: 16px; }
}

/* 2) Formularios (index.php) ---------------------------------------------- */
.phone-frame { border-radius: 0; border-color: var(--kf-line); }
.step h2,
.welcome-step h2 {
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.btn-primary,
.btn-secondary {
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn-primary:active { transform: none; }

/* 3) Pago (pagar.php, pago_exitoso.php) ----------------------------------- */
.payment-card,
.plan-badge,
.payment-notice,
.btn-paypal,
.btn-mercadopago,
.btn-wa { border-radius: 0; }
.btn-paypal,
.btn-mercadopago,
.btn-wa { letter-spacing: 0.04em; text-transform: uppercase; }
.payment-card h1,
.payment-card h2 { letter-spacing: -0.04em; text-transform: uppercase; }

/* 4) Área privada (area_privada.php, editar.php) -------------------------- */
.private-header { border-bottom: 1px solid var(--kf-line); }
.profile-card,
.stat-box,
.medical-box,
.kf-alert,
.kf-modal-card,
.kf-field input,
.kf-field select,
.kf-field textarea,
.btn-logout { border-radius: 0; }
.profile-card,
.stat-box,
.medical-box { background: var(--card-surface); border-color: var(--kf-line); box-shadow: none; }
.private-area-content h1,
.private-area-content h2 { letter-spacing: -0.04em; text-transform: uppercase; }
.stat-value { letter-spacing: -0.03em; }
.btn-logout { letter-spacing: 0.05em; text-transform: uppercase; }
