/* ============================================================
   styles-home2.css  —  BacktestingMarket · Home v2
   Dark mode: body.dark-mode (clase custom, no data-bs-theme)
   ============================================================ */

/* ── UTILIDADES ── */
.btmh-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #0d6efd;
  margin-bottom: 6px;
}
.btmh-h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0; color: #212529; }
body.dark-mode .btmh-h2 { color: #e8e6e0; }

/* ============================================================
   LOGO BAND
   ============================================================ */
.btmh-logoband {
  padding: 20px 0;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
body.dark-mode .btmh-logoband {
  background: #1a1d20;
  border-bottom-color: #2d3035;
}

.btmh-logoband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.btmh-logoband__left  { flex-shrink: 0; }
.btmh-logoband__right { display: flex; align-items: center; gap: 24px; }
.btmh-logoband__img   { max-width: 200px; width: 100%; }

.btmh-logoband__logo-wrap {
  position: relative;
  display: inline-block;
}
.btmh-v2-badge {
  position: absolute;
  top: 4px; right: -28px;
  font-size: 10px; font-weight: 700;
  background: #0d6efd; color: #fff;
  padding: 2px 6px; border-radius: 5px;
  letter-spacing: 0.5px;
}

/* Ticker */
.btmh-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
}
body.dark-mode .btmh-ticker {
  background: #111820;
  border-color: #2d3540;
}
.btmh-ticker__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  gap: 1px;
}
.btmh-ticker__sep {
  width: 1px; align-self: stretch;
  background: #dee2e6;
}
body.dark-mode .btmh-ticker__sep { background: #2d3540; }

.btmh-ticker__sym {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #6c757d;
}
body.dark-mode .btmh-ticker__sym { color: #6c8090; }

.btmh-ticker__val {
  font-size: 14px; font-weight: 600;
  color: #212529; line-height: 1.2;
}
body.dark-mode .btmh-ticker__val { color: #e8e6e0; }

.btmh-ticker__chg {
  font-size: 11px; font-weight: 500;
}
.btmh-ticker__item--up   .btmh-ticker__chg { color: #198754; }
.btmh-ticker__item--down .btmh-ticker__chg { color: #dc3545; }

.btmh-ticker__badge {
  font-size: 9px; font-weight: 700;
  background: rgba(13,110,253,0.12); color: #0d6efd;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Mini bar chart */
.btmh-minibar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  padding: 4px 0;
}
.btmh-minibar__bar {
  width: 8px; border-radius: 3px 3px 0 0;
  background: rgba(13,110,253,0.55);
  transition: background 0.2s;
}
.btmh-minibar__bar--loss { background: rgba(220,53,69,0.45); }
body.dark-mode .btmh-minibar__bar      { background: rgba(77,182,228,0.6); }
body.dark-mode .btmh-minibar__bar--loss{ background: rgba(220,53,69,0.5); }

/* ============================================================
   HERO
   light: fondo blanco, texto oscuro
   dark:  fondo azul marino oscuro, texto blanco
   ============================================================ */
.btmh-hero {
  background: #fff;
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid #dee2e6;
}
body.dark-mode .btmh-hero {
  background: #0b1a27;
  border-bottom-color: rgba(255,255,255,0.07);
}
.btmh-hero__content { max-width: 640px; }

.btmh-hero__pre {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #0d6efd; margin-bottom: 18px;
}
body.dark-mode .btmh-hero__pre { color: #4db6e4; }

.btmh-hero__title {
  font-size: 3rem; font-weight: 700;
  line-height: 1.12; color: #212529; margin-bottom: 18px;
}
body.dark-mode .btmh-hero__title { color: #fff; }

.btmh-hero__sub {
  font-size: 1.05rem; color: #6c757d;
  line-height: 1.75; margin-bottom: 30px; max-width: 520px;
}
body.dark-mode .btmh-hero__sub { color: rgba(255,255,255,0.5); }

.btmh-hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btmh-hero__link {
  font-size: 14px; color: #6c757d;
  text-decoration: none; transition: color 0.15s;
}
.btmh-hero__link:hover { color: #212529; }
body.dark-mode .btmh-hero__link { color: rgba(255,255,255,0.45); }
body.dark-mode .btmh-hero__link:hover { color: #fff; }

@media (max-width: 768px) {
  .btmh-hero { padding: 3rem 0; }
  .btmh-hero__title { font-size: 2.1rem; }
}

/* ============================================================
   HERRAMIENTAS
   ============================================================ */
.btmh-tools { background: #f8f9fa; border-bottom: 1px solid #dee2e6; }
body.dark-mode .btmh-tools { background: #141a1f; border-bottom-color: #2d3035; }
body.dark-mode .btmh-tools .btmh-label { color: #4db6e4; }

.btmh-card {
  background: #fff; border: 1px solid #dee2e6;
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btmh-card:hover { border-color: #0d6efd; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.09); }
body.dark-mode .btmh-card { background: #1e2530; border-color: #2d3540; }
body.dark-mode .btmh-card:hover { border-color: #0d6efd; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.btmh-card--hub       { border-color: rgba(13,110,253,0.3); }
.btmh-card--hub:hover { border-color: #0d6efd; }

.btmh-card__img {
  height: 160px; overflow: hidden; background: #e9ecef;
  display: flex; align-items: center; justify-content: center;
}
.btmh-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.btmh-card:hover .btmh-card__img img { transform: scale(1.05); }
body.dark-mode .btmh-card__img { background: #111820; }

.btmh-card__img--hub { background: #061220 !important; padding: 14px; align-items: stretch; }
.btmh-hub-feed { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.btmh-hub-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 8px 10px; font-size: 11px; color: rgba(255,255,255,0.5);
}
.btmh-hub-dot { width: 6px; height: 6px; border-radius: 50%; background: #4db6e4; flex-shrink: 0; }

.btmh-card__body { padding: 18px 18px 10px; flex: 1; }
.btmh-card__name { font-size: 15px; font-weight: 600; color: #212529; margin-bottom: 7px; }
.btmh-card__desc { font-size: 12.5px; color: #6c757d; line-height: 1.6; margin: 0; }
body.dark-mode .btmh-card__name { color: #e8e6e0; }
body.dark-mode .btmh-card__desc { color: #9a9890; }

.btmh-card__foot { padding: 12px 18px 18px; }
.btmh-card__cta  { display: block; font-size: 13px; font-weight: 500; color: #0d6efd; text-decoration: none; }
.btmh-card__cta:hover { color: #0b5ed7; }
.btmh-card__lock { display: block; font-size: 12px; color: #adb5bd; }

.btmh-new {
  font-size: 9px; font-weight: 700; background: #0d6efd; color: #fff;
  padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 4px;
}

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.btmh-about { background: #fff; border-bottom: 1px solid #dee2e6; }
body.dark-mode .btmh-about { background: #141a1f; border-bottom-color: #2d3035; }
.btmh-about__text { font-size: 14px; color: #6c757d; line-height: 1.75; margin-bottom: 12px; }
body.dark-mode .btmh-about__text { color: #9a9890; }

/* ============================================================
   SERVICIOS
   light: fondo gris suave
   dark:  fondo azul marino
   ============================================================ */
.btmh-services { background: #f1f3f5; border-top: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6; }
body.dark-mode .btmh-services { background: #0b1a27; border-color: rgba(255,255,255,0.06); }

.btmh-services .btmh-label { color: #0d6efd; }
body.dark-mode .btmh-services .btmh-label { color: rgba(255,255,255,0.35); }

.btmh-srv {
  background: #fff; border: 1px solid #dee2e6;
  border-radius: 12px; padding: 28px; height: 100%;
}
body.dark-mode .btmh-srv { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.07); }

.btmh-srv__num  { font-size: 40px; font-weight: 700; color: rgba(13,110,253,0.15); line-height: 1; margin-bottom: 14px; }
body.dark-mode .btmh-srv__num { color: rgba(77,182,228,0.15); }
.btmh-srv__name { font-size: 15px; font-weight: 600; color: #212529; margin-bottom: 10px; }
body.dark-mode .btmh-srv__name { color: #fff; }
.btmh-srv__desc { font-size: 13px; color: #6c757d; line-height: 1.65; margin: 0; }
body.dark-mode .btmh-srv__desc { color: rgba(255,255,255,0.42); }
.btmh-srv__fine { font-size: 11px; color: #adb5bd; font-style: italic; margin-top: 12px; margin-bottom: 0; }
body.dark-mode .btmh-srv__fine { color: rgba(255,255,255,0.2); }

/* ============================================================
   PLANES
   ============================================================ */
.btmh-plans { background: #f8f9fa; border-bottom: 1px solid #dee2e6; }
body.dark-mode .btmh-plans { background: #141a1f; border-bottom-color: #2d3035; }
.btmh-plans__sub { font-size: 14px; color: #6c757d; margin: 8px 0 0; }
body.dark-mode .btmh-plans__sub { color: #9a9890; }

.btmh-plan {
  background: #fff; border: 1px solid #dee2e6;
  border-radius: 14px; padding: 28px; position: relative; overflow: hidden;
}
body.dark-mode .btmh-plan { background: #1e2530; border-color: #2d3540; }
.btmh-plan--featured { border: 2px solid #0d6efd !important; }

.btmh-plan__ribbon {
  position: absolute; top: 18px; right: -30px;
  background: #0d6efd; color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 40px; transform: rotate(40deg);
}
.btmh-plan__label  { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #6c757d; margin-bottom: 10px; }
body.dark-mode .btmh-plan__label { color: #9a9890; }
.btmh-plan__price  { font-size: 2.2rem; font-weight: 700; color: #212529; line-height: 1; margin-bottom: 8px; }
body.dark-mode .btmh-plan__price { color: #e8e6e0; }
.btmh-plan__per    { font-size: 0.85rem; font-weight: 400; color: #6c757d; margin-left: 4px; }
.btmh-plan__badge  { display: inline-block; font-size: 11px; font-weight: 600; background: rgba(25,135,84,0.12); color: #198754; padding: 3px 10px; border-radius: 20px; margin-bottom: 6px; }
.btmh-plan__equiv  { font-size: 12px; color: #6c757d; margin-bottom: 18px; }
body.dark-mode .btmh-plan__equiv { color: #9a9890; }

.btmh-plan__list { list-style: none; padding: 0; margin: 16px 0 0; }
.btmh-plan__list li {
  font-size: 13.5px; color: #495057; padding: 7px 0;
  border-bottom: 1px solid #dee2e6; display: flex; align-items: center; gap: 8px;
}
body.dark-mode .btmh-plan__list li { color: #c8c6c0; border-bottom-color: #2d3540; }
.btmh-plan__list li:last-child { border-bottom: none; }
.btmh-plan__list li::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%;
  background: rgba(25,135,84,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23198754' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}

/* ============================================================
   SOBRE NOSOTROS 2
   ============================================================ */
.btmh-about2 { background: #f8f9fa; border-bottom: 1px solid #dee2e6; }
body.dark-mode .btmh-about2 { background: #1a2028; border-bottom-color: #2d3035; }
.btmh-about2 .btmh-h2 { color: #212529; }
body.dark-mode .btmh-about2 .btmh-h2 { color: #e8e6e0; }
.btmh-about2 .btmh-about__text { font-size: 14px; color: #6c757d; line-height: 1.75; margin-bottom: 12px; }
body.dark-mode .btmh-about2 .btmh-about__text { color: #9a9890; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.btmh-testi { background: #fff; border-bottom: 1px solid #dee2e6; }
body.dark-mode .btmh-testi { background: #141a1f; border-bottom-color: #2d3035; }

.btmh-testi-card {
  background: #f8f9fa; border: 1px solid #dee2e6;
  border-radius: 12px; padding: 24px; height: 100%;
}
body.dark-mode .btmh-testi-card { background: #1e2530; border-color: #2d3540; }

.btmh-testi-card__stars  { color: #f5a623; font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.btmh-testi-card__quote  { font-size: 14px; font-style: italic; color: #495057; line-height: 1.7; margin-bottom: 20px; }
body.dark-mode .btmh-testi-card__quote { color: #c8c6c0; }
.btmh-testi-card__author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #dee2e6; }
body.dark-mode .btmh-testi-card__author { border-top-color: #2d3540; }
.btmh-testi-card__avatar { border-radius: 8px; object-fit: cover; }
.btmh-testi-card__name   { font-size: 14px; font-weight: 600; color: #212529; margin-bottom: 2px; }
.btmh-testi-card__role   { font-size: 12px; color: #6c757d; }
body.dark-mode .btmh-testi-card__name { color: #e8e6e0; }
body.dark-mode .btmh-testi-card__role { color: #9a9890; }

.btmh-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.btmh-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: #dee2e6;
  border: none; padding: 0; cursor: pointer; transition: background 0.2s;
}
body.dark-mode .btmh-carousel-dots button { background: #3a4050; }
.btmh-carousel-dots button.active { background: #0d6efd !important; }

/* ============================================================
   CONTACTO
   light: azul oscuro de marca
   dark:  más oscuro todavía
   ============================================================ */
.btmh-contact { background: #0b1a27; border-top: 1px solid rgba(255,255,255,0.06); }
body.dark-mode .btmh-contact { background: #060f17; }
.btmh-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.btmh-contact__sub   { font-size: 14px; color: rgba(255,255,255,0.4); margin: 0; }

@media (max-width: 768px) {
  .btmh-contact__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HERO TOOLS GRID (2x2 dentro del hero)
   ============================================================ */
.btmh-hero__fine {
  font-size: 12px; color: #6c757d; margin: 0;
}
body.dark-mode .btmh-hero__fine { color: rgba(255,255,255,0.3); }

.btmh-hero-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btmh-htool {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  cursor: default;
}
a.btmh-htool { cursor: pointer; }
a.btmh-htool:hover {
  border-color: rgba(77,182,228,0.6);
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
  text-decoration: none;
}
.btmh-htool--hub             { border-color: rgba(13,110,253,0.4); }
a.btmh-htool--hub:hover      { border-color: #0d6efd; }

.btmh-htool__img {
  height: 110px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
}
.btmh-htool__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
a.btmh-htool:hover .btmh-htool__img img { transform: scale(1.06); }

.btmh-htool__img--hub {
  background: #061220 !important;
  padding: 10px;
  align-items: stretch;
}
.btmh-htool__img--hub .btmh-hub-feed { gap: 6px; }
.btmh-htool__img--hub .btmh-hub-item { padding: 6px 8px; font-size: 10.5px; }

.btmh-htool__body {
  padding: 12px 14px 14px;
}
.btmh-htool__name {
  font-size: 13px; font-weight: 600;
  color: #fff; margin-bottom: 3px;
}
.btmh-htool__desc {
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

/* Light mode overrides para hero tools */
body:not(.dark-mode) .btmh-htool {
  background: #f1f3f5;
  border-color: #dee2e6;
}
body:not(.dark-mode) a.btmh-htool:hover {
  background: #e9ecef;
  border-color: #0d6efd;
}
body:not(.dark-mode) .btmh-htool__name { color: #212529; }
body:not(.dark-mode) .btmh-htool__desc { color: #6c757d; }
body:not(.dark-mode) .btmh-htool__img  { background: #e0e3e7; }

@media (max-width: 991px) {
  .btmh-hero-tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .btmh-hero-tools { grid-template-columns: 1fr; }
}