/*
 Theme Name:   Masterbase Child
 Template:     twentytwentyfive
 Version:      1.0.0
 Description:  Child theme — Plataforma de Inversión Masterbase
 Author:       Masterbase
*/

/* ═══════════════════════════════════════════════
   DESIGN SYSTEM — Variables globales
   ═══════════════════════════════════════════════ */
:root {
  --bg-deep:    #07091A;
  --bg-card:    #0D1025;
  --bg-card2:   #111530;
  --gold:       #C9A355;
  --gold-light: #E2C47A;
  --gold-dim:   #7A5F2A;
  --white:      #F0EDE6;
  --grey:       #8A8FA8;
  --border:     rgba(201,163,85,.18);
  --glow:       rgba(201,163,85,.08);
  --green:      #4CAF87;
  --red:        #E05050;
  --font-d:     'Cormorant Garamond', Georgia, serif;
  --font-b:     'Outfit', sans-serif;
  --nav-h:      70px;
  --max-w:      1200px;
  --pad-x:      4rem;
}

/* ── Reset global ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  /* Eliminar estilos del tema padre */
  --wp--preset--color--base: var(--bg-deep);
  --wp--preset--color--contrast: var(--white);
}

/* Ruido de fondo sutil */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: .35;
}

/* Eliminar estilos WP que interfieren */
.wp-site-blocks, .wp-block-template-part, .entry-content { all: unset; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ════════════════════════════════════════
   BOTONES GLOBALES
   ════════════════════════════════════════ */
.btn-primary {
  background: var(--gold); color: var(--bg-deep); border: none;
  font-family: var(--font-b); font-size: .82rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 2.2rem; cursor: pointer;
  transition: background .25s, transform .2s;
  display: inline-flex; align-items: center; min-height: 44px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--bg-deep); }

