/* GENERAL */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #fff;
}

/* NAVBAR */
.navbar {
  background-color: #000;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.navbar ul li {
  position: relative;
  margin: 0 20px;
}
.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.navbar ul li a:hover {
  color: #00ccff;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 999;
}
.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-weight: normal;
}
.dropdown-content a:hover {
  background-color: #00ccff;
  color: #000;
}
.navbar li:hover .dropdown-content {
  display: block;
}

/* HERO */
.hero {
  height: 100vh;
  background: url('logo.jpg.PNG') no-repeat center center;
  background-size: contain;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 40px;
  padding-top: 60px;
}

/* SECTIONS */
.section {
  padding: 120px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
h2 {
  color: #00ffcc;
  margin-bottom: 20px;
}

/* REGISTRO */
.registro {
  background: #222;
  border-radius: 20px;
  max-width: 500px;
  margin-bottom: 80px;
  text-align: center;
}
#registroForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#registroForm input,
#registroForm button {
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
}
#registroForm button {
  background: #00ffcc;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}
#mensajeRegistro {
  color: #00ffcc;
  font-weight: bold;
}

/* CALCULADORA Y COMENTARIOS */
body {
      background-color: #121212;
      color: #f0f0f0;
      font-family: 'Segoe UI', sans-serif;
      padding: 20px;
      margin: 0;
    }

    .main-section {
      max-width: 500px;
      margin: auto;
    }

    .calculator {
      background-color: #1e1e1e;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    }

    h2 {
      text-align: center;
      color: #00ffcc;
    }

    label {
      display: block;
      margin-top: 15px;
      font-weight: bold;
    }

    select, input, button {
      width: 100%;
      padding: 12px;
      margin-top: 5px;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      background-color: #2a2a2a;
      color: #ffffff;
    }

    input::placeholder {
      color: #aaaaaa;
    }

    button {
      background-color: #00ffcc;
      color: #000;
      font-weight: bold;
      cursor: pointer;
      margin-top: 20px;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #00ddb3;
    }

    #resultado {
      margin-top: 20px;
      font-size: 18px;
      text-align: center;
      font-weight: bold;
      color: #ffffff;
    }

/* PLANES */
#planes {
  background-color: white;
  padding: 40px 20px;
  border-radius: 20px;
  color: black;
  margin: 80px auto;
}
.plan-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.plan-card {
  background: #ffffff;
  color: #000;
  border-radius: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 30px 20px;
  width: 290px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
}
.plan-nombre {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1a237e;
}
.plan-precio {
  font-size: 1.4rem;
  color: #388e3c;
  font-weight: bold;
  margin-bottom: 15px;
}
.caracteristicas {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.caracteristicas li {
  font-size: 0.95rem;
  margin: 6px 0;
  color: #444;
}
.btn-comprar {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}
.btn-comprar:hover {
  background-color: #0d47a1;
}

/* BLOGS */
#blogs {
  background-color: #1a1a1a;
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto 80px;
  border-radius: 20px;
  color: #00ffcc;
  box-sizing: border-box;
  text-align: center;
}
#blogs h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: bold;
  color: #00ffcc;
}
.blog-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-post {
  background: #222;
  border-radius: 15px;
  padding: 20px;
  width: 320px;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 10px #00ffcc88;
  transition: transform 0.3s ease;
}
.blog-post:hover {
  transform: translateY(-5px);
}
.blog-post h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #00e676;
}
.blog-post p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #ccc;
  text-align: center;
}
.video-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px #00ffccaa;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* NOTICIAS */
.noticias {
  background-color: #fff;
  color: #000;
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto 80px;
  border-radius: 20px;
  box-sizing: border-box;
  text-align: center;
}
.noticia-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.noticia-card {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 20px;
  width: 320px;
  box-sizing: border-box;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.noticia-card:hover {
  transform: translateY(-5px);
}
.noticia-card h3 {
  font-size: 1.1rem;
  color: #1976d2;
  margin-bottom: 10px;
}
.noticia-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}
.noticia-card a {
  color: #1976d2;
  font-weight: bold;
  text-decoration: none;
}
.noticia-card a:hover {
  text-decoration: underline;
}

