:root{
  --bg0:#070A12;
  --bg1:#0B1020;
  --card:#0F172A;
  --text:#E9EEF9;
  --muted:#A9B4CC;
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.16);

  --brand:#4F8BFF;
  --brand2:#23D5AB;
  --accent:#FFB020;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(79,139,255,.22), transparent 55%),
    radial-gradient(900px 650px at 85% 0%, rgba(35,213,171,.18), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: inherit; text-decoration: none; }

.muted{ color: var(--muted); }

/* NAV */
.nav-blur{
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.65);
  border-bottom: 1px solid var(--stroke);
}
.navbar-brand .brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,139,255,.9), rgba(35,213,171,.85));
  color: #071021;
  font-weight: 900;
  letter-spacing: .5px;
}
.brand-text{ font-weight: 800; }

/* HERO */
.hero{
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}
.hero-glow{
  position:absolute;
  inset: -40% -30% auto -30%;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(255,176,32,.22), transparent 60%);
  filter: blur(24px);
  pointer-events:none;
}
.display-title{
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}
.lead-soft{
  color: rgba(233,238,249,.86);
  max-width: 58ch;
}

.badge-soft{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,249,.92);
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.badge-soft i{ color: var(--accent); }

.btn-pill{ border-radius: 999px; }

.btn-primary{
  background: linear-gradient(135deg, rgba(79,139,255,.95), rgba(35,213,171,.85));
  border: none;
  box-shadow: 0 12px 40px rgba(79,139,255,.18);
}
.btn-primary:hover{
  filter: brightness(1.05);
}

.btn-outline-light{
  border-color: rgba(255,255,255,.22);
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.stat-card{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 12px 14px;
}
.stat-label{
  color: var(--muted);
  font-size: .85rem;
}
.stat-value{
  margin-top: 3px;
  font-weight: 800;
}

/* CARDS */
.card-glass{
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04) !important;
  box-shadow: var(--shadow);
}
.card-solid{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(15,23,42,.72));
  box-shadow: var(--shadow);
}

.hero-card{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.hero-card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding: 18px 18px 0;
}
.hero-card-title{
  font-weight: 900;
  font-size: 1.15rem;
}
.kicker{
  color: var(--muted);
  font-size: .85rem;
}
.chip{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,249,.9);
  font-size: .85rem;
}
.hero-card-body{
  padding: 14px 18px 18px;
}
.hero-card-footer{
  padding: 12px 18px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.link-soft{
  color: rgba(233,238,249,.92);
  border-bottom: 1px dashed rgba(233,238,249,.35);
}
.link-soft:hover{
  border-bottom-color: rgba(233,238,249,.65);
}

.soft-hr{
  border-color: rgba(255,255,255,.10);
  opacity: 1;
}

.mini-row{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(233,238,249,.92);
}
.mini-row i{
  margin-top: 2px;
  color: var(--brand2);
}

/* SECTION */
.section{ padding: 56px 0; }

.section-alt{
  background: linear-gradient(180deg, rgba(242,237,237,1), rgba(216,208,208,1));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.section-head{ margin-bottom: 22px; }

.section-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-subtitle{
  color: rgba(233,238,249,.82);
  max-width: 78ch;
  margin: 0;
}

/* CALLOUT / QUOTE */
.callout{
  display:flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.callout-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(255,176,32,.18), rgba(79,139,255,.16));
  border: 1px solid rgba(255,255,255,.10);
}
.callout-icon i{
  color: var(--accent);
  font-size: 1.1rem;
}
.callout-title{ font-weight: 800; }
.callout-text{
  color: rgba(233,238,249,.84);
  font-size: .95rem;
}

.quote-block{
  padding: 18px 20px;
  border-radius: 18px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,249,.92);
  font-style: italic;
}

/* TABLE */
.table-darkish{
  --bs-table-bg: rgba(255,255,255,.02);
  --bs-table-color: rgba(233,238,249,.90);
  --bs-table-border-color: rgba(255,255,255,.10);
}
.table-darkish thead th{
  color: rgba(233,238,249,.92);
  font-weight: 800;
  border-bottom-color: rgba(255,255,255,.14);
}

/* Pills + mini cards */
.pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(233,238,249,.9);
  font-size: .9rem;
}

.mini-card{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
}
.mini-card-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(35,213,171,.10);
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}
.mini-card-icon i{
  color: rgba(35,213,171,.95);
  font-size: 1.2rem;
}
.mini-card-title{
  font-weight: 900;
  margin-bottom: 6px;
}
.mini-card-text{
  color: rgba(233,238,249,.80);
}

