:root {
  --fondo: #f4f7f6;
  --menta: #a8dadc;
  --azul-texto: #1d3557;
  --blanco: #ffffff;
  --whatsapp: #25d366;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--fondo);
  color: var(--azul-texto);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1d3557;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  transition: transform 0.6s ease-in-out;
}

#splash.ocultar {
  transform: translateY(-100%);
}

#splash-logo {
  width: 80px;
  opacity: 0;
  animation: aparecer 0.8s ease forwards;
  background: none;
}

.splash-titulo {
  padding-top: 50%;
  font-size: 24px;
  font-weight: 800;
  color: #0c81ff;
  opacity: 0;
  animation: aparecer 0.8s ease 0.4s forwards;
  letter-spacing: 2px;
}

.splash-titulo span {
  color: #ffffff;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-mes {
  width: 100%;
  background: #22c55e;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}

/*Login */
.auth-form {
  display: none;
  /* Se muestra por JS cuando se necesita */
  flex-direction: column;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  gap: 15px;
  background: #f9f9f9;
  border-radius: 15px;
}

.auth-form input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

#btn-registrar {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/*end login css*/
.navbar {
  width: 100%;
  padding: 10px 10px;
  background: var(--blanco);
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);*/
}

.profile-container {
  max-width: 800px;
  width: 95%;
  padding: 20px;
  text-align: center;
}

.profile-header {
  margin-top: 20px;
}

/* LA CUADRÍCULA RESPONSIVE */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columnas en celular */
  gap: 10px;
}

@media (min-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas en iMac/Tablet */
  }
}

@media (min-width: 768px) {
  body {
    background-color: #7272725b;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(rgba(0, 0, 0, 0.08) 2px, transparent 2px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.08) 2px, transparent 2px),
      radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 20%
      );
    background-size:
      40px 40px,
      40px 40px,
      200px 200px,
      200px 200px,
      100% 100%;
  }
}

.titulo-logo {
  white-space: nowrap;
  font-weight: 800;
  font-size: 20px;
  color: #0c81ff;
  margin-bottom: 10px;
  display: flex;
  /* Esto ayuda a alinear todo el contenido del div */
  justify-content: center;
  /* Centra todo horizontalmente */
  align-items: baseline;
  /* Alinea los textos por su base inferior */
  gap: 8px;
  /* Crea una separación elegante entre los dos textos */
}

.texto-parley {
  color: #333;
  /* El color que querías para la segunda parte */
  font-weight: 800;
  font-size: 18px;
  /* Un poquito más pequeño para dar jerarquía */
  letter-spacing: 1px;
  /* Un toque moderno */
  text-transform: uppercase;
}

.header-bar {
  background: #fff;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* IMPORTANTE: Esto hará que los elementos hijos se apilen en columna */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /* Botón/Título a la izq, Enlaces a la der */
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  /* Un poco más de espacio */
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  /* Activa el alineado horizontal */
  align-items: center;
  /* Alinea verticalmente el botón con el título */
  gap: 15px;
  /* Espacio entre el botón y el título */
}

/* --- ESTILOS DEL MENÚ HAMBURGUESA --- */

.menu-toggle {
  display: block;
  /* Asegura que el botón siempre sea visible */
  cursor: pointer;
  font-size: 24px;
  padding: 10px;
  background: transparent;
  box-sizing: border-box;
  transition: all 0.3s ease;
  color: #333;
  flex-shrink: 0;
}

/* El botón cuando el menú está abierto */
.menu-toggle.active {
  background: #0c81ff;
  /* Color corporativo de tu página */
}

/* Cambia el color de las rayitas cuando el fondo está activo */
.menu-toggle.active .bar {
  background: white;
}

.nav-links {
  display: none;
  /* Oculto por defecto */
  position: fixed;
  top: -20px;
  left: 0;
  /* 👈 Cambiado de left: 0 a right: 0 para que se ancle a la derecha */
  width: 35%;
  /* 👈 ¡Aquí está la magia! Ahora solo ocupa el 35% */
  min-width: 250px;
  /* ⚠️ NOTA IMPORTANTE: En celulares muy pequeños, 35% puede ser demasiado angosto. Esto asegura un mínimo legible */
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  /* Fondo casi blanco */
  flex-direction: column;
  justify-content: flex-start;

  align-items: center;
  z-index: 2000;
  padding-top: 100px;
  padding-left: 5px;
  box-sizing: border-box;
  list-style: none;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  /* 👈 Añadimos una sombra sutil a la izquierda para darle profundidad */
}