/* GRÁFICOS */
#graficos {
  background-color: #222;
  padding: 60px 20px 80px;
  border-radius: 20px;
  max-width: 1100px;
  margin: 80px auto;
  box-sizing: border-box;
  color: #fff;
  text-align: center;
}
#graficos header {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #00e676;
  font-weight: bold;
}
#symbolSelector {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  background-color: #333;
  border: none;
  color: #fff;
  max-width: 320px;
}

/* CONTENEDOR DEL GRÁFICO */
#tradingview_chart {
  width: 100%;
  height: 600px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 0 10px #00ffcc55;
  border-radius: 12px;
  overflow: hidden;
}

.noticias {
  background-color: #fff;
  color: #000;
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto 80px;
  border-radius: 20px;
  box-sizing: border-box;
  text-align: center;
}
.noticias h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #1a237e;
}
.widget-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

/* WHATSAPP */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25D366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 15px #25D36688;
  transition: transform 0.3s ease;
}
.whatsapp-button:hover {
  transform: scale(1.1);
}
.whatsapp-button img {
  width: 50px;
  height: 50px;
}

.productos-inversion {
  padding: 3rem 2rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 1100px;
  margin: 3rem auto;
  color: #333;
}

.productos-inversion h2 {
  color: #0d47a1;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.productos-inversion p {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.productos-inversion table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.productos-inversion th,
.productos-inversion td {
  border: 1px solid #e0e0e0;
  padding: 1rem;
  text-align: left;
}

.productos-inversion th {
  background-color: #f1f8ff;
  color: #0d47a1;
  font-weight: 600;
}

.productos-inversion tr:nth-child(even) {
  background-color: #fafafa;
}

.productos-inversion tr:hover {
  background-color: #f0f4f8;
  transition: background-color 0.3s ease;
}

.productos-inversion blockquote {
  margin-top: 2rem;
  font-style: italic;
  color: #444;
  border-left: 4px solid #0d47a1;
  padding-left: 1rem;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}
.productos-inversion {
  padding: 3rem 1rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin: 3rem auto;
  color: #333;
}

.productos-inversion h2 {
  color: #0d47a1;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.productos-inversion p {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.producto-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-5px);
}

.producto-card h3 {
  margin-top: 0;
  color: #1a237e;
}

.producto-card p {
  margin: 0.5rem 0 1rem;
  color: #444;
}

.barra-riesgo {
  height: 12px;
  border-radius: 6px;
  position: relative;
  background-color: #e0e0e0;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.barra-riesgo span {
  position: absolute;
  top: -1.8rem;
  left: 0;
  font-size: 0.85rem;
  color: #333;
}

.riesgo-bajo::before {
  content: "";
  display: block;
  height: 100%;
  width: 30%;
  background-color: #4caf50;
}

.riesgo-medio::before {
  content: "";
  display: block;
  height: 100%;
  width: 50%;
  background-color: #ffb300;
}

.riesgo-medio-alto::before {
  content: "";
  display: block;
  height: 100%;
  width: 65%;
  background-color: #fb8c00;
}

.riesgo-alto::before {
  content: "";
  display: block;
  height: 100%;
  width: 80%;
  background-color: #f44336;
}

.riesgo-muy-alto::before {
  content: "";
  display: block;
  height: 100%;
  width: 95%;
  background-color: #b71c1c;
}

.productos-inversion blockquote {
  margin-top: 3rem;
  font-style: italic;
  color: #444;
  border-left: 4px solid #0d47a1;
  padding-left: 1rem;
  background-color: #f1f1f1;
  padding: 1rem;
  border-radius: 8px;
}
html {
  scroll-behavior: smooth;
.section.testimonios {
  padding: 30px;
  background-color: #ffffff;
  font-family: Arial, sans-serif;
}

.section.testimonios {
  padding: 30px;
  background-color: #ffffff;
  font-family: Arial, sans-serif;
}

.chat-testimonio {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mensaje {
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 75%;
  font-size: 14px;
  color: #ffffff;
}

.mensaje.cliente {
  background-color: #333333;
  align-self: flex-start;
}

.mensaje.asesor {
  background-color: #000000;
  align-self: flex-end;
  text-align: right;
}