/* Embed shell */
.embed-shell{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.embed-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.embed-title{
  display:flex;
  gap: 10px;
  align-items:center;
  font-weight: 900;
}
.embed-title i{ color: var(--brand2); }
.embed-frame{ background: rgba(0,0,0,.12); }
.embed-foot{
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(7,10,18,.65);
}
.footer-title{ font-weight: 900; }

/* Responsive */
@media (max-width: 992px){
  .stats{ grid-template-columns: 1fr; }
}

/* Light theme */
body.theme-light{
  --bg0:#F7FAFF;
  --bg1:#EEF3FF;
  --card:#FFFFFF;
  --text:#0B1020;
  --muted:#44506B;
  --stroke: rgba(11,16,32,.10);
  --stroke2: rgba(11,16,32,.16);
  --shadow: 0 18px 50px rgba(11,16,32,.12);
}
body.theme-light .nav-blur{
  background: rgba(247,250,255,.78);
}
body.theme-light .btn-outline-light{
  border-color: rgba(11,16,32,.18);
  color: #0B1020;
}
body.theme-light .table-darkish{
  --bs-table-bg: rgba(11,16,32,.02);
  --bs-table-color: rgba(11,16,32,.92);
  --bs-table-border-color: rgba(11,16,32,.10);
}
body.theme-light .quote-block{
  background: rgba(11,16,32,.03);
  color: #1F2937;
}
body.theme-light .muted{
  color: #6B7280;
}

/* ===== EMBED ===== */
.embed-tall{
  width: 100%;
  max-width: 1200px;
  margin: auto;
  height: 2750px;
}
.embed-tall iframe{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ===================================== */
/* DASHBOARD EN FONDO CLARO */
/* ===================================== */

#dashboard{
  background: linear-gradient(180deg, #F4F6FA, #ECEFF4);
  color: #1F2937;
}

#dashboard > .container .section-title{
  color: #111827;
}

#dashboard > .container .section-subtitle{
  color: #4B5563;
}

#dashboard > .container .muted{
  color: #6B7280;
}

/* Mantener encabezado del embed oscuro */
#dashboard .embed-top{
  background: #0B1020 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

#dashboard .embed-title,
#dashboard .embed-title span{
  color: rgba(233,238,249,.95) !important;
}

#dashboard .embed-title i{
  color: var(--brand2) !important;
}

#dashboard .embed-top .btn-outline-light{
  border-color: rgba(255,255,255,.22) !important;
  color: rgba(233,238,249,.92) !important;
}
#dashboard .embed-top .btn-outline-light:hover{
  background: rgba(255,255,255,.08) !important;
}

#dashboard .embed-shell{
  background: #0F172A !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.45) !important;
}

/* ===================================== */
/* PREGUNTA EN FONDO BLANCO */
/* ===================================== */

#pregunta{
  background: #FFFFFF !important;
  color: #1F2937;
}

#pregunta .section-title{
  color: #111827 !important;
}

#pregunta .section-subtitle{
  color: #4B5563 !important;
}

#pregunta p,
#pregunta .card-glass p,
#pregunta .card-solid p,
#pregunta .h4,
#pregunta .h5{
  color: #1F2937 !important;
}

#pregunta .muted{
  color: #6B7280 !important;
}

/* Tarjetas claras dentro de pregunta */
#pregunta .card-glass,
#pregunta .card-solid{
  background: #FFFFFF !important;
  border: 1px solid rgba(11,16,32,.10) !important;
  box-shadow: 0 18px 50px rgba(11,16,32,.10) !important;
}

#pregunta .card-glass *,
#pregunta .card-solid *{
  color: #1F2937 !important;
}

/* ===================================== */
/* CIERRE CON MISMO CLIMA VISUAL DEL HERO */
/* ===================================== */

#cierre{
  position: relative;
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(79,139,255,.22), transparent 55%),
    radial-gradient(900px 650px at 85% 0%, rgba(35,213,171,.18), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  overflow: hidden;
}

#cierre .section-title{
  color: #ffffff !important;
}

#cierre .section-subtitle{
  color: rgba(233,238,249,.82) !important;
}

#cierre .muted{
  color: var(--muted) !important;
}

#cierre .card-glass{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--stroke) !important;
  box-shadow: var(--shadow) !important;
}

#cierre .card-solid{
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(15,23,42,.72)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: var(--shadow) !important;
}

#cierre p,
#cierre h2,
#cierre h3{
  color: rgba(233,238,249,.95);
}