

   :root {
       --primary-color: #3498db;
       --secondary-color: #2c3e50;
       --background-color: #ecf0f1;
       --text-color: #34495e;
       --sidebar-width: 250px;
       --transition-speed: 0.3s;
   }

   * {
       box-sizing: border-box;
       margin: 0;
       padding: 0;
   }

   body {
       font-family: 'Roboto', Arial, sans-serif;
       background-color: var(--background-color);
       color: var(--text-color);
       line-height: 1.6;
       display: flex;
       min-height: 100vh;
       flex-direction: column;
   }

   .sidebar {
       width: var(--sidebar-width);
       background: var(--secondary-color);
       padding: 20px;
       position: fixed;
       left: 0;
       top: 0;
       bottom: 0;
       overflow-y: auto;
       transition: transform var(--transition-speed);
   }

   .sidebar h2 {
       color: #fff;
       text-align: center;
       margin-bottom: 20px;
       font-size: 1.5rem;
   }

   .sidebar ul {
       list-style: none;
   }

   .sidebar ul li {
       padding: 10px;
       background: rgba(255, 255, 255, 0.1);
       margin: 10px 0;
       cursor: pointer;
       border-radius: 5px;
       text-align: center;
       color: #fff;
       transition: background-color var(--transition-speed);
   }

   .sidebar ul li:hover {
       background: rgba(255, 255, 255, 0.2);
   }

   .content {
       flex-grow: 1;
       padding: 20px;
       margin-left: var(--sidebar-width);
       margin-right: var(--sidebar-width);
       max-width: calc(100% - var(--sidebar-width));
       transition: margin-left var(--transition-speed);
   }

   .section {
       display: none;
       background: #fff;
       padding: 20px;
       border-radius: 5px;
       box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
       margin-bottom: 20px;
   }

   .section.active {
       display: block;
       animation: fadeIn 0.5s;
   }

   @keyframes fadeIn {
       from { opacity: 0; }
       to { opacity: 1; }
   }

   h2, h3, h4 {
       color: var(--primary-color);
       margin-bottom: 15px;
   }

   p, ul {
       margin-bottom: 15px;
   }

   ul {
       padding-left: 20px;
   }

   @media (max-width: 768px) {
       body {
           flex-direction: column;
       }

       .sidebar {
           width: 100%;
           position: relative;
           height: auto;
       }

       .content {
           margin-left: 0;
           max-width: 100%;
       }
   }

   .menu-toggle {
       display: none;
       position: fixed;
       top: 10px;
       right: 10px;
       z-index: 1000;
       background: var(--primary-color);
       color: #fff;
       border: none;
       padding: 10px;
       border-radius: 5px;
       cursor: pointer;
   }

   @media (max-width: 768px) {
       .menu-toggle {
           display: block;
       }

       .sidebar {
           transform: translateX(-100%);
       }

       .sidebar.active {
           transform: translateX(0);
       }

       .content {
           margin-left: 0;
       }
   }

   footer {
       background-color: var(--secondary-color);
       color: #fff;
       text-align: center;
       padding: 20px;
       position: relative;
       bottom: 0;
       width: 100%;
   }

   .right-sidebar {
       width: var(--sidebar-width);
       background: var(--secondary-color);
       padding: 20px;
       position: fixed;
       right: -var(--sidebar-width);
       top: 0;
       bottom: 0;
       overflow-y: auto;
       transition: right var(--transition-speed);
   }

   .right-sidebar.active {
       right: 0;
   }

   .right-sidebar h2 {
       color: #fff;
       text-align: center;
       margin-bottom: 20px;
       font-size: 1.5rem;
   }

   .right-sidebar ul {
       list-style: none;
   }

   .right-sidebar ul li {
       padding: 10px;
       background: rgba(255, 255, 255, 0.1);
       margin: 10px 0;
       cursor: pointer;
       border-radius: 5px;
       text-align: center;
       color: #fff;
       transition: background-color var(--transition-speed);
   }

   .right-sidebar ul li:hover {
       background: rgba(255, 255, 255, 0.2);
   }

   .right-menu-toggle {
       display: block;
       position: fixed;
       top: 10px;
       right: 10px;
       z-index: 1000;
       background: var(--primary-color);
       color: #fff;
       border: none;
       padding: 10px;
       border-radius: 5px;
       cursor: pointer;
   }

   @media (max-width: 768px) {
       .right-sidebar {
           width: 100%;
           right: -100%;
       }
   }

   .menu-separator {
       height: 1px;
       background-color: rgba(255, 255, 255, 0.2);
       margin: 10px 0;
   }

   #portada img {
       max-width: 100%;
       height: auto;
       display: block;
       margin: 20px auto;
   }

   #menu_principal ul {
       list-style: none;
       padding: 0;
   }

   #menu_principal ul li {
       padding: 10px;
       background: var(--primary-color);
       margin: 10px 0;
       cursor: pointer;
       border-radius: 5px;
       text-align: center;
       color: #fff;
       transition: background-color var(--transition-speed);
   }

   #menu_principal ul li:hover {
       background: var(--secondary-color);
   }

   #simulacion, #preguntas {
       background: #fff;
       padding: 20px;
       border-radius: 5px;
       box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
       margin-bottom: 20px;
   }

   table {
       width: 100%;
       border-collapse: collapse;
       margin-bottom: 20px;
   }

   th, td {
       border: 1px solid #ddd;
       padding: 8px;
       text-align: left;
   }

   th {
       background-color: var(--primary-color);
       color: white;
   }
   a {
       background-color: var(--primary-color);
       color: white;
   }

   .formula {
       background-color: #f9f9f9;
       padding: 10px;
       border-radius: 5px;
       margin-bottom: 10px;
       font-family: 'Courier New', monospace;
   }

   .right-sidebar .control-content {
       font-size: 14px;
   }

   .right-sidebar .control-content h4 {
       margin-top: 15px;
       margin-bottom: 5px;
   }

   .right-sidebar .control-content ul {
       padding-left: 20px;
   }