.btn-ghost {
  background: transparent; color: var(--grey); border: none;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: color .25s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost::after { content: '→'; }

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
.mb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x); height: var(--nav-h);
  background: linear-gradient(to bottom,rgba(7,9,26,.97),rgba(7,9,26,.7));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-d); font-size: 1.55rem; font-weight: 600;
  letter-spacing: .12em; color: var(--gold); z-index: 10;
}
.nav-logo span { color: var(--white); font-weight: 300; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--grey); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; transition: color .25s;
}
.nav-links a:hover { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.nav-login {
  color: var(--grey); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; transition: color .25s;
}
.nav-login:hover { color: var(--white); }

.nav-register { font-size: .75rem !important; padding: .5rem 1.3rem !important; min-height: 36px !important; }

.nav-user {
  font-size: .8rem; color: var(--gold); letter-spacing: .05em;
}

/* Language switcher integrado al nav */
.nav-right .lang-switcher,
.nav-right .maestro-lang-switcher {
  display: flex; align-items: center; gap: .3rem;
  border: 1px solid var(--border); padding: .3rem .6rem;
  background: transparent; font-family: var(--font-b);
}
.nav-right .lang-switcher button,
.nav-right .maestro-lang-switcher button {
  background: none; border: none; color: var(--grey);
  font-size: .72rem; letter-spacing: .05em; cursor: pointer;
  padding: .1rem .15rem; transition: color .2s;
  font-family: var(--font-b);
}
.nav-right .lang-switcher button:hover,
.nav-right .maestro-lang-switcher button:hover,
.nav-right .lang-switcher button.active,
.nav-right .maestro-lang-switcher button.active { color: var(--gold); }
.nav-right .lang-switcher span,
.nav-right .maestro-lang-switcher span { color: var(--border); font-size: .72rem; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; cursor: pointer;
  background: none; border: none; padding: 10px; z-index: 10;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--gold); transition: transform .3s, opacity .3s; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 800;
  background: rgba(7,9,26,.97); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem; border-top: 1px solid var(--border);
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.nav-drawer.open { display: flex; pointer-events: all; opacity: 1; }
.nav-drawer a {
  color: var(--white); font-size: 1.4rem;
  font-family: var(--font-d); font-weight: 300; letter-spacing: .08em;
  transition: color .2s;
}
.nav-drawer a:hover { color: var(--gold); }

/* ════════════════════════════════════════
   HERO — HOME
   ════════════════════════════════════════ */
.mb-hero {
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%,rgba(201,163,85,.07) 0%,transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 80%,rgba(201,163,85,.04) 0%,transparent 60%),
    var(--bg-deep);
}
.hero-bg::after {
  content: ''; position: absolute; top: -20%; right: 5%;
  width: 1px; height: 140%;
  background: linear-gradient(to bottom,transparent,var(--gold-dim),transparent);
  transform: rotate(-15deg); opacity: .35;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: 5rem var(--pad-x) 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.hero-eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 1rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle { font-size: .95rem; color: var(--grey); line-height: 1.8; max-width: 420px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider */
.hero-slider { position: relative; }
.slider-frame {
  position: relative; border: 1px solid var(--border); background: var(--bg-card);
  overflow: hidden; aspect-ratio: 4/3; touch-action: pan-y; user-select: none;
}
.slider-frame::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3rem; height: 3rem;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); z-index: 3;
}
.slider-frame::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 3rem; height: 3rem;
  border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); z-index: 3;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 2rem;
}
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.slide-1 .slide-bg { background-image: url('images/slide1-trading.jpg'); }
.slide-2 .slide-bg { background-image: url('images/slide2-network.jpg'); }
.slide-3 .slide-bg { background-image: url('images/slide3-coins.jpg'); }
.slide-1 .slide-bg::after { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(to bottom, rgba(5,10,30,.35) 0%, rgba(5,10,30,.6) 100%); }
.slide-2 .slide-bg::after { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(to bottom, rgba(10,8,0,.25) 0%, rgba(10,8,0,.55) 100%); }
.slide-3 .slide-bg::after { content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(to bottom, rgba(5,5,10,.25) 0%, rgba(5,5,10,.55) 100%); }
.slide-label { position:relative; z-index:2; font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); margin-bottom:.4rem; }
.slide-title  { position:relative; z-index:2; font-family:var(--font-d); font-size:1.6rem; font-weight:400; line-height:1.2; }
.slider-dots  { display:flex; gap:.5rem; position:absolute; bottom:-1.6rem; left:0; }
.dot { width:1.8rem; height:2px; background:var(--gold-dim); cursor:pointer; transition:background .3s,width .3s; }
.dot.active { background:var(--gold); width:3rem; }

/* ════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════ */
.mb-stats {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.stats-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--pad-x);
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item {
  padding: 0 2rem; border-right: 1px solid var(--border); text-align: center;
}
.stat-item:first-child { border-left: 1px solid var(--border); }
.stat-num {
  font-family: var(--font-d); font-size: 2.2rem; font-weight: 300;
  color: var(--gold); display: block; line-height: 1; margin-bottom: .3rem;
}
.stat-num sup { font-size: 1rem; vertical-align: super; }
.stat-label { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--grey); }

/* ════════════════════════════════════════
   SECCIONES GENÉRICAS
   ════════════════════════════════════════ */
.mb-section {
  max-width: var(--max-w); margin: 0 auto; padding: 6rem var(--pad-x);
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem;
  flex-wrap: wrap; gap: .5rem;
}
.section-title { font-family: var(--font-d); font-size: 2.2rem; font-weight: 300; }
.section-title em { font-style: italic; color: var(--gold); }
.section-tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ════════════════════════════════════════
   BONOS — HOME
   ════════════════════════════════════════ */