.nav-links.active {
  display: flex;
  /* Se muestra al activarse */
}

/* Estilo para los botones dentro del menú desplegable */
.nav-links li {
  margin: 20px 0;
}

.nav-links a {
  font-size: 18px;
  /* Botones más grandes */
  box-shadow: none;
  /* Quitamos sombras para un look más limpio */
}

/* Opcional: botón para cerrar el menú */
.close-menu {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  cursor: pointer;
}

/* Gráfica */
.wrap-tipster {
  width: 90%;
  max-width: 580px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin: 20px auto;
}

.titulo-tipster {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.delta-tipster {
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 2px;
}

.delta-tipster.pos {
  color: #4caf7d;
}

.delta-tipster.neg {
  color: #e07070;
}

/* Footer */
a {
  /*background: #ffffff;*/
  padding: 10px;
  flex: 1;
  border-radius: 8px;
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 600;
}

.btn-nav {
  background: #fff;
  padding: 10px;
  flex: 1;
  border-radius: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid #0c81ff;
  /* Solo línea inferior */
}

.btn-nav:hover {
  transform: translateY(-3px);
  /* Se mueve un poco hacia arriba */
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
  /* Sombra más suave y colorida */
  border-color: #007bff;
  /* Un borde sutil que aparece */
}

/* --- CONTENEDOR RELATIVO PARA ENVOLVER EL CARRUSEL Y LOS BOTONES --- */
.carrusel-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Alineado con el contenedor */
  display: flex;
  align-items: center;
}

/* --- CONTENEDOR EN CARRUSEL HORIZONTAL --- */
.feed-container {
  width: 100%;
  display: flex;
  gap: 0px;
  /* 🎯 Eliminamos el gap para que no se desfase el 100% de la tarjeta */
  overflow-x: auto;
  padding: 5px 0;
  /* Ajustamos padding lateral para no empujar la tarjeta */
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Hace que el movimiento por botones sea fluido */
  /* -webkit-overflow-scrolling: touch; */
}

.feed-container::-webkit-scrollbar {
  display: none;
}

/* --- NUEVOS BOTONES DE NAVEGACIÓN --- */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(250, 250, 250, 0.9);
  color: #333;
  border: 1px solid #ddd;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  user-select: none;
}

.nav-btn:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Posiciones específicas a los extremos del wrapper */
.btn-prev {
  left: 10px;
  /* 🎯 Un poquito más despegado para que no estorbe visualmente */
}

.btn-next {
  right: 10px;
  /* 🎯 Un poquito más despegado para que no estorbe visualmente */
}

