/* ==========================================================================
   PRIMACODE - LANDING PAGE STYLES (PURE DARK MODERN FINTECH)
   ========================================================================== */

/* Typography Tokens & Dark Theme (Enforced 100% Dark) */
:root {
  --font-title: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --landing-bg: #040812;
  --landing-bg-secondary: #081020;
  --landing-surface: #0c1527;
  --landing-surface2: #13213c;
  --landing-surface3: #1a2d52;
  --landing-surface-soft: rgba(79, 124, 255, 0.08);
  --landing-surface-strong: rgba(79, 124, 255, 0.16);
  --landing-border: #1e304d;
  --landing-border-strong: #2e4770;
  --landing-border-glow: rgba(79, 124, 255, 0.4);
  --landing-text: #f8fafc;
  --landing-text-bright: #ffffff;
  --landing-muted: #94a3b8;
  --landing-muted-soft: #cbd5e1;
  --landing-accent: #4f7cff;
  --landing-accent-glow: rgba(79, 124, 255, 0.4);
  --landing-accent-deep: #3b5bdb;
  --landing-accent-cyan: #00d2ff;
  --landing-positive: #22c55e;
  --landing-positive-glow: rgba(34, 197, 94, 0.3);
  --landing-warning: #f59e0b;
  --landing-negative: #ef4444;
  --landing-radius: 16px;
  --landing-radius-lg: 24px;
  --landing-radius-xl: 32px;
  --landing-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  --landing-max: 1240px;
}

/* Enforce Dark Theme on Landing regardless of any stored light theme */
html[data-contexto="landing"],
body[data-contexto="landing"],
html[data-skin="premium-light"] body[data-contexto="landing"],
html.light body[data-contexto="landing"],
body[data-contexto="landing"].light {
  background: #040812 !important;
  color: #f8fafc !important;
  color-scheme: dark !important;
}

body[data-contexto="landing"] {
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-contexto="landing"] .login-shell {
  min-height: 100vh;
  background: transparent;
}

body[data-contexto="landing"] .login-shell-header {
  display: none;
}

body[data-contexto="landing"] .login-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.landing-page,
.landing-page * {
  box-sizing: border-box;
}

.landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--landing-text);
  font-family: var(--font-body);
  background: var(--landing-bg);
}

/* Typography Overrides */
.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4,
.landing-page h5,
.landing-brand,
.brand-text,
.landing-kicker,
.landing-badge,
.plan-price,
.mockup-card strong,
.landing-btn {
  font-family: var(--font-title);
  letter-spacing: -0.02em;
}

.landing-page p,
.landing-page span,
.landing-page label,
.landing-page input,
.landing-page a {
  font-family: var(--font-body);
}

.landing-mono {
  font-family: var(--font-mono) !important;
}

/* ==========================================================================
   BACKGROUND AMBIENT MESH GLOWS
   ========================================================================== */
.landing-ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.glow-1 {
  top: -120px;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.22) 0%, rgba(59, 91, 219, 0) 70%);
}

.glow-2 {
  top: 500px;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0) 70%);
}

.glow-3 {
  top: 1400px;
  left: 10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, rgba(79, 124, 255, 0) 70%);
}

.glow-4 {
  top: 2300px;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.18) 0%, rgba(59, 91, 219, 0) 70%);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.landing-public-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(calc(100% - 32px), var(--landing-max));
  margin: 16px auto 0;
  padding: 10px 24px;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  background: rgba(12, 21, 39, 0.88);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.landing-brand,
.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--landing-text);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.landing-brand:hover,
.app-brand:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-text,
.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--landing-text-bright);
}

.brand-name-accent {
  color: var(--landing-accent);
}

.brand-mark-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-img-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.landing-brand-mark,
.brand-symbol-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--landing-accent);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.3) 0%, rgba(59, 91, 219, 0.1) 100%);
  color: var(--landing-accent);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 0 16px var(--landing-accent-glow);
}