.mb-bonos-wrap {
  background: var(--bg-card); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.mb-bonos-wrap::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle,rgba(201,163,85,.06) 0%,transparent 70%);
  pointer-events: none;
}
.bonos-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.bono-card {
  background: var(--bg-card); padding: 3rem 2.5rem;
  position: relative; overflow: hidden; transition: background .3s;
}
.bono-card:hover { background: var(--bg-card2); }
.bono-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right,transparent,var(--gold),transparent);
  opacity: 0; transition: opacity .3s;
}
.bono-card:hover::before { opacity: 1; }
.bono-card::after {
  content: attr(data-amount);
  position: absolute; bottom: -1rem; right: 1rem;
  font-family: var(--font-d); font-size: 8rem; font-weight: 600;
  color: var(--gold); opacity: .04; line-height: 1;
  pointer-events: none;
}
.bono-tag {
  display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bg-deep); background: var(--gold); padding: .2rem .7rem;
  margin-bottom: 1.5rem; font-weight: 600;
}
.bono-amount {
  font-family: var(--font-d); font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: .5rem;
}
.bono-amount sup { font-size: 40%; vertical-align: super; color: var(--gold-light); }
.bono-title {
  font-family: var(--font-d); font-size: 1.4rem; font-weight: 400;
  color: var(--white); margin-bottom: .75rem; line-height: 1.2;
}
.bono-desc { font-size: .9rem; color: var(--grey); line-height: 1.8; max-width: 340px; }

.steps-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; border: 1px solid var(--border); border-top: none; background: var(--border);
}
.step {
  background: var(--bg-deep); padding: 2rem;
  display: flex; align-items: flex-start; gap: 1.2rem;
}
.step-num {
  font-family: var(--font-d); font-size: 2.5rem; font-weight: 300;
  color: var(--gold-dim); line-height: 1; flex-shrink: 0;
}
.step-text strong { display: block; font-size: .82rem; font-weight: 500; color: var(--white); margin-bottom: .3rem; }
.step-text span   { font-size: .8rem; color: var(--grey); line-height: 1.6; }

.bonos-cta-wrap { text-align: center; margin-top: 3rem; }
.bonos-fine { font-size: .75rem; color: var(--grey); margin-top: 1rem; letter-spacing: .05em; }

/* ════════════════════════════════════════
   INNER PAGES — wrapper de contenido
   ════════════════════════════════════════ */
.mb-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
}
.mb-page-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Shortcodes UM — ajustes visuales dentro del tema */
.um-profile, .um-form, .um-dashboard { font-family: var(--font-b) !important; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.mb-footer {
  border-top: 1px solid var(--border); padding: 2rem var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem 1rem;
}
.footer-legal {
  display: flex; align-items: center; gap: .5rem;
  font-size: .7rem; width: 100%;
  justify-content: center; padding-top: .2rem;
  border-top: 1px solid rgba(255,255,255,.05); margin-top: .2rem;
}
.footer-legal a { color: var(--grey); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--gold); }
.footer-legal-sep { color: rgba(255,255,255,.2); }
.footer-logo { font-family: var(--font-d); font-size: 1.1rem; color: var(--gold); letter-spacing: .12em; }
.footer-copy  { font-size: .72rem; color: var(--grey); letter-spacing: .1em; }

