/* ===================================
   BASE Y VARIABLES
=================================== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #222;
}

/* ===================================
   COLORES / LINKS / BOTONES
=================================== */
.navbar-brand span.text-primary {
  color: #2b1e87 !important;
}

a {
  color: #2b1e87;
}
a:hover {
  color: #003f9a;
}

.btn-primary {
  background-color: #2b1e87;
  border-color: #2b1e87;
}
.btn-primary:hover {
  background-color: #231c53;
  border-color: #231c53;
}

.bg-blue1 {
  background-color: #000;
}

/* ===================================
   HEADER Y HERO
=================================== */
header {
  position: relative;
}

.bg-mercado {
  background-image: url(/assets/img/bg-inversores365.webp);
  background-size: cover;
}

.bg-mercado .content {
  max-width: 600px;
}

.bg-mercado .content h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.bg-mercado .content p.lead {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* ===================================
   CTA BUTTON GENERAL
=================================== */
.cta-btn {
  background-color: #2b1e87;
  border: none;
  color: #fff;
  padding: 12px 40px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.cta-btn:hover {
  background-color: #231c53;
  color: #fff;
  text-decoration: none;
}

/* ===================================
   FORMULARIO PRINCIPAL
=================================== */
.form-container {
  background: #fff;
  padding: 20px 20px 25px 20px;
  border-radius: 0;
  max-width: 460px;
  margin-top: 1.5rem;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
  color: #213679;
}

.form-h2 {
  background: #efefef;
}

.form-container h2 {
  margin-bottom: 1.2rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  padding: 15px;
}

label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  font-size: 0.9rem;
  padding: 6px 10px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #0059b3;
  box-shadow: 0 0 8px #0059b3;
  outline: none;
}

.reg-btn {
  background-color: #2b1e87;
  border: none;
  color: #fff;
  padding: 10px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
}
.reg-btn:hover {
  background-color: #231c53;
  color: #fff;
}

.invalid-feedback {
  font-size: 0.9rem;
  color: #dc3545;
}

.form-check-label a {
  color: #213679;
  text-decoration: underline;
}
.form-check-label a:hover {
  text-decoration: none;
}

.form-check-input:checked {
  background-color: #213679;
  border-color: #213679;
}

/* ===================================
   TEXTOS Y TIPOGRAFÍA
=================================== */
.mercado-latinoamericano {
  font-size: 3.2rem;
  line-height: 3.4rem;
  font-weight: 700;
  color: #2b1e87;
}

/* ===================================
   SECCIONES ESPECIALES
=================================== */
.header-image {
  max-width: 100%;
  border-radius: 12px;
}

/* --- Calculadora (si aplica) --- */
.calculator-section {
  padding: 60px 15px;
  margin-top: 3rem;
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
}

.calculator-section p {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}

/* --- Boxes --- */
.grey-box,
.orange-box {
  padding: 30px;
  border-radius: 12px;
  min-height: 220px;
}
.grey-box {
  background-color: #f2f2f2;
  color: #000;
}
.orange-box {
  background-color: #fff8f0;
  color: #ff6600;
}

/* --- Botones especiales --- */
.calc-btn {
  background-color: #ff6600;
  border: none;
  color: white;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}
.calc-btn:hover {
  background-color: #e65500;
}

/* --- Inputs personalizados --- */
#initial-value,
#potencial-value {
  width: 100%;
  padding: 10px 14px;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-align: center;
}

#potencial-value {
  background: #fff8f0;
  font-weight: 700;
  color: #ff6600;
  border: none;
  pointer-events: none;
}

/* --- Mensajes de error --- */
.error-msg-calc {
  color: red;
  text-align: center;
  margin-top: 10px;
  min-height: 1.4em;
  font-weight: 700;
  font-size: 1rem;
}

/* ===================================
   FEATURES (bloques con íconos)
=================================== */
.gray-section {
  background: #f2f2f2;
  padding: 60px 15px;
  margin-top: 3rem;
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
}

.gray-section h3 {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #0059b3;
  font-size: 1.8rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.feature-item {
  width: 140px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #3d3d3d;
}

.feature-item img {
  max-width: 100px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   ANIMACIONES
=================================== */
@keyframes slideFadeUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.bg-mercado .blaki {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
  animation: slideFadeUp 1s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.bg-mercado .blakio {
  position: relative;
  z-index: 2;
}

/* ===================================
   BLOQUES EQUAL HEIGHT
=================================== */
.equal-cards .col-lg-4 {
  display: flex;
}
.equal-cards .col-lg-4 > div {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===================================
   NOTICIAS / BLOG
=================================== */
.news-thumb-wrap {
  width: 140px;
  flex-shrink: 0;
}
.news-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}
.news-list-item {
  min-height: 110px;
}
.news-list-item img {
  display: block;
}
.news-list-item:hover {
  background-color: #faf7ff;
}
.tiny {
  font-size: 0.72rem;
}

/* ===================================
   ICON + TEXT INLINE
=================================== */
.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.icon-text iconify-icon {
  flex-shrink: 0;
  line-height: 1;
}

/* ===================================
   MENU + DROPDOWN
=================================== */
.dropdown-item iconify-icon {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.dropdown-item:hover iconify-icon {
  opacity: 1;
}
/* ===================================
   TESTIMONIOS + IMGS
=================================== */
.hover-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.transition {
  transition: all 0.3s ease;
}
/* ===================================
   BILLETERAS 
=================================== */
    .hero-billeteras {
      background: linear-gradient(135deg, #f5f9ff, #eef7f2);
    }
    .wallet-card {
      transition: all 0.25s ease;
    }
    .wallet-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }
    .badge-tag {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
/* ===================================
   TRADINGVIEW
=================================== */	
	.container-altura {
  height: 700px !important;
}

/* ===================================
   FOOTER
=================================== */
footer {
  font-size: 0.85rem;
  color: #666;
  padding: 30px 15px;
  text-align: center;
  background: #f9f9f9;
  margin-top: 4rem;
}
footer a {
  color: #0059b3;
  text-decoration: underline;
}
footer a:hover {
  text-decoration: none;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 991.98px) {
  header {
    padding: 40px 15px;
  }
  .bg-mercado .content h1 {
    font-size: 2.2rem;
  }
  .form-container {
    margin-top: 2rem;
    max-width: 100%;
  }
  .calculator-section,
  .gray-section {
    padding: 40px 15px;
    max-width: 100%;
  }
  .feature-item {
    width: 110px;
    font-size: 0.9rem;
  }
  .feature-item img {
    max-width: 80px;
  }
}

@media (max-width: 768px) {
  .news-thumb-wrap {
    width: 100%;
  }
  .news-thumb {
    height: 160px;
    margin-bottom: 8px;
  }
  .news-list-item {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  header {
    background-image: none;
    background-size: contain;
    background-color: #f5f5f5;
    color: white;
    padding: 15px 0;
    position: relative;
  }
  .bg-mercado .content h1 {
    font-size: 1.8rem;
  }
  .bg-mercado .content p.lead {
    font-size: 1.1rem;
  }
  .feature-item {
    width: 100px;
    font-size: 0.9rem;
  }
  .feature-item img {
    max-width: 70px;
  }
  .titulos-xs {
    text-align: center;
  }
  .mercado-latinoamericano {
    font-size: 2.2rem;
    line-height: 2.4rem;
    font-weight: 500;
  }
}
