/* RedAI-Web – Changelog modal (extraído de base.html) */

/* Formato simple en descripción: # título grande, ## título menor, **negrita**, *cursiva* */
.simple-format-content .fmt-h1 { display: block; font-size: 1.5rem; font-weight: 700; margin: 0.75em 0 0.35em 0; line-height: 1.3; }
.simple-format-content .fmt-h1:first-child { margin-top: 0; }
.simple-format-content .fmt-h2 { display: block; font-size: 1.25rem; font-weight: 700; margin: 0.6em 0 0.25em 0; line-height: 1.35; }
.simple-format-content .fmt-h2:first-child { margin-top: 0; }
.simple-format-content strong { font-weight: 700; }
.simple-format-content em { font-style: italic; }
.simple-format-content .fmt-ul { margin: 0.5em 0; padding-left: 1.5em; list-style-type: disc; }
.simple-format-content .fmt-ul li { margin: 0.25em 0; }
.simple-format-content .fmt-ul-sub { margin: 0.2em 0 0.2em 1em; padding-left: 1.25em; list-style-type: circle; }
.simple-format-content .fmt-ul-sub li { margin: 0.15em 0; }
.entry-description .fmt-h1 { display: block; font-size: 1.5rem; font-weight: 700; margin: 0.75em 0 0.35em 0; line-height: 1.3; }
.entry-description .fmt-h1:first-child { margin-top: 0; }
.entry-description .fmt-h2 { display: block; font-size: 1.25rem; font-weight: 700; margin: 0.6em 0 0.25em 0; line-height: 1.35; }
.entry-description .fmt-h2:first-child { margin-top: 0; }
.entry-description .fmt-ul { margin: 0.5em 0; padding-left: 1.5em; list-style-type: disc; }
.entry-description .fmt-ul li { margin: 0.25em 0; }
.entry-description .fmt-ul-sub { margin: 0.2em 0 0.2em 1em; padding-left: 1.25em; list-style-type: circle; }
.entry-description .fmt-ul-sub li { margin: 0.15em 0; }

/* ===== MODAL DEL CHANGELOG DEL SIDEBAR - RECONSTRUIDO COMPLETAMENTE ===== */
     
     /* Modal base */
.sidebar-changelog-modal {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
         display: none;
         z-index: 10000;
         align-items: center;
         justify-content: center;
    animation: sidebarModalFadeIn 0.3s ease-out;
     }

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

.sidebar-changelog-modal.show {
         display: flex;
     }

.sidebar-changelog-backdrop {
         position: absolute;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         cursor: pointer;
     }

/* Wrapper del modal */
.sidebar-changelog-container {
    position: relative;
    background: var(--neo-surface);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 95vw;
    max-height: 90vh;
    width: 1100px;
    height: 780px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: sidebarModalSlideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

@keyframes sidebarModalSlideIn {
         from {
             transform: scale(0.9) translateY(-30px);
             opacity: 0;
         }
         to {
             transform: scale(1) translateY(0);
             opacity: 1;
         }
     }

     /* Header del modal */
.sidebar-changelog-header {
    background: linear-gradient(135deg, var(--neo-primary) 0%, var(--neo-accent) 100%);
         padding: 0;
         position: relative;
         overflow: hidden;
         z-index: 2;
     }

.sidebar-changelog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.sidebar-changelog-header-content {
         display: flex;
         align-items: center;
         justify-content: space-between;
         padding: 2rem 2.5rem;
         position: relative;
         z-index: 1;
     }

.sidebar-changelog-header-left {
         display: flex;
         align-items: center;
         gap: 1.5rem;
     }

.sidebar-changelog-icon {
    position: relative;
    width: 64px;
    height: 64px;
}

.icon-circle {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.icon-circle i {
         font-size: 1.5rem;
    color: white;
}

.icon-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.ring-1,
.ring-2,
.ring-3 {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 80px;
    height: 80px;
    top: -8px;
    left: -8px;
    animation-delay: 0s;
}

.ring-2 {
    width: 96px;
    height: 96px;
    top: -16px;
    left: -16px;
    animation-delay: 1s;
}

.ring-3 {
    width: 112px;
    height: 112px;
    top: -24px;
    left: -24px;
    animation-delay: 2s;
}

@keyframes ringPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.6; 
    }
}

