  /* Estilos CSS - Tema Oscuro */
  :root {
      --primary-color: #000000;
      --secondary-color: #4cc9f0;
      --accent-color: #3a25f7;
      --text-color: #e6e6e6;
      --text-secondary: #b8b8b8;
      --dark-color: #0d0d1a;
      --card-bg: #16213e;
      --sidebar-width: 280px;
  }
  

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.6;
      color: var(--text-color);
      background-color: var(--primary-color);
      min-height: 100vh;
  }

  /* Navbar */
  .navbar {
      background-color: var(--dark-color);
      box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
      padding: 1rem 2rem;
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-left {
      display: flex;
      align-items: center;
  }

  .logo {
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--text-color);
      text-decoration: none;
      letter-spacing: 1px;
  }
  .titulo-centrado {
    text-align: center;
    font-family: Arial, sans-serif;
}

  .logo span {
      color: var(--accent-color);
  }

  .sidebar-toggle {
      background-color: var(--accent-color);
      border: none;
      border-radius: 5px;
      color: white;
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-right: 15px;
      cursor: pointer;
      transition: all 0.3s;
  }

  .sidebar-toggle:hover {
      background-color: #877d81;
      transform: scale(1.05);
  }

  .nav-links {
      display: flex;
      list-style: none;
  }

  .nav-links li {
      margin-left: 2rem;
  }

  .nav-links a {
      text-decoration: none;
      color: var(--text-color);
      font-weight: 500;
      transition: all 0.3s;
      position: relative;
      font-size: 1.1rem;
  }

  .nav-links a:hover {
      color: var(--accent-color);
  }

  .nav-links a::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: -5px;
      left: 0;
      background-color: var(--accent-color);
      transition: width 0.3s;
  }

  .nav-links a:hover::after {
      width: 100%;
  }

  .hamburger {
      display: none;
      cursor: pointer;
  }

  .hamburger div {
      width: 25px;
      height: 3px;
      background-color: var(--text-color);
      margin: 5px;
      transition: all 0.3s ease;
  }

  /* Main Content */
  .main-container {
      display: flex;
      margin-top: 80px;
      min-height: calc(100vh - 160px);
  }

  /* Sidebar */
  .sidebar {
      width: var(--sidebar-width);
      background-color: var(--dark-color);
      position: fixed;
      height: calc(100vh - 80px);
      overflow-y: auto;
      transition: transform 0.3s ease;
      z-index: 900;
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      transform: translateX(-100%);
  }

  .sidebar.active {
      transform: translateX(0);
  }

  .sidebar-header {
      padding: 1.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .sidebar-header h3 {
      color: var(--text-color);
      font-size: 1.3rem;
  }

  .sidebar-header h3 i {
      margin-right: 10px;
      color: var(--accent-color);
  }

  .close-sidebar {
      background: none;
      border: none;
      color: var(--text-secondary);
      font-size: 1.5rem;
      cursor: pointer;
      transition: color 0.3s;
  }

  .close-sidebar:hover {
      color: var(--accent-color);
  }

  .sidebar-categories {
      padding: 1rem 0;
      max-height: calc(100vh - 180px);
      overflow-y: auto;
  }

  .category-item {
      padding: 0.8rem 1.5rem;
      transition: all 0.3s;
      cursor: pointer;
      display: flex;
      align-items: center;
  }

  .category-item:hover {
      background-color: rgba(247, 37, 133, 0.1);
      color: var(--accent-color);
  }

  .category-item.active {
      background-color: rgba(247, 37, 133, 0.2);
      border-left: 3px solid var(--accent-color);
      color: var(--accent-color);
  }

  .category-item i {
      width: 20px;
      text-align: center;
      margin-right: 10px;
      font-size: 1.1rem;
  }

  /* Content Area */
  .content {
      flex: 1;
      padding: 2rem;
      transition: margin-left 0.3s;
  }

  .content.with-sidebar {
      margin-left: var(--sidebar-width);
  }

  /* Search Bar */
  .search-container {
      width: 100%;
      max-width: 800px;
      margin: 0 auto 2rem;
      position: relative;
  }

  .search-input {
      width: 100%;
      padding: 1rem 1.5rem;
      padding-right: 50px;
      border: none;
      border-radius: 50px;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
      font-size: 1rem;
      outline: none;
      transition: all 0.3s;
      background-color: var(--card-bg);
      color: var(--text-color);
  }

  .search-input::placeholder {
      color: var(--text-secondary);
  }

  .search-input:focus {
      box-shadow: 0 5px 30px rgba(247, 37, 133, 0.3);
      border: 1px solid var(--accent-color);
  }

  .search-btn {
      position: absolute;
      right: 5px;
      top: 5px;
      background-color: var(--accent-color);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 2px 10px rgba(41, 37, 247, 0.5);
  }

  .search-btn:hover {
      background-color: #1a2ad9;
      transform: scale(1.05);
      box-shadow: 0 2px 15px rgba(41, 37, 247, 0.5);
  }

  /* Categories Grid */
  .categories-title {
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
      color: var(--text-color);
      text-align: center;
  }

  .no-results {
      text-align: center;
      color: var(--text-secondary);
      font-size: 1.2rem;
      margin-top: 2rem;
      display: none;
  }

  .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
  }

  .category-card {
      background-color: var(--card-bg);
      border-radius: 10px;
      overflow: hidden;
      transition: all 0.3s;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      cursor: pointer;
  }

  .category-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .category-img {
      height: 150px;
      overflow: hidden;
  }

  .category-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s;
  }

  .category-card:hover .category-img img {
      transform: scale(1.1);
  }

  .category-info {
      padding: 1.2rem;
      text-align: center;
  }

  .category-info h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--text-color);
  }

  .category-info i {
      display: block;
      font-size: 2rem;
      margin-bottom: 0.5rem;
      color: var(--accent-color);
  }

  /* Scroll Top Button */
  .scroll-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background-color: var(--accent-color);
      color: white;
      border: none;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 2px 15px rgba(247, 37, 133, 0.5);
      z-index: 800;
      font-size: 1.2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      visibility: hidden;
  }

  .scroll-top.active {
      opacity: 1;
      visibility: visible;
  }

  .scroll-top:hover {
      background-color: #d91a6a;
      transform: scale(1.1);
      box-shadow: 0 5px 20px rgba(247, 37, 133, 0.7);
  }

  /* Footer */
  footer {
      background-color: var(--dark-color);
      color: white;
      padding: 3rem 2rem;
      text-align: center;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-content {
      display: flex;
      flex-direction: column;
      max-width: 1200px;
      margin: 0 auto;
  }

  .footer-about {
      margin-bottom: 2rem;
  }

  .footer-about h3 {
      font-size: 1.8rem;
      margin-bottom: 1rem;
      color: var(--text-color);
  }

  .footer-about h3 span {
      color: var(--accent-color);
  }

  .footer-about p {
      max-width: 600px;
      margin: 0 auto 1.5rem;
      color: var(--text-secondary);
  }

  .social-icons {
      display: flex;
      justify-content: center;
      margin-bottom: 2rem;
  }

  .social-icons a {
      color: var(--text-color);
      background-color: rgba(255, 255, 255, 0.05);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 0.5rem;
      transition: all 0.3s;
  }

  .social-icons a:hover {
      background-color: var(--accent-color);
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
  }

  .footer-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 1.5rem;
  }

  .footer-links a {
      color: var(--text-secondary);
      text-decoration: none;
      margin: 0 1rem;
      transition: color 0.3s;
  }

  .footer-links a:hover {
      color: var(--accent-color);
  }

  .copyright {
      font-size: 0.9rem;
      color: var(--text-secondary);
  }

  /* Responsive Design */
  @media (max-width: 992px) {
      .content.with-sidebar {
          margin-left: 0;
      }

      .sidebar {
          transform: translateX(-100%);
      }

      .sidebar.active {
          transform: translateX(0);
      }
  }

  @media (max-width: 768px) {
      .nav-links {
          position: absolute;
          right: 0;
          top: 80px;
          background-color: var(--card-bg);
          width: 100%;
          flex-direction: column;
          align-items: center;
          padding: 1rem 0;
          box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
          transform: translateY(-150%);
          transition: transform 0.5s ease-in;
          border-top: 1px solid rgba(255, 255, 255, 0.1);
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .nav-links.active {
          transform: translateY(0);
      }

      .nav-links li {
          margin: 1rem 0;
      }

      .hamburger {
          display: block;
      }

      .toggle .line1 {
          transform: rotate(-45deg) translate(-5px, 6px);
      }

      .toggle .line2 {
          opacity: 0;
      }

      .toggle .line3 {
          transform: rotate(45deg) translate(-5px, -6px);
      }

      .categories-title {
          font-size: 1.5rem;
      }
  }

  @media (max-width: 480px) {
      .navbar {
          padding: 1rem;
      }

      .logo {
          font-size: 1.5rem;
      }

      .search-container {
          width: 100%;
      }

      .categories-grid {
          grid-template-columns: 1fr;
      }

      .footer-links {
          flex-direction: column;
      }

      .footer-links a {
          margin: 0.5rem 0;
      }
  }

  /* Estilos para las cards con iconos */
  .category-card {
      background-color: var(--card-bg);
      border-radius: 10px;
      overflow: hidden;
      transition: all 0.3s;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.5rem;
  }

  .category-icon {
      width: 80px;
      height: 80px;
      background-color: rgba(247, 37, 133, 0.1);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 1rem;
  }

  .category-icon i {
      font-size: 2.5rem;
      color: var(--accent-color);
  }

  .category-info {
      text-align: center;
  }

  .category-info h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--text-color);
  }

  .category-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .category-card:hover .category-icon {
      background-color: rgba(200, 27, 38, 0.2);
  }

  .highlight {
      color: var(--accent-color);
      font-weight: bold;
      background-color: rgba(238, 235, 236, 0.1);
      padding: 0 2px;
      border-radius: 2px;
  }

  /* Mejora para el input de búsqueda */
  .search-input {
      text-transform: lowercase;
  }

  .nav-icon {
    width: 50px;
    /* Ajusta el tamaño según necesites */
    height: 50px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-icon:hover {
    transform: scale(1.1);
}
.compass-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.compass-icon i {
    animation: spin 8s linear infinite;
}

.compass-icon:hover {
    transform: scale(1.1);
}

.compass-icon:hover i {
    animation: spin 2s linear infinite;
    color: var(--secondary-color);
}

.compass-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.compass-icon:hover::after {
    border-color: var(--accent-color);
    transform: scale(1.2);
    opacity: 0.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efecto de pulso al cargar la página */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.compass-icon.loading {
    animation: pulse 1.5s ease-in-out 2;
}