.landing-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.landing-nav a,
.landing-login-link {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--landing-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.landing-nav a:hover,
.landing-login-link:hover {
  color: var(--landing-text-bright);
  background: var(--landing-surface-soft);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* BUTTONS */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-btn-primary {
  background: linear-gradient(135deg, #5b84ff 0%, #3b5bdb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 24px rgba(79, 124, 255, 0.4);
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 124, 255, 0.6);
  filter: brightness(1.12);
}

.landing-btn-secondary {
  background: var(--landing-surface2);
  border-color: var(--landing-border-strong);
  color: var(--landing-text);
}

.landing-btn-secondary:hover {
  background: var(--landing-surface3);
  border-color: var(--landing-accent);
  color: var(--landing-text-bright);
  transform: translateY(-2px);
}

.landing-btn-small {
  padding: 8px 18px;
  font-size: 13px;
}

.landing-btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px;
}

.landing-btn-block {
  width: 100%;
}

/* BADGES & KICKERS */
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.35);
  color: var(--landing-accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.landing-badge-icon {
  display: flex;
  align-items: center;
  color: var(--landing-accent);
}

.landing-badge-sm {
  padding: 4px 12px;
  font-size: 11px;
}

.landing-kicker {
  color: var(--landing-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

/* ==========================================================================
   HERO SECTION (PANORAMIC FULL HERO BANNER - COMPACT & PROPORTIONAL)
   ========================================================================== */
.landing-hero {
  position: relative;
  z-index: 1;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 38px 46px;
  max-width: var(--landing-max);
  margin: 20px auto 0;
  width: min(calc(100% - 32px), var(--landing-max));
  border-radius: var(--landing-radius-xl);
  border: 1px solid var(--landing-border-strong);
  background: #040b18;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.hero-panoramic-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: #040b18;
}

.hero-panoramic-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.hero-panoramic-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #040b18 0%,
    #040b18 34%,
    rgba(4, 11, 24, 0.75) 50%,
    rgba(4, 11, 24, 0.15) 70%,
    transparent 85%
  );
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 530px;
  position: relative;
  z-index: 2;
}

.landing-hero h1 {
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--landing-text-bright);
  background: linear-gradient(180deg, var(--landing-text-bright) 50%, var(--landing-muted-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle {
  font-size: clamp(14px, 1.35vw, 16px);
  color: var(--landing-muted);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 24px;
  font-weight: 400;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.landing-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--landing-muted-soft);
  font-size: 12px;
  font-weight: 500;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SMARTPHONE DEVICE 3D FRAME */
.smartphone-mockup-wrap {
  position: relative;
  z-index: 2;
  width: 275px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(135deg, #33445c 0%, #152238 40%, #0e1726 70%, #28374d 100%);
  box-shadow: 
    0 30px 90px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 36px rgba(79, 124, 255, 0.3);
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg) rotateZ(-1deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.smartphone-mockup-wrap:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 0 48px rgba(79, 124, 255, 0.45);
}

.phone-inner-screen {
  position: relative;
  width: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #060b13;
  aspect-ratio: 385 / 835;
  border: 2px solid #000;
}

.phone-notch-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000000;
  border-radius: 999px;
  z-index: 10;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ==========================================================================
   SHOWCASE DE PANTALLAS EN ACCIÓN (#como-funciona)
   ========================================================================== */
.landing-demo-section {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  padding: 48px 32px;
  border-radius: var(--landing-radius-xl);
  background: linear-gradient(180deg, var(--landing-surface) 0%, #060c18 100%);
  border: 1px solid var(--landing-border-strong);
  box-shadow: var(--landing-shadow);
  width: min(calc(100% - 32px), var(--landing-max));
  margin-left: auto;
  margin-right: auto;
}

.landing-demo-head {
  text-align: center;
  margin-bottom: 36px;
}

.landing-demo-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--landing-text-bright);
  margin: 6px 0 12px;
  letter-spacing: -0.02em;
}

.landing-demo-head p {
  color: var(--landing-muted);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto;
}

.landing-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.landing-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--landing-surface2);
  border: 1px solid var(--landing-border);
  color: var(--landing-muted);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.landing-tab-btn .tab-svg {
  color: var(--landing-muted);
  transition: color 0.25s ease;
}

.landing-tab-btn:hover {
  color: var(--landing-text-bright);
  border-color: var(--landing-border-strong);
}

.landing-tab-btn:hover .tab-svg {
  color: var(--landing-accent);
}

.landing-tab-btn.active {
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.22) 0%, rgba(59, 91, 219, 0.1) 100%);
  border-color: var(--landing-accent);
  color: var(--landing-text-bright);
  box-shadow: 0 0 24px rgba(79, 124, 255, 0.35);
}

.landing-tab-btn.active .tab-svg {
  color: var(--landing-accent);
}

.landing-tab-viewport {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.landing-tab-panel {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(6px);
}

.landing-tab-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* MACBOOK PRO / NOTEBOOK LAPTOP MOCKUP FRAME */
.laptop-mockup-frame {
  max-width: 980px;
  margin: 0 auto;
}

.laptop-screen-lid {
  position: relative;
  background: #090e17;
  border: 2px solid #283a54;
  border-radius: 16px 16px 4px 4px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.laptop-camera-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
  z-index: 10;
}

.laptop-screen-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.laptop-base-chassis {
  position: relative;
  height: 14px;
  background: linear-gradient(180deg, #2a394f 0%, #151e2e 100%);
  border-radius: 0 0 18px 18px;
  border: 1px solid #3b4e6b;
  margin: 0 -18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.laptop-base-notch {
  width: 70px;
  height: 4px;
  background: #3b4e6b;
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
}

/* MOBILE SHOWCASE IN TABS */
.tab-mobile-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}

.tab-mobile-desc {
  max-width: 440px;
}

.tab-mobile-desc h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--landing-text-bright);
  margin-bottom: 12px;
}

.tab-mobile-desc p {
  color: var(--landing-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tab-mobile-desc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-mobile-desc li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--landing-muted-soft);
  font-size: 14px;
}

.tab-mobile-desc li svg {
  color: var(--landing-positive);
  flex-shrink: 0;
}

/* METRIC CARDS UNDER LAPTOP */
.mockup-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mockup-card {
  background: var(--landing-surface2);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-card.mockup-highlight {
  border-color: var(--landing-accent);
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.12) 0%, var(--landing-surface2) 100%);
}

