/* Fuentes y fondo */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f7f9fc, #e0f7fa);
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  /* Contenedor principal de dos columnas */
  .main-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px;
  }
  
  /* Contenedores de cada columna con fondo blanco, padding y sombra */
  .left-container,
  .right-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* La columna izquierda toma el ancho sobrante */
  .left-container {
    flex: 1;
  }
  
  /* La columna derecha con ancho fijo y contenido centrado */
  .right-container {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Encabezados y párrafos */
  h1 {
    color: #1a535c;
    margin-top: 20px;
    margin-bottom: 8px;
  }
  
  p {
    margin-bottom: 16px;
  }
  
  /* Contenedores de sliders */
  .slider-container {
    margin-bottom: 20px;
  }
  
  /* Red neuronal: Distribución de nodos */
  .network {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    position: relative;
    gap: 80px;
  }
  
  /* Estilo de cada nodo */
  .circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4ecdc4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.4s, transform 0.3s;
    position: relative;
    z-index: 2;
  }
  
  .circle.active {
    background-color: #ffe66d !important;
    transform: scale(1.15);
  }
  
  .circle[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  /* Organización en capas */
  .layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
  }
  
  /* Resultado */
  .result {
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    background-color: #ffe66d;
  }
  
  /* Botón mejorado con transición y mayor tamaño */
  button {
    background-color: #1a535c;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  button:hover {
    background-color: #163d44;
    transform: scale(1.05);
  }
  
  button:active {
    transform: scale(0.98);
  }
  
  /* Caja de información */
  #info-box {
    display: none;
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
  }
  
  /* Líneas de conexión SVG */
  svg.connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  
  /* Contenedor de la gráfica con margen superior para bajarla */
  #chart-container {
    width: 300px;
    margin-top: 50px;
  }
  
  /* Animación fade-in */
  .fade-in {
    animation: fadeIn 1s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* Ajustes responsivos */
  @media (max-width: 768px) {
    .main-container {
      flex-direction: column;
      align-items: center;
    }
    .right-container {
      width: 90%;
      margin-top: 30px;
    }
  }