.sidebar-changelog-title {
    color: white;
}

.sidebar-changelog-title h2 {
         font-size: 2rem;
         font-weight: 700;
         margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     }

.sidebar-changelog-title p {
         font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
         margin: 0;
         font-weight: 500;
     }

.sidebar-changelog-close {
         width: 48px;
         height: 48px;
         border: none;
    background: rgba(255, 255, 255, 0.2);
         border-radius: 50%;
         cursor: pointer;
         display: flex;
         align-items: center;
         justify-content: center;
         transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-changelog-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.close-inner {
    color: white;
         font-size: 1.25rem;
    z-index: 2;
    position: relative;
}

.close-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-changelog-close:hover .close-ripple {
    width: 100%;
    height: 100%;
     }

/* Contenido del modal */
.sidebar-changelog-content {
    display: flex;
    flex: 1;
    min-height: 0;
    background: var(--neo-bg-secondary);
}

     /* Sidebar de versiones */
.sidebar-versions-sidebar {
         width: 350px;
    background: var(--neo-surface);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
         display: flex;
         flex-direction: column;
         overflow: hidden;
     }

.sidebar-sidebar-header {
         padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(124, 58, 237, 0.05);
         display: flex;
         align-items: center;
         justify-content: space-between;
     }

.sidebar-sidebar-header h3 {
         font-size: 1.25rem;
         font-weight: 600;
    color: var(--neo-text);
         margin: 0;
     }

.sidebar-version-count {
    background: linear-gradient(135deg, var(--neo-primary), var(--neo-accent));
    color: white;
         padding: 0.25rem 0.75rem;
         border-radius: 12px;
         font-size: 0.875rem;
         font-weight: 600;
         min-width: 32px;
         text-align: center;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
     }

.sidebar-versions-list {
         flex: 1;
         overflow-y: auto;
         padding: 1rem;
     }

.sidebar-versions-list::-webkit-scrollbar {
         width: 6px;
     }

.sidebar-versions-list::-webkit-scrollbar-track {
    background: rgba(124, 58, 237, 0.05);
         border-radius: 3px;
     }

.sidebar-versions-list::-webkit-scrollbar-thumb {
    background: var(--neo-primary);
         border-radius: 3px;
     }

.sidebar-versions-list::-webkit-scrollbar-thumb:hover {
    background: var(--neo-accent);
     }

     /* Versión individual */
.sidebar-version-item {
    background: var(--neo-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
         border-radius: 12px;
         padding: 1.25rem;
         margin-bottom: 1rem;
         cursor: pointer;
         transition: all 0.3s ease;
         position: relative;
         overflow: hidden;
     }

.sidebar-version-item::before {
         content: '';
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         height: 3px;
    background: linear-gradient(90deg, var(--neo-primary), var(--neo-accent));
         opacity: 0;
         transition: opacity 0.3s ease;
     }

.sidebar-version-item:hover::before {
         opacity: 1;
     }

.sidebar-version-item:hover {
         transform: translateY(-2px);
         box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--neo-primary);
}

.sidebar-version-item.active {
    border-color: var(--neo-primary);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.sidebar-version-item.active::before {
         opacity: 1;
     }

.sidebar-version-header {
         display: flex;
         align-items: center;
         justify-content: space-between;
         margin-bottom: 0.75rem;
     }

.sidebar-version-number {
    background: linear-gradient(135deg, var(--neo-primary), var(--neo-accent));
    color: white;
         padding: 0.375rem 0.75rem;
         border-radius: 16px;
         font-size: 0.75rem;
         font-weight: 700;
         text-transform: uppercase;
         letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
     }

.sidebar-version-date {
         font-size: 0.75rem;
    color: var(--neo-muted);
         font-weight: 500;
     }

.sidebar-version-title {
         font-size: 1rem;
         font-weight: 600;
    color: var(--neo-text);
         margin: 0 0 0.5rem 0;
         line-height: 1.4;
     }

.sidebar-version-subtitle {
         font-size: 0.875rem;
    color: var(--neo-muted);
         margin: 0;
         line-height: 1.4;
         display: -webkit-box;
         -webkit-line-clamp: 2;
         line-clamp: 2;
         -webkit-box-orient: vertical;
         overflow: hidden;
     }

     /* Loading de versiones */
.sidebar-loading-versions {
         text-align: center;
         padding: 2rem 1rem;
     }

.sidebar-loading-dots {
         display: flex;
         justify-content: center;
         gap: 0.5rem;
         margin-bottom: 1rem;
     }

.sidebar-loading-dots span {
         width: 8px;
         height: 8px;
    background: var(--neo-primary);
         border-radius: 50%;
    animation: sidebarLoadingBounce 1.4s ease-in-out infinite both;
     }

.sidebar-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.sidebar-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes sidebarLoadingBounce {
         0%, 80%, 100% { transform: scale(0); }
         40% { transform: scale(1); }
     }

.sidebar-loading-versions p {
    color: var(--neo-muted);
         font-size: 0.875rem;
         margin: 0;
     }

     /* Contenido principal */
.sidebar-content-main {
         flex: 1;
         display: flex;
         flex-direction: column;
         overflow: hidden;
     }

.sidebar-content-header {
         padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--neo-surface);
     }

.sidebar-selected-version h3 {
         font-size: 1.75rem;
         font-weight: 700;
    background: linear-gradient(135deg, var(--neo-primary), var(--neo-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
         margin: 0 0 0.5rem 0;
     }

.sidebar-selected-version p {
         font-size: 1rem;
    color: var(--neo-muted);
         margin: 0;
         line-height: 1.5;
     }

.sidebar-content-body {
         flex: 1;
         padding: 2rem;
         overflow-y: auto;
    background: var(--neo-bg-secondary);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
     }

.sidebar-content-body::-webkit-scrollbar {
         width: 8px;
     }

.sidebar-content-body::-webkit-scrollbar-track {
    background: rgba(124, 58, 237, 0.05);
         border-radius: 4px;
     }

.sidebar-content-body::-webkit-scrollbar-thumb {
    background: var(--neo-primary);
         border-radius: 4px;
     }

.sidebar-content-body::-webkit-scrollbar-thumb:hover {
    background: var(--neo-accent);
     }

     /* Estado vacío */
.sidebar-empty-content {
         text-align: center;
         padding: 2rem;
    color: var(--neo-muted);
     }

.sidebar-empty-content .sidebar-empty-icon {
         font-size: 3rem;
         margin-bottom: 1rem;
         opacity: 0.5;
    color: var(--neo-primary);
     }

.sidebar-empty-content h3 {
         font-size: 1.125rem;
         font-weight: 600;
         margin-bottom: 0.5rem;
    color: var(--neo-text);
     }

.sidebar-empty-content p {
         font-size: 0.875rem;
         line-height: 1.5;
         max-width: 300px;
         margin: 0 auto;
     }

     /* Contenido de la versión */
.sidebar-version-content {
    animation: sidebarContentFadeIn 0.3s ease-out;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes sidebarContentFadeIn {
         from { opacity: 0; transform: translateY(10px); }
         to { opacity: 1; transform: translateY(0); }
     }

.sidebar-version-meta {
         display: flex;
         gap: 1rem;
         flex-wrap: wrap;
         margin-bottom: 2rem;
         padding: 1rem;
    background: var(--neo-surface);
         border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
     }

.sidebar-meta-item {
         display: flex;
         align-items: center;
         gap: 0.5rem;
         font-size: 0.875rem;
    color: var(--neo-muted);
     }

.sidebar-meta-item i {
    color: var(--neo-primary);
         font-size: 0.75rem;
     }

.sidebar-version-description {
    background: var(--neo-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
         border-radius: 12px;
         padding: 1.5rem;
         margin-bottom: 2rem;
         line-height: 1.6;
    color: var(--neo-text);
         font-size: 1rem;
     }

.sidebar-version-media {
    background: var(--neo-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
         border-radius: 12px;
         padding: 1.5rem;
     }

.sidebar-media-title {
         font-size: 1.125rem;
         font-weight: 600;
    color: var(--neo-text);
         margin-bottom: 1rem;
         display: flex;
         align-items: center;
         gap: 0.5rem;
     }

.sidebar-media-grid {
         display: grid;
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
         gap: 1rem;
     }

.sidebar-media-item {
         border-radius: 8px;
         overflow: hidden;
    background: var(--neo-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
         transition: all 0.3s ease;
     }

.sidebar-media-item:hover {
         transform: scale(1.05);
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     }

.sidebar-media-item img {
         width: 100%;
         height: 120px;
         object-fit: cover;
         cursor: pointer;
     }

.sidebar-media-item video {
         width: 100%;
         height: 120px;
         object-fit: cover;
     }

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) {
    .sidebar-changelog-container {
        width: 92vw;
        max-width: 700px;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px;
    }
    .sidebar-changelog-content {
        flex-direction: column;
    }
    .sidebar-versions-sidebar {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .sidebar-versions-list {
        flex: 0 0 auto;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-version-item {
        flex: 0 0 auto;
        min-width: 200px;
        margin-bottom: 0;
    }
    .sidebar-content-main {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .sidebar-content-body {
        flex: 1;
        min-height: 0;
        padding: 1rem 1.25rem;
    }
    .sidebar-changelog-header-content {
        padding: 1.25rem 1.5rem;
    }
    .sidebar-changelog-header-left {
        gap: 1rem;
    }
    .sidebar-changelog-icon {
        width: 48px;
        height: 48px;
    }
    .sidebar-changelog-title h2 {
        font-size: 1.35rem;
    }
    .sidebar-changelog-title p {
        font-size: 0.9rem;
    }
    .sidebar-sidebar-header {
        padding: 1rem 1.25rem;
    }
    .sidebar-sidebar-header h3 {
        font-size: 1.1rem;
    }
    .sidebar-content-header {
        padding: 1.25rem;
    }
    .sidebar-selected-version h3 {
        font-size: 1.35rem;
    }
}

/* ===== MÓVIL (hasta 767px) ===== */
@media (max-width: 767px) {
    .sidebar-changelog-modal {
        align-items: flex-end;
        padding: 0;
    }
    .sidebar-changelog-modal .sidebar-changelog-container {
        width: 100vw;
        max-width: 100%;
        height: 92vh;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }
    .sidebar-changelog-header {
        padding: 0;
        border-radius: 20px 20px 0 0;
    }
    .sidebar-changelog-header-content {
        padding: 1rem 1.25rem;
    }
    .sidebar-changelog-icon {
        width: 44px;
        height: 44px;
    }
    .icon-circle i {
        font-size: 1.2rem;
    }
    .sidebar-changelog-title h2 {
        font-size: 1.2rem;
    }
    .sidebar-changelog-title p {
        font-size: 0.85rem;
    }
    .sidebar-changelog-close {
        width: 40px;
        height: 40px;
    }
    .close-inner {
        font-size: 1.1rem;
    }
    .sidebar-versions-sidebar {
        min-height: 160px;
        max-height: 200px;
    }
    .sidebar-sidebar-header {
        padding: 0.75rem 1rem;
    }
    .sidebar-sidebar-header h3 {
        font-size: 1rem;
    }
    .sidebar-version-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    .sidebar-versions-list {
        padding: 10px;
        gap: 8px;
    }
    .sidebar-version-item {
        min-width: 180px;
        padding: 1rem;
    }
    .sidebar-content-header {
        padding: 1rem;
    }
    .sidebar-selected-version h3 {
        font-size: 1.2rem;
    }
    .sidebar-selected-version p {
        font-size: 0.9rem;
    }
    .sidebar-content-body {
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-empty-content {
        padding: 1.5rem 1rem;
    }
    .sidebar-empty-content .sidebar-empty-icon {
        font-size: 2.5rem;
    }
    .sidebar-empty-content h3 {
        font-size: 1.1rem;
    }
    .sidebar-empty-content p {
        font-size: 0.9rem;
    }
}

      /* ===== VISOR DE MEDIA MEJORADO ===== */
      .media-viewer-modal {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.9);
          backdrop-filter: blur(10px);
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 20000;
          animation: mediaViewerFadeIn 0.3s ease-out;
      }

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

      .media-viewer-backdrop {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          cursor: pointer;
      }

      .media-viewer-container {
          position: relative;
          background: var(--neo-surface);
          border-radius: 24px;
          box-shadow: 
              0 25px 50px -12px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(255, 255, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
          max-width: 95vw;
          max-height: 95vh;
          width: 1200px;
          height: 800px;
          overflow: hidden;
          animation: mediaViewerSlideIn 0.3s ease-out;
          border: 1px solid rgba(255, 255, 255, 0.1);
          backdrop-filter: blur(20px);
      }

      @keyframes mediaViewerSlideIn {
          from {
              transform: scale(0.9) translateY(-30px);
              opacity: 0;
          }
          to {
              transform: scale(1) translateY(0);
              opacity: 1;
          }
      }

      .media-viewer-header {
          background: linear-gradient(135deg, var(--neo-primary) 0%, var(--neo-accent) 100%);
          padding: 0;
          position: relative;
          overflow: hidden;
          z-index: 2;
      }

      .media-viewer-header-content {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 2rem 2.5rem;
          position: relative;
          z-index: 1;
      }

      .media-viewer-header-left {
          display: flex;
          align-items: center;
          gap: 1.5rem;
      }

      .media-viewer-icon {
          width: 64px;
          height: 64px;
          background: rgba(255, 255, 255, 0.2);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, 0.3);
      }

      .media-viewer-icon i {
          font-size: 1.5rem;
          color: white;
      }

      .media-viewer-title h2 {
          font-size: 2rem;
          font-weight: 700;
          margin: 0 0 0.5rem 0;
          color: white;
          text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }

      .media-viewer-title p {
          font-size: 1rem;
          color: rgba(255, 255, 255, 0.9);
          margin: 0;
          font-weight: 500;
      }

      .media-viewer-close {
          width: 48px;
          height: 48px;
          border: none;
          background: rgba(255, 255, 255, 0.2);
          border-radius: 50%;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.3s ease;
          position: relative;
          backdrop-filter: blur(10px);
      }

      .media-viewer-close:hover {
          background: rgba(255, 255, 255, 0.3);
          transform: scale(1.1);
      }

      .media-viewer-content {
          display: flex;
          height: calc(100% - 120px);
          background: #000;
      }

      .media-content-main {
          flex: 1;
          display: flex;
          flex-direction: column;
          overflow: hidden;
      }

      .media-content-body {
          flex: 1;
          padding: 2rem;
          display: flex;
          align-items: center;
          justify-content: center;
          position: relative;
          background: #000;
      }

      .media-content-container {
          max-width: calc(100% - 140px);
          max-height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
      }

      .media-content-container img {
          max-width: 100%;
          max-height: 100%;
          object-fit: contain;
          border-radius: 12px;
          box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
          cursor: zoom-in;
          transition: all 0.3s ease;
      }

      .media-content-container video {
          max-width: 100%;
          max-height: 100%;
          border-radius: 12px;
          box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      }

      .file-viewer {
          background: linear-gradient(135deg, #667eea, #764ba2);
          padding: 3rem;
          border-radius: 12px;
          text-align: center;
          color: white;
      }

      .file-viewer i {
          font-size: 4rem;
          margin-bottom: 1rem;
          opacity: 0.8;
      }

      .file-viewer h3 {
          margin: 0 0 1rem 0;
          font-size: 1.5rem;
      }

      .file-viewer p {
          margin: 0 0 1.5rem 0;
          opacity: 0.8;
      }

      .file-viewer a {
          background: rgba(255, 255, 255, 0.2);
          color: white;
          padding: 0.75rem 1.5rem;
          border-radius: 8px;
          text-decoration: none;
          backdrop-filter: blur(10px);
          transition: all 0.3s ease;
          display: inline-flex;
          align-items: center;
          gap: 0.5rem;
      }

      .file-viewer a:hover {
          background: rgba(255, 255, 255, 0.3);
      }

      .media-nav-btn {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          background: rgba(255, 255, 255, 0.2);
          border: none;
          color: white;
          width: 60px;
          height: 60px;
          border-radius: 50%;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 1.5rem;
          backdrop-filter: blur(10px);
          transition: all 0.3s ease;
          z-index: 10;
      }

      .media-nav-btn:hover {
          background: rgba(255, 255, 255, 0.3);
          transform: translateY(-50%) scale(1.1);
      }

      .media-nav-prev {
          left: 1rem;
      }

      .media-nav-next {
          right: 1rem;
      }

      .media-indicators {
          position: absolute;
          bottom: 1rem;
          left: 50%;
          transform: translateX(-50%);
          display: flex;
          gap: 0.75rem;
          z-index: 10;
      }

      .indicator-btn {
          width: 16px;
          height: 16px;
          border-radius: 50%;
          border: 2px solid rgba(255, 255, 255, 0.3);
          background: rgba(255, 255, 255, 0.2);
          cursor: pointer;
          transition: all 0.3s ease;
      }

      .indicator-btn:hover {
          background: rgba(255, 255, 255, 0.4);
      }

      .indicator-btn.active {
          background: white;
          border-color: rgba(255, 255, 255, 0.8);
      }

      .media-controls {
          position: absolute;
          top: 1rem;
          right: 1rem;
          display: flex;
          gap: 0.5rem;
          z-index: 10;
      }

      .media-controls button {
          background: rgba(255, 255, 255, 0.2);
          border: none;
          color: white;
          width: 40px;
          height: 40px;
          border-radius: 50%;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          backdrop-filter: blur(10px);
          transition: all 0.3s ease;
      }

      .media-controls button:hover {
          background: rgba(255, 255, 255, 0.3);
          transform: scale(1.1);
      }

      /* Responsive para el visor de media */
      @media (max-width: 768px) {
          .media-viewer-container {
              width: 95vw;
              height: 95vh;
              border-radius: 16px;
          }
          
          .media-viewer-header-content {
              padding: 1.5rem;
          }
          
          .media-viewer-header-left {
              gap: 1rem;
          }
          
          .media-viewer-icon {
              width: 48px;
              height: 48px;
          }
          
          .media-viewer-title h2 {
              font-size: 1.5rem;
          }
          
          .media-content-body {
              padding: 1rem;
          }
          
          .media-nav-btn {
              width: 50px;
              height: 50px;
              font-size: 1.2rem;
          }
          
          .media-nav-prev {
              left: 0.5rem;
          }
          
          .media-nav-next {
              right: 0.5rem;
         }
     }

          /* ===== BOTÓN DE CHANGELOG RECONSTRUIDO DESDE CERO ===== */
      
      .changelog-btn-new {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: var(--neo-bg-secondary);
        border: 1px solid rgba(124, 58, 237, 0.2);
        border-radius: 10px;
        color: var(--neo-text);
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        overflow: hidden;
        transform: translateX(0);
      }

      .changelog-btn-new:hover {
        transform: translateX(2px) translateY(-1px);
        background: linear-gradient(135deg, var(--neo-primary), var(--neo-accent));
        border-color: rgba(124, 58, 237, 0.4);
        color: white;
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
      }

      .changelog-btn-new:active {
        transform: translateX(2px) translateY(-1px) scale(1.05);
        animation: changelogClickNew 0.3s ease-out;
      }

      .changelog-icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        color: var(--neo-primary);
        transition: all 0.3s ease;
      }

      .changelog-btn-new:hover .changelog-icon {
        color: white;
      }

      .changelog-btn-new:hover .changelog-icon i {
        transform: rotate(10deg);
      }

      .changelog-icon i {
        font-size: 16px;
        transition: transform 0.3s ease;
      }

      .changelog-text {
        font-weight: 500;
        transition: color 0.3s ease;
      }

      /* Efecto de brillo lateral */
      .changelog-shine-effect {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
        pointer-events: none;
        z-index: 1;
      }

      .changelog-btn-new:hover .changelog-shine-effect {
        left: 100%;
      }

      /* Animación de click */
      @keyframes changelogClickNew {
        0% {
          background: linear-gradient(135deg, var(--neo-primary), var(--neo-accent));
        }
        50% {
          background: linear-gradient(135deg, #fbbf24, #f59e0b);
        }
        100% {
          background: linear-gradient(135deg, var(--neo-primary), var(--neo-accent));
        }
      }

          .icon-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
        border-radius: 50%;
        animation: iconGlow 2s ease-in-out infinite alternate;
      }

    .btn-particles::before,
    .btn-particles::after {
        content: '';
        position: absolute;
        width: 4px;
        height: 4px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        animation: particleFloat 6s linear infinite;
    }

    .btn-particles::before {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .btn-particles::after {
        top: 60%;
        right: 10%;
        animation-delay: 3s;
    }

    @keyframes changelogPulse {
        0%, 100% {
            box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
        }
        50% {
            box-shadow: 0 4px 25px rgba(124, 58, 237, 0.4);
        }
    }

    @keyframes iconGlow {
        0% {
            opacity: 0.3;
            transform: translate(-50%, -50%) scale(0.8);
        }
        100% {
            opacity: 0.6;
            transform: translate(-50%, -50%) scale(1.2);
        }
    }

    

    @keyframes particleFloat {
        0% {
            transform: translateY(0) rotate(0deg);
            opacity: 0;
        }
        10% {
            opacity: 1;
        }
        90% {
            opacity: 1;
        }
        100% {
            transform: translateY(-20px) rotate(360deg);
            opacity: 0;
        }
    }

    /* Scroll horizontal de versiones en móvil/tablet - decorado */
    .sidebar-versions-list::-webkit-scrollbar {
        height: 6px;
    }
    .sidebar-versions-list::-webkit-scrollbar-track {
        background: rgba(124, 58, 237, 0.08);
        border-radius: 3px;
    }
    .sidebar-versions-list::-webkit-scrollbar-thumb {
        background: rgba(124, 58, 237, 0.35);
        border-radius: 3px;
    }
    @media (max-width: 1023px) {
        .sidebar-versions-list::-webkit-scrollbar-thumb:hover {
            background: rgba(124, 58, 237, 0.5);
        }
    }

/* Keyframes para notificaciones de changelog (sidebar y pública) – antes inyectados por JS */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideOutUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes slideInUp {
    from { transform: translate(-50%, -40%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}
#public-changelog-notification > div {
    animation: slideInUp 0.4s ease-out;
}