.mockup-card span {
  font-size: 13px;
  color: var(--landing-muted);
  font-weight: 500;
}

.mockup-card strong {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--landing-text-bright);
}

.mockup-card em {
  font-size: 12px;
  font-style: normal;
  color: var(--landing-muted-soft);
}

.mockup-card em.positive,
strong.positive {
  color: var(--landing-positive);
}

.tab-description {
  margin-top: 22px;
  font-size: 14px;
  color: var(--landing-muted);
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN DE PLAN TRADER SPOTLIGHT (#planes)
   ========================================================================== */
.landing-plans-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  width: min(calc(100% - 32px), var(--landing-max));
  margin: 0 auto;
}

.plans-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.plans-head h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--landing-text-bright);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.plans-head p {
  color: var(--landing-muted);
  font-size: 16px;
}

/* PLAN SPOTLIGHT CARD */
.plan-spotlight-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.plan-card-spotlight {
  position: relative;
  background: linear-gradient(180deg, var(--landing-surface) 0%, #081222 100%);
  border: 1px solid var(--landing-accent);
  border-radius: var(--landing-radius-xl);
  padding: 44px 40px;
  box-shadow: 0 20px 70px rgba(79, 124, 255, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-spotlight-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #5b84ff 0%, #3b5bdb 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(79, 124, 255, 0.45);
  white-space: nowrap;
}

.plan-spotlight-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--landing-border);
  margin-bottom: 30px;
}

.plan-spotlight-title h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--landing-text-bright);
  margin: 0 0 6px;
}

.plan-spotlight-title p {
  color: var(--landing-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.plan-spotlight-price {
  text-align: right;
}

.plan-spotlight-price strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--landing-text-bright);
  font-family: var(--font-title);
}

.plan-spotlight-price span {
  font-size: 13px;
  color: var(--landing-muted);
}

.plan-features-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.plan-features-grid-2col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--landing-muted-soft);
  line-height: 1.5;
}

.plan-check-icon {
  width: 18px;
  height: 18px;
  color: var(--landing-positive);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-spotlight-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.plan-footer-hint {
  font-size: 13px;
  color: var(--landing-muted);
  text-align: center;
}

/* ==========================================================================
   PILARES DE VALOR (#producto)
   ========================================================================== */
.landing-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  width: min(calc(100% - 32px), var(--landing-max));
  margin: 0 auto;
}

.landing-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.landing-section-head h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--landing-text-bright);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.landing-section-head p {
  color: var(--landing-muted);
  font-size: 16px;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.landing-feature-card {
  background: linear-gradient(180deg, var(--landing-surface) 0%, #091222 100%);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--landing-accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--landing-surface2);
  border: 1px solid var(--landing-border);
  margin-bottom: 20px;
  color: var(--landing-accent);
}

.landing-feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--landing-text-bright);
  margin-bottom: 10px;
}