@media (max-width: 400px) {
  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* --- TARJETA COMPACTA TIPO POST --- */
.video-card {
  flex: 0 0 100%;
  /* 🎯 Forzamos a que ocupe exactamente el 100% del contenedor */
  width: 100%;
  max-width: 100%;
  /* 🎯 Permitimos que llene el ancho del wrapper de forma limpia */
  height: 90dvh;
  /* Le damos un poco más de aire por los nuevos textos */
  scroll-snap-align: center;
  position: relative;
  background-color: #fff;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef2f5;
  box-sizing: border-box;
}

.media-wrapper {
  width: 100%;
  height: 60dvh;
  /* Altura de Carrusel */
  position: relative;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

video,
img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

video {
  background: rgb(212, 212, 212);
}

video {
  cursor: pointer;
}

.info-container {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background: #fff;
  position: relative;
}

.info-overlay h2 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.info-overlay p {
  margin: 0;
  font-size: 14px;
  color: #007bff;
  font-weight: 600;
}

.info-overlay .biografia {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
  font-weight: normal;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* 🎯 Aumentado a 3 líneas por si tu análisis es detallado */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.descripcion-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.2;
  word-break: break-word;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.video-card.pausado .play-overlay {
  opacity: 1;
}

/*Lograr que se muestre al mismo tiempo Carrusel y Aviso */

.carrusel-wrapper,
.aviso {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in;
  /* Para que aparezca suavemente */
}

/* Esta clase es la que usaremos para "revelarlos" */
.contenido-listo {
  visibility: visible;
  opacity: 1;
}

.aviso {
  display: flex;
  justify-content: center;
  /* Centra el contenido internamente */
  align-items: center;
  background: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  /* Ajuste para móviles */
  max-width: 580px;
  /* Mantiene el límite visual */
  text-align: center;
  margin: 20px auto;
  /* Centra la caja en la pantalla */
}

p {
  font-style: normal;
  /* Quita la cursiva si prefieres texto normal */
  font-family: "Arial", sans-serif;
  color: #424242;
  /* Coincide con tu color corporativo */
  line-height: 1.6;
}

#mision {
  scroll-margin-top: 60px;
  /* Ajusta según la altura de tu barra fija */
  padding: 10px;
}

/*Excel de Google */

.contenedor-excel {
  scroll-margin-top: 95px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  width: 90%;
  /* Ocupa el 90% de cualquier pantalla */
  max-width: 890px;
  /* Permite que crezca hasta 900px  */
  height: 90%;
}

/* Asegura que el iframe llene el contenedor */
.iframe-container {
  display: block;
  padding-top: 10px;
  width: 100%;
  position: relative;
}

/* Excel Colunmna Fija*/

.contenedor-dashboard {
  max-width: 890px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  width: 95%;
  /* Ajusta el ancho al 95% de la pantalla */
  margin: 40px auto;
  display: flex;
  overflow-x: auto;
  /* Permite scroll solo en pantallas pequeñas */
  font-family: Arial, sans-serif;
}

/* 2. Columna fija a la izquierda */
.columna-fija {
  margin-top: 118px;
  margin-left: 15px;
  position: sticky;
  max-height: 440px;
  left: 0;
  z-index: 20;
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
  width: 104px;
  flex-shrink: 0;
  /* Imprescindible para que no se encoja */
  display: flex;
  flex-direction: column;
}

/* Estilo para cada celda de texto (FECHA, PREDICCION, etc.) */
.iframe-contenedor iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Ajustes para celdas */
.celda-texto {
  height: 20px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.header-picks {
  text-align: center;
  margin-bottom: 15px;
}

.btn-full-screen {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 15px;
  padding: 12px;
  background: #0c81ff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-full-screen:hover {
  background: #096ad3;
}

/* Grupo */
.aviso-grupo,
.glosario {
  display: flex;
  justify-content: center;
  /* Centra el contenido internamente */
  align-items: center;
  background: white;
  padding: 10px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  /* Ajuste para móviles */
  max-width: 580px;
  /* Mantiene el límite visual */
  text-align: center;
  margin: 25px auto;
  /* Centra la caja en la pantalla */
}

p {
  font-style: normal;
  /* Quita la cursiva si prefieres texto normal */
  font-family: "Arial", sans-serif;
  color: #424242;
  /* Coincide con tu color corporativo */
  line-height: 1.6;
}

.btn-flotante-ws {
  position: fixed;
  width: 55px;
  /* Un poco más grande para mejor clic */
  height: 55px;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  transition: transform 0.3s ease;
}

/* Estilo específico para la imagen dentro del botón */
.btn-flotante-ws img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Efecto al pasar el mouse (opcional: efecto de escala) */
.btn-flotante-ws:hover {
  transform: scale(1.1);
}

.aviso-calc {
  background: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 480px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aviso-calc h3 {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.calc-field label {
  font-size: 16px;
  color: #666;
  display: block;
  margin-bottom: 6px;
}

.calc-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 15px;
}

#stake-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

#stake-grid button {
  padding: 12px 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: #333;
  transition: all 0.2s ease;
}

#stake-grid button:hover {
  border-color: #0c81ff;
  color: #0c81ff70;
}

#resultado-stake {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 12px;
  border-radius: 8px;
}

.resultado-label {
  font-size: 14px;
  color: #666;
  margin: 0 0 4px 0;
}

#monto-resultado {
  font-size: 22px;
  font-weight: 700;
  color: #166534;
  margin: 0;
}