/* ════════════════════════════════════════
   ANIMACIONES
   ════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp .7s ease both; }
.hero-title   { animation: fadeUp .7s ease .1s both; }
.hero-subtitle{ animation: fadeUp .7s ease .2s both; }
.hero-actions { animation: fadeUp .7s ease .3s both; }
.hero-slider  { animation: fadeUp .9s ease .2s both; }

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (960px)
   ════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --pad-x: 1.5rem; }
  html,body,.mb-page,.mb-page-inner{overflow-x:hidden}

  .mb-nav { padding: 0 1.5rem; }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr; gap: 2rem;
    padding: 3rem 1.5rem 4rem; text-align: center;
  }
  .hero-eyebrow  { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-actions  { justify-content: center; }
  .hero-slider   { order: -1; max-width: 100%; }
  .slider-frame  { aspect-ratio: 4/3; }

  .stats-inner { grid-template-columns: repeat(2,1fr); padding: 1rem 1.5rem; }
  .stat-item   { padding: 1rem .5rem; border: none !important; border-bottom: 1px solid var(--border) !important; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border) !important; }

  .bonos-grid { grid-template-columns: 1fr; }
  .bono-card  { padding: 2rem 1.5rem; }
  .steps-row  { grid-template-columns: 1fr; }

  .mb-section { padding: 3.5rem 1.5rem; }
  .mb-page-inner { padding: 0 1.5rem; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (480px)
   ════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-inner   { padding: 2rem 1rem 3rem; }
  .hero-title   { font-size: 2.2rem; }
  .stats-inner  { padding: .5rem 1rem; }
  .stat-num     { font-size: 1.6rem; }
  .bono-amount  { font-size: 3.5rem; }
  .bono-card    { padding: 1.8rem 1.2rem; }
  .step         { padding: 1.2rem; }
  .mb-section   { padding: 2.5rem 1rem; }
  .mb-page-inner{ padding: 0 1rem; }
  .mb-footer    { padding: 1.5rem 1rem; flex-direction: column; align-items: center; text-align: center; }

}

/* ═══════════════════════════════════════════════
   DASHBOARD DEL INVERSOR
   ═══════════════════════════════════════════════ */