.columnas_dobles {
    display: flex; /* Usar Flexbox para distribuir elementos */
    flex-wrap: wrap; /* Permitir que los elementos se envuelvan en varias filas */
    gap: 5px; /* Espacio entre las columnas */
}


/* Ajustes para que Imagineus y Simulador tengan un tamaño máximo de 300x300px */
.imagineus, .simulador {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
    padding: 20px;
    margin: 20px auto;
    border-radius: 30px;
    overflow: hidden;
    background: #1c1c1e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Contenedor principal de la imagen */
.image-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px;
    box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.1);
   text-align: center;
}

/* Nota importante dentro de la imagen */
.important-note {
    display: flex;
    align-items: center;
    padding: 8px;
    background: rgba(48, 49, 47, 0.2);
    color: #d6dfd5;
    font-weight: bold;
    font-size: 0.7rem;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    gap: 6px;
}

/* Estilo de enlace de la imagen */
.image-link {
    display: block;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.image-link:hover {
    transform: scale(1.05);
}

/* Estilo de la imagen dentro del contenedor */
.image-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Pie de foto */
.image-caption {
    text-align: center;
    font-size: 0.55rem;
    color: #d1d1d1;
    font-style: italic;
    margin-top: 5px;
}

/* Efecto de bisel oscuro en el borde interior */
.imagineus::before, .simulador::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 4px 8px rgba(100, 98, 98, 0.3);
    pointer-events: none;
}

/* Responsivo para dispositivos pequeños */
@media (max-width: 400px) {
    .imagineus, .simulador {
        max-width: 90%;
        max-height: 90%;
    }
}


.carousel-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    align-items: center;
  }
  
  .carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
    scroll-behavior: smooth;
  }
  
  .carousel-item {
    min-width: 100%;
    text-align: center;
  }
  
  .carousel-item img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
  }
  
  .caption {
    margin-top: 8px;
    font-size: 16px;
    color: #333;
    text-align: center;
  }
  
  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
  }
  
  .nav-button.left {
    left: 10px;
  }
  
  .nav-button.right {
    right: 10px;
  }
  
  .nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8); }