/* ====== HOME / INICIO (solo esta página) ====== */
.inicio-page {
  /* Colores base del overlay y velas */
  --overlay-alpha: 0.22;
  --grid: rgba(255,255,255,0.06);

  --candle-up: rgba(0, 220, 130, var(--overlay-alpha));
  --candle-up-wick: rgba(0, 220, 130, 0.60);
  --candle-down: rgba(255, 80, 80, var(--overlay-alpha));
  --candle-down-wick: rgba(255, 80, 80, 0.60);

  --ma-line: rgba(0, 200, 255, 0.85);   /* media móvil (neón) */
  --ma-glow: rgba(0, 200, 255, 0.35);   /* halo del neón */
  --vol-bar: rgba(0, 200, 255, 0.18);   /* barras de volumen */
}

/* ====== Layout principal ====== */
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }

.inicio-page .container { padding: 0 12px; }

.inicio-page .shell {
  width: min(560px, 96vw);
  margin: 48px auto;
}

.inicio-page .header { margin-bottom: 8px; }

/* ====== Overlay: rejilla + velas ====== */
.inicio-page .market-overlay {
  position: fixed; inset: 0;
  z-index: 1;           /* por debajo de la card/contenido */
  pointer-events: none; /* no bloquea clics */
}

/* Rejilla sutil que se desplaza */
.inicio-page .market-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to top,   var(--grid) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  opacity: .35;
  animation: grid-pan 30s linear infinite;
}

@keyframes grid-pan {
  to { background-position: -120px 0, 0 -120px; }
}

/* Canvas de velas + MA + volumen (parallax) */
.inicio-page .candles-wrap {
  position: absolute; inset: 8% 0 8% 0;
  opacity: .9;
}
.inicio-page #candles-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* Viñeteado para no distraer el centro */
.inicio-page .market-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 0%, transparent 40%, rgba(0,0,0,.35) 85%);
}

/* Elevar el contenido principal por encima del overlay */
.inicio-page main,
.inicio-page .container,
.inicio-page .center,
.inicio-page .card,
.inicio-page .panel,
.inicio-page #app,
.inicio-page #content-original {
  position: relative;
  z-index: 2;
}

/* Accesibilidad: reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .inicio-page .market-overlay { display: none; }
}

/* ====== Brand (logo, título, subtítulo) ====== */
.inicio-page .brand {
  display: flex;                 /* fuerza columna para evitar que salgan en línea */
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.inicio-page .brand-logo {
  max-height: 56px;
  margin: 6px 0 10px 0;
  opacity: .9;
}

.inicio-page .brand .title {
  display: block;
  white-space: nowrap;           /* “Board Masters” en una sola línea */
  margin: 0 0 6px 0;
  line-height: 1.1;
  letter-spacing: .2px;
  font-size: clamp(32px, 6vw, 48px);
  background: linear-gradient(90deg, #fff 0%, rgba(0,200,255,1) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(0,200,255,.28);
}

.inicio-page .brand .subtitle {
  display: block;
  margin: 0;
  color: rgba(255,255,255,.85);
  font-weight: 400;
  font-size: clamp(14px, 2.4vw, 16px);
  opacity: .95;
}

/* Permitir partir el título en pantallas ultra estrechas */
@media (max-width: 340px) {
  .inicio-page .brand .title { white-space: normal; }
}

/* ====== Tarjetón central: glass + neón ====== */
.inicio-page .card {
  position: relative;
  border-radius: 20px;
  background: rgba(8, 12, 22, 0.50);
  border: 1px solid rgba(0, 200, 255, 0.18);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
}

/* Borde neón sutil (con “hue shift” al pasar el ratón) */
.inicio-page .card::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px; border-radius: 20px;
  background: linear-gradient(135deg,
    rgba(0,200,255,.65),
    rgba(0,220,130,.65),
    rgba(0,200,255,.65));

  /* 👇 máscaras para crear el “borde” hueco */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;   /* Safari/WebKit */
  mask-composite: exclude;       /* Estándar */

  filter: drop-shadow(0 0 14px rgba(0,200,255,.28));
  pointer-events: none;
  opacity: .7;
  transition: opacity .25s ease;
}

.inicio-page .card:hover::before { opacity: .95; }

/* ====== Formulario ====== */
.inicio-page .label { display:block; margin: 10px 0 6px; }

.inicio-page .input {
  height: 44px;
  width: 100%;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  padding: 0 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.inicio-page .input:focus {
  border-color: rgba(0,200,255,.60);
  box-shadow:
    0 0 0 4px rgba(0,200,255,.10),
    inset 0 0 0 1px rgba(0,200,255,.35);
  background: rgba(255,255,255,.06);
  outline: none;
}

/* Campo contraseña con botón “ver/ocultar” */
.inicio-page .password-field { position: relative; }
.inicio-page .password-field .toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  height: 30px; padding: 0 10px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.85);
  font-size: 12px; letter-spacing: .2px;
}
.inicio-page .password-field .toggle:hover {
  background: rgba(255,255,255,.06); color: #fff;
}

/* Estado del mensaje de login */
.inicio-page #loginMsg { min-height: 1.2em; }

/* Acciones y separadores */
.inicio-page .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.inicio-page .card hr {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  margin: 18px 0;
}

/* Botones */
.inicio-page .btn.primary {
  height: 46px; border-radius: 14px; border: 0;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(0,200,255,.95), rgba(0,160,255,.9));
  box-shadow:
    0 10px 30px rgba(0,200,255,.18),
    inset 0 0 14px rgba(255,255,255,.18);
  transition: transform .06s ease, filter .15s ease;
  color: #00131a;
  font-weight: 600;
}
.inicio-page .btn.primary:hover { filter: brightness(1.05); }
.inicio-page .btn.primary:active { transform: translateY(1px); }

.inicio-page .btn.ghost {
  opacity: .9;
  text-decoration: none;
}
/* Forzar centrado del título y subtítulo en cualquier caso */
.inicio-page .brand {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  text-align: center !important;
}

.inicio-page .brand .title,
.inicio-page .brand .subtitle {
  display: block;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.inicio-page .header { display: flex; justify-content: center; }