.dash-inversor {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Desktop: grid 2 columnas */
@media (min-width: 769px) {
  .dash-inversor {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
  }
  .dash-full { grid-column: 1 / -1; }
  .dash-half { grid-column: span 1; }
}

/* Móvil: todo en 1 columna */
@media (max-width: 768px) {
  .dash-inversor { padding: 1rem; gap: 1rem; }
  .dash-full, .dash-half { grid-column: 1 / -1; }
}

/* Saludo card */
.saludo-card {
  padding: 1.1rem 1.25rem;
}

.db-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

/* ── Saldo hero ── */
.saldo-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
  border-color: rgba(201,163,85,.3);
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.saldo-hero::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(201,163,85,.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.saldo-hero .sh-label {
  font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--grey);
  margin-bottom: .5rem;
}
.saldo-hero .sh-amount {
  font-family: var(--font-d);
  font-size: 3rem; line-height: 1;
  color: var(--green);
}
.saldo-hero .sh-amount sup { font-size: 1.3rem; vertical-align: super; }
.saldo-hero .sh-name { font-size: .8rem; color: var(--grey); margin-top: .5rem; }
.saldo-hero .sh-name strong { color: var(--gold); }
.saldo-hero .sh-nivel {
  display: inline-block; margin-top: .75rem;
  padding: .25rem 1rem;
  border: 1px solid rgba(201,163,85,.35);
  border-radius: 20px;
  font-size: .65rem; color: var(--gold);
  letter-spacing: .12em; text-transform: uppercase;
}

/* ── Botón retiro ── */
.retiro-btn {
  width: 100%; padding: .85rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-b); font-size: .85rem;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none;
}
.retiro-btn.locked {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: #555;
}
.retiro-btn.locked:hover { border-color: rgba(201,163,85,.2); color: var(--grey); }
.retiro-btn.locked .rb-hint { font-size: .7rem; color: #444; margin-left: .2rem; }
.retiro-btn.active {
  background: rgba(201,163,85,.1);
  border: 1px solid rgba(201,163,85,.4);
  color: var(--gold);
}
.retiro-btn.active:hover { background: rgba(201,163,85,.18); }

/* ── Activity Feed ── */
.activity-feed .af-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .85rem;
}
.af-pulse {
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  animation: afpulse 1.6s infinite;
}
@keyframes afpulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.35; transform:scale(.6); }
}
.af-title { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.af-item {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.af-item:last-child { border-bottom: none; }
.af-icon {
  width: 26px; height: 26px;
  background: rgba(201,163,85,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; flex-shrink: 0; margin-top: 2px;
}
.af-text { flex: 1; }
.af-main { font-size: .78rem; color: var(--white); line-height: 1.4; }
.af-main strong { color: var(--gold); }
.af-main .af-amt { color: var(--green); font-weight: 600; }
.af-time { font-size: .63rem; color: #444; margin-top: .1rem; }

/* ── Bot IA ── */
.bot-ia-card {
  background: linear-gradient(135deg, #0a0c1e, #0f1228);
  border-color: rgba(201,163,85,.25);
}
.bot-trial-msg {
  display: flex; align-items: flex-start; gap: .5rem;
  background: rgba(201,163,85,.06);
  border: 1px solid rgba(201,163,85,.15);
  border-radius: 8px;
  padding: .7rem .85rem;
  margin-bottom: .85rem;
  font-size: .75rem; color: var(--gold);
  line-height: 1.45;
}
.bot-trial-msg .bti { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.bot-uses-bar { display: flex; gap: .35rem; margin-bottom: .85rem; }
.bot-use-dot {
  flex: 1; height: 5px; border-radius: 3px;
  background: var(--green); transition: background .3s;
}
.bot-use-dot.used { background: rgba(255,255,255,.08); }
.bot-btn {
  width: 100%; padding: .9rem;
  background: linear-gradient(135deg, rgba(201,163,85,.15), rgba(201,163,85,.07));
  border: 1px solid rgba(201,163,85,.35);
  border-radius: 10px;
  color: var(--gold);
  font-family: var(--font-b); font-size: .85rem; font-weight: 500;
  cursor: pointer; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all .2s; text-decoration: none;
}
.bot-btn:hover { background: linear-gradient(135deg, rgba(201,163,85,.22), rgba(201,163,85,.12)); }
.bot-btn.locked {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: #555;
}

/* ── Gráfico placeholder ── */
.chart-placeholder {
  background: var(--bg-deep);
  border: 1px dashed rgba(201,163,85,.2);
  border-radius: 10px;
  height: 120px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .4rem; color: #444; font-size: .72rem;
}
@media (min-width: 640px) { .chart-placeholder { height: 200px; } }
.chart-placeholder .cp-icon { font-size: 1.6rem; opacity: .3; }
.db-section-label {
  font-size: .63rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey);
  margin-bottom: .75rem;
}

/* ── Historial dark theme ── */
.hist-tabla-dark { width: 100%; border-collapse: collapse; }
.hist-tabla-dark th {
  background: var(--bg-deep); color: var(--grey);
  padding: .6rem .85rem; text-align: left;
  font-size: .63rem; text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid var(--border); font-weight: 400;
}
.hist-tabla-dark td { padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .8rem; }
.hist-tabla-dark tr:last-child td { border-bottom: none; }
.hist-fecha-dark { color: #555; font-size: .72rem; }
.hist-pos { color: var(--green); font-weight: 600; }
.hist-neg { color: var(--red);   font-weight: 600; }

.hist-cards-dark { display: none; }
.hc-card {
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px; padding: .75rem;
  margin-bottom: .4rem;
  display: flex; justify-content: space-between; align-items: center;
}
.hc-concepto { font-size: .8rem; color: var(--white); margin-bottom: .2rem; }
.hc-fecha    { font-size: .65rem; color: #444; }

@media (max-width: 640px) {
  .hist-tabla-dark { display: none; }
  .hist-cards-dark { display: block; }
}

.hist-ver-mas {
  display: block; text-align: center;
  margin-top: .75rem; padding: .65rem;
  border: 1px solid rgba(201,163,85,.2);
  border-radius: 8px;
  color: var(--gold); font-size: .78rem;
  text-decoration: none; transition: all .2s;
}
.hist-ver-mas:hover { background: rgba(201,163,85,.07); }

/* ── Link referido ── */
.ref-url-dark {
  background: var(--bg-deep);
  border: 1px solid rgba(201,163,85,.2);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .75rem; color: var(--gold);
  margin-bottom: .6rem; word-break: break-all;
}

/* ═══════════════════════════════════════════════
   PÁGINA DE NIVELES
   ═══════════════════════════════════════════════ */
.niveles-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem var(--pad-x);
}
@media (max-width: 640px) { .niveles-page { padding: 1.25rem 1rem; } }

.niveles-page .np-title {
  font-family: var(--font-d);
  font-size: 2rem; color: var(--gold);
  text-align: center; margin-bottom: .4rem; letter-spacing: .04em;
}
.niveles-page .np-sub {
  text-align: center; font-size: .8rem; color: var(--grey); margin-bottom: 2rem;
}

.nivel-card-pg {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 1.1rem 1.2rem;
  margin-bottom: .75rem;
  display: flex; align-items: flex-start; gap: 1rem;
  position: relative; overflow: hidden; transition: border-color .2s;
}
.nivel-card-pg.nivel-current {
  border-color: rgba(201,163,85,.45);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
}
.nivel-card-pg.nivel-locked { opacity: .52; }
.nivel-card-pg.nivel-current::after {
  content: '\2736 TU NIVEL';
  position: absolute; top: .7rem; right: .9rem;
  font-size: .56rem; letter-spacing: .14em; color: var(--gold);
  background: rgba(201,163,85,.1);
  border: 1px solid rgba(201,163,85,.2);
  padding: .18rem .6rem; border-radius: 20px;
}
.nivel-ico-pg { font-size: 1.6rem; flex-shrink: 0; margin-top: .1rem; }
.nivel-body-pg { flex: 1; min-width: 0; }
.nivel-name-pg {
  font-family: var(--font-d); font-size: 1.1rem; font-weight: 600;
  margin-bottom: .55rem; color: var(--white);
}
.nivel-card-pg.nivel-current .nivel-name-pg { color: var(--gold); }
.nivel-card-pg.nivel-locked  .nivel-name-pg { color: #6A6F88; }

.nivel-perks-pg { list-style: none; padding: 0; }
.nivel-perks-pg li {
  font-size: .75rem; padding: .22rem 0;
  display: flex; align-items: flex-start; gap: .45rem;
  border-bottom: 1px solid rgba(255,255,255,.03); line-height: 1.4;
}
.nivel-perks-pg li:last-child { border-bottom: none; }
.np-ico { font-size: .7rem; width: 14px; text-align: center; flex-shrink: 0; margin-top: 2px; }
.np-active    { color: #D0CCBF; }
.np-highlight { color: var(--gold); font-weight: 500; }
.np-locked    { color: #383C55; }

.nivel-lock-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .55rem; font-size: .63rem; color: #444;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 20px; padding: .2rem .65rem;
}
.mc-symbol { font-weight: 700; }
.mc-red    { color: #EB001B; }
.mc-yellow { color: #F79E1B; }

/* ═══════════════════════════════════════════════
   HOME — Polish final
   ═══════════════════════════════════════════════ */
.btn-primary { transition: background .25s, transform .2s, box-shadow .2s; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,163,85,.2);
}
.btn-ghost:hover {
  background: rgba(201,163,85,.08);
  transform: translateY(-2px);
}

.bono-card { transition: transform .25s, box-shadow .25s, background .3s; }
.bono-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201,163,85,.12);
}

.step-num { transition: background .2s, color .2s; }
.step:hover .step-num { background: var(--gold); color: var(--bg-deep); }

.slide { transition: opacity .5s ease, transform .5s ease; }

@media (max-width: 390px) {
  .hero-title   { font-size: clamp(2rem, 8vw, 3rem); }
  .bono-amount  { font-size: clamp(2.5rem, 12vw, 4rem); }
  .stat-num     { font-size: clamp(1.5rem, 7vw, 2.2rem); }
}

/* ═══════════════════════════════════════════════
   PÁGINA DE REGISTRO — Banner bonos + UM form
   ═══════════════════════════════════════════════ */

/* Wrapper de la página con padding correcto */
.mb-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
}
.mb-page-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Banner bonos en registro ── */
.reg-bonos-banner {
  margin-bottom: 2.5rem;
}
.reg-bonos-header {
  text-align: center;
  margin-bottom: 1.25rem;
}
.rbh-eyebrow {
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .4rem;
}
.rbh-title {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300; color: var(--white); line-height: 1.2;
}
.rbh-title em { font-style: italic; color: var(--gold); }
.reg-bonos-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .85rem; margin-bottom: 1rem;
}
.reg-bono-card {
  background: var(--bg-card);
  border: 1px solid rgba(201,163,85,.25);
  border-radius: 10px; padding: 1.25rem;
  text-align: center; position: relative; overflow: hidden;
}
.reg-bono-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.reg-bono-tag {
  font-size: .6rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--bg-deep); background: var(--gold);
  padding: .15rem .6rem; display: inline-block;
  margin-bottom: .65rem; font-weight: 600;
}
.reg-bono-amount {
  font-family: var(--font-d); font-size: 2.6rem;
  font-weight: 300; color: var(--green);
  line-height: 1; margin-bottom: .4rem;
}
.reg-bono-amount sup { font-size: 1rem; vertical-align: super; }
.reg-bono-desc { font-size: .75rem; color: var(--grey); line-height: 1.5; }
.reg-bonos-fine {
  text-align: center; font-size: .72rem; color: var(--grey);
  letter-spacing: .05em;
  border-top: 1px solid rgba(201,163,85,.1);
  padding-top: .85rem; margin-top: .5rem;
}
@media (max-width: 480px) {
  .reg-bonos-cards { grid-template-columns: 1fr; }
  .reg-bono-amount { font-size: 2rem; }
}

/* ── Ultimate Member — Dark Theme ── */
.um-register,
.um-login {
  font-family: var(--font-b) !important;
}

/* Inputs */
.um .um-form-field,
.um input[type="text"],
.um input[type="email"],
.um input[type="password"],
.um input[type="tel"],
.um select,
.um textarea {
  background: var(--bg-card) !important;
  border: 1px solid rgba(201,163,85,.2) !important;
  border-radius: 6px !important;
  color: var(--white) !important;
  font-family: var(--font-b) !important;
  font-size: .9rem !important;
  padding: .65rem .9rem !important;
  transition: border-color .2s !important;
  box-shadow: none !important;
}
.um .um-form-field:focus,
.um input[type="text"]:focus,
.um input[type="email"]:focus,
.um input[type="password"]:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(201,163,85,.1) !important;
}
.um .um-form-field::placeholder { color: #555 !important; }

/* Labels */
.um .um-field-label label,
.um label {
  color: var(--grey) !important;
  font-size: .78rem !important;
  letter-spacing: .05em !important;
  font-family: var(--font-b) !important;
  font-weight: 400 !important;
}

/* Botón submit principal */
.um .um-button:not(.um-alt) {
  background: var(--gold) !important;
  color: var(--bg-deep) !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--font-b) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: .85rem 2rem !important;
  min-height: 44px !important;
  cursor: pointer !important;
  transition: background .2s, transform .15s !important;
  width: 100% !important;
}
.um .um-button:not(.um-alt):hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px) !important;
}

/* Botón "Iniciar sesión" dentro del form — OCULTAR */
.um-register .um-button.um-alt,
.um-register .um-right.um-half {
  display: none !important;
}

/* Ajustar layout cuando solo queda 1 botón */
.um-register .um-left.um-half {
  width: 100% !important;
  float: none !important;
}

/* Fondo de las filas del form */
.um .um-row { margin-bottom: 0 !important; }
.um .um-field { margin-bottom: 1rem !important; }

/* Links dentro de UM */
.um a { color: var(--gold) !important; }
.um a:hover { color: var(--gold-light) !important; }

/* Eliminar fondo blanco del wrapper UM */
.um.um-register,
.um.um-login { background: transparent !important; }

/* Notificaciones / errores UM */
.um-notice { border-radius: 6px !important; }
.um-field-error input { border-color: var(--red) !important; }
.um .um-field-error { color: var(--red) !important; font-size: .75rem !important; }

/* Ocultar campo "Referido por" — el ref se captura automáticamente por cookie */
.um .um-field-ref { display: none !important; }

/* ══ Dashboard inversor — override del inner wrapper ══
   La sección de registro fija .mb-page-inner a 560px globalmente;
   aquí lo revertimos solo para el dashboard (body.page-id-43) */
.page-id-43 .mb-page-inner {
  max-width: 100% !important;
  padding: 0 !important;
}
.page-id-43 .mb-page {
  padding-top: calc(var(--nav-h) + 1.5rem);
}

/* ══════════════════════════════════════════════════
   INSTRUCCIONES REFERIDO — /como-ganar/
══════════════════════════════════════════════════ */
.inst-wrap {
  background: var(--bg);
  color: var(--light);
  font-family: var(--font-b);
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* Hero */
.inst-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,163,85,.12) 0%, transparent 70%);
}
.inst-hero-tag {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.inst-hero-title {
  font-family: var(--font-d);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--light);
  margin: 0 0 1.6rem;
}
.inst-hero-title em { color: var(--gold); font-style: normal; }
.inst-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--grey);
  max-width: 480px;
  line-height: 1.6;
  margin: 0 0 2.4rem;
}
.inst-hero-btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: .75rem 2rem;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.inst-hero-btn:hover { background: var(--gold); color: var(--bg); }