.landing-feature-card p {
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   SEGURIDAD & PRIVACIDAD (#seguridad)
   ========================================================================== */
.landing-security-box {
  background: linear-gradient(135deg, var(--landing-surface) 0%, #060c18 100%);
  border: 1px solid var(--landing-border-strong);
  border-radius: var(--landing-radius-xl);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 48px;
  box-shadow: var(--landing-shadow);
}

.security-visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.security-shield-img {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(79, 124, 255, 0.25);
  border: 1px solid rgba(79, 124, 255, 0.3);
}

.security-copy h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--landing-text-bright);
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}

.security-copy p {
  color: var(--landing-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.security-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.security-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sec-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--landing-surface2);
  border: 1px solid var(--landing-border);
  color: var(--landing-accent);
  flex-shrink: 0;
}

.security-pillar-item strong {
  display: block;
  color: var(--landing-text-bright);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  font-family: var(--font-title);
}

.security-pillar-item span {
  color: var(--landing-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES FAQ (#faq)
   ========================================================================== */
.landing-faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-faq-list details {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.25s ease;
}

.landing-faq-list details[open] {
  border-color: var(--landing-accent);
  background: linear-gradient(180deg, var(--landing-surface) 0%, #081122 100%);
}

.landing-faq-list summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--landing-text-bright);
  cursor: pointer;
  outline: none;
  font-family: var(--font-title);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-faq-list summary::-webkit-details-marker {
  display: none;
}

.landing-faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--landing-accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.landing-faq-list details[open] summary::after {
  content: "−";
}

.landing-faq-list p {
  margin-top: 14px;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ==========================================================================
   BANNER FINAL DE ACCIÓN
   ========================================================================== */
.landing-final-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--landing-surface) 0%, #040915 100%);
  border: 1px solid var(--landing-border-strong);
  border-radius: var(--landing-radius-xl);
  width: min(calc(100% - 32px), var(--landing-max));
  margin: 0 auto 60px;
  box-shadow: var(--landing-shadow);
}

.final-cta-content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--landing-text-bright);
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}

.final-cta-content p {
  color: var(--landing-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   MODAL DE REGISTRO / SOLICITUD ACCESO
   ========================================================================== */
.landing-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(4, 8, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.landing-modal-card {
  position: relative;
  width: 100%;
  max-width: 590px;
  background: var(--landing-surface);
  border: 1px solid var(--landing-border-strong);
  border-radius: var(--landing-radius-lg);
  padding: 28px 30px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.85);
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-modal-overlay.active .landing-modal-card {
  transform: scale(1);
}

.landing-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--landing-surface2);
  border: 1px solid var(--landing-border);
  color: var(--landing-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.landing-modal-close:hover {
  color: var(--landing-text-bright);
  background: var(--landing-surface3);
}

.landing-modal-header {
  margin-bottom: 18px;
}

.landing-modal-header h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--landing-text-bright);
  margin: 6px 0 4px;
}

.landing-modal-header p {
  color: var(--landing-muted);
  font-size: 13.5px;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--landing-text);
  font-family: var(--font-body);
}

.form-group input,
.form-group select {
  background: var(--landing-surface2);
  border: 1px solid var(--landing-border);
  border-radius: 10px;
  color: var(--landing-text);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--landing-accent);
  box-shadow: 0 0 14px rgba(79, 124, 255, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-required {
  color: var(--landing-accent);
}

.form-hint {
  font-size: 11px;
  color: var(--landing-muted);
  line-height: 1.25;
}

.form-footer-note {
  font-size: 11.5px;
  color: var(--landing-muted);
  text-align: center;
  margin-top: 4px;
}

.landing-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--landing-negative);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* SUCCESS VIEW */
.registro-success-view {
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--landing-positive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
}

.registro-success-view h2 {
  font-size: 24px;
  color: var(--landing-text-bright);
  font-weight: 800;
  margin-bottom: 10px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--landing-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-summary-card {
  background: var(--landing-surface2);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.summary-row span {
  color: var(--landing-muted);
}

.summary-row strong {
  color: var(--landing-text-bright);
  font-family: var(--font-title);
}

/* ==========================================================================
   STANDALONE REGISTRO PAGE (/registro)
   ========================================================================== */
.registro-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.registro-page-wrapper .landing-ambient-glow {
  position: fixed;
}

.registro-page-wrapper .landing-modal-card {
  position: relative;
  margin: 0 auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transform: scale(1);
  max-height: calc(100vh - 48px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .landing-hero {
    min-height: auto;
    padding: 44px 24px;
    flex-direction: column;
  }

  .hero-panoramic-gradient {
    background: linear-gradient(
      180deg,
      rgba(4, 11, 24, 0.94) 0%,
      rgba(4, 11, 24, 0.9) 60%,
      rgba(4, 11, 24, 0.75) 100%
    );
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-hero-copy {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .landing-actions {
    justify-content: center;
  }

  .landing-trust-row {
    justify-content: center;
  }

  .landing-security-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .security-pillars-list {
    text-align: left;
  }

  .plan-spotlight-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .plan-spotlight-price {
    text-align: center;
  }

  .plan-features-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .landing-public-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .landing-nav {
    display: none;
  }

  .landing-trust-row {
    flex-direction: column;
    gap: 10px;
  }

  .landing-tabs {
    flex-direction: column;
  }

  .landing-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .tab-mobile-showcase {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .landing-footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .landing-footer-links-col {
    flex-wrap: wrap;
    gap: 28px;
  }
}

/* ==========================================================================
   LANDING PUBLIC FOOTER
   ========================================================================== */
.landing-footer {
  margin-top: 60px;
  padding: 60px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 18, 0.9);
  position: relative;
  z-index: 2;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-footer-brand-col {
  max-width: 380px;
}

.landing-footer-disclaimer {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--landing-muted);
}

.landing-footer-links-col {
  display: flex;
  gap: 48px;
}

.landing-footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-footer-heading {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--landing-text-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.landing-footer-links-group a {
  font-size: 13px;
  color: var(--landing-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-footer-links-group a:hover {
  color: var(--landing-accent);
}

.landing-footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--landing-muted);
}

/* ==========================================================================
   BARRA DE INTEGRACIÓN & COMPATIBILIDAD THINKORSWIM
   ========================================================================== */
.landing-broker-bar-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.landing-broker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(180deg, rgba(19, 33, 60, 0.6) 0%, rgba(12, 21, 39, 0.8) 100%);
  border: 1px solid rgba(79, 124, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.broker-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 100px;
  flex-shrink: 0;
}

.tos-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 10px #00d2ff;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.tos-logo-text {
  font-family: var(--font-title);
  font-size: 13.5px;
  color: var(--landing-text-bright);
  letter-spacing: -0.01em;
}

.tos-logo-text strong {
  font-weight: 800;
  color: #00d2ff;
}

.broker-bar-text {
  font-size: 13.5px;
  color: var(--landing-muted-soft);
  margin: 0;
  text-align: center;
}

.broker-bar-text strong {
  color: var(--landing-text-bright);
}

.broker-bar-tags {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.broker-bar-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--landing-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   TARJETAS DE DOLOR & VALOR DEL TRADER (.landing-pains-grid)
   ========================================================================== */
.landing-pains-section {
  padding-top: 60px;
}

.landing-pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.landing-pain-card {
  background: linear-gradient(180deg, rgba(19, 33, 60, 0.45) 0%, rgba(12, 21, 39, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.landing-pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 124, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.pain-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pain-badge {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--landing-accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
}

.pain-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(79, 124, 255, 0.1);
  border: 1px solid rgba(79, 124, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--landing-accent);
}

.landing-pain-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--landing-text-bright);
  line-height: 1.35;
  margin-bottom: 12px;
}

.landing-pain-card p {
  font-size: 13.5px;
  color: var(--landing-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   WORKFLOW EN 3 PASOS (.landing-steps-grid)
   ========================================================================== */
.landing-steps-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

.landing-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.landing-step-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 33, 60, 0.35) 0%, rgba(8, 16, 32, 0.65) 100%);
  border: 1px solid rgba(79, 124, 255, 0.14);
  border-radius: 20px;
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.landing-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 124, 255, 0.35);
}

.step-card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #4f7cff 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  letter-spacing: -0.03em;
  user-select: none;
  filter: drop-shadow(0 2px 10px rgba(79, 124, 255, 0.35));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.landing-step-card:hover .step-card-num {
  opacity: 1;
  transform: scale(1.05);
}

.step-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.15), rgba(0, 210, 255, 0.08));
  border: 1px solid rgba(79, 124, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--landing-accent-cyan);
  margin-bottom: 20px;
}

.landing-step-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--landing-text-bright);
  margin-bottom: 10px;
}

.landing-step-card p {
  font-size: 13.5px;
  color: var(--landing-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   ONBOARDING 3 PASOS EN PLAN TRADER
   ========================================================================== */
.plan-onboarding-steps {
  margin: 24px 0 16px;
  padding: 16px 20px;
  background: rgba(79, 124, 255, 0.04);
  border: 1px solid rgba(79, 124, 255, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onboarding-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--landing-muted-soft);
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--landing-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 900px) {
  .landing-broker-bar {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }
  
  .broker-bar-tags {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .landing-pains-grid,
  .landing-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