/* Slider */
.inst-slider-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}
.inst-slider { position: relative; min-height: 280px; }
.inst-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: instFadeIn .4s ease;
}
.inst-slide.active { display: flex; }
@keyframes instFadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.inst-step-num {
  font-family: var(--font-d);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(201,163,85,.15);
  line-height: 1;
  margin-bottom: -.5rem;
}
.inst-step-icon { font-size: 2.8rem; margin-bottom: .8rem; }
.inst-step-title {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold);
  margin: 0 0 .9rem;
}
.inst-step-desc {
  font-size: .95rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 440px;
}

/* Flechas */
.inst-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(201,163,85,.3);
  color: var(--gold);
  font-size: 1.8rem;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.inst-arrow:hover { border-color: var(--gold); background: rgba(201,163,85,.1); }
.inst-prev { left: 0; }
.inst-next { right: 0; }

/* Dots */
.inst-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.inst-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(201,163,85,.25);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.inst-dot.active { background: var(--gold); transform: scale(1.3); }

/* CTA final */
.inst-cta {
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  border-top: 1px solid rgba(201,163,85,.12);
}
.inst-cta-title {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--light);
  margin: 0 0 1.8rem;
}
.inst-cta-label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .5rem;
}
.inst-link-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,163,85,.25);
  padding: .8rem 1rem;
  max-width: 520px;
  margin: 0 auto 1.8rem;
  flex-wrap: wrap;
}
.inst-link-text {
  font-size: .8rem;
  color: var(--grey);
  word-break: break-all;
  flex: 1;
  min-width: 180px;
}
.inst-copy-btn {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: .45rem 1.1rem;
  font-size: .8rem;
  font-family: var(--font-b);
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.inst-copy-btn:hover { opacity: .85; }

.inst-main-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 1rem 2.5rem;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-b);
  margin-bottom: 2rem;
  transition: opacity .2s;
}
.inst-main-cta:hover { opacity: .85; }

.inst-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.inst-share-label {
  font-size: .75rem;
  color: var(--grey);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.inst-share-btn {
  display: inline-block;
  padding: .55rem 1.2rem;
  font-size: .82rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--light);
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.inst-share-btn:hover { border-color: var(--gold); }
.inst-wa:hover  { background: rgba(37,211,102,.1);  border-color: #25d366; }
.inst-tg:hover  { background: rgba(0,136,204,.1);   border-color: #0088cc; }

.inst-back-link {
  display: block;
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--grey);
  text-decoration: none;
}
.inst-back-link:hover { color: var(--gold); }

/* Override inner wrapper para /como-ganar/ (igual que dashboard) */
.page-id-66 .mb-page-inner { max-width: 100% !important; padding: 0 !important; }
.page-id-66 .mb-page { padding-top: 0 !important; }
