    :root {
        --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
        --font-display: 'Outfit', sans-serif;
    }

    /* Tables responsive */
    .content-wrapper table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    @media (min-width: 768px) {
        .content-wrapper table {
            display: table;
            white-space: normal;
        }
    }

    html, body {
        font-family: var(--font-primary);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        touch-action: auto !important;
        -webkit-touch-callout: default !important;
        -webkit-user-select: auto !important;
        user-select: auto !important;
    }

    h1, h2, h3, h4, h5, h6, .btn-text, .divine-nav-btn {
        font-family: var(--font-display);
    }

    /* Ensure touch scroll works on all elements */
    * {
        touch-action: auto;
    }
    
    /* Override pointer-events: none for scrollable areas only */
    main, article, .article-content, .book-page {
        touch-action: auto !important;
        pointer-events: auto !important;
    }

    .flex-center {
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    .search-container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    header {
      background: rgba(13, 17, 23, 0.9) !important;
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      transition: all 0.3s ease;
    }

    .divine-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.125rem;
        padding: 0.4rem 0.65rem;
        border-radius: 0.625rem;
        background: transparent;
        border: 1px solid transparent;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.6rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        height: 2.5rem;
        white-space: nowrap;
    }

    .divine-nav-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
        border-radius: 0;
    }

    .divine-nav-btn.active-page {
        color: #60a5fa;
        background: rgba(255, 255, 255, 0.08);
        border-bottom: 0.125rem solid #60a5fa;
        border-radius: 0;
        min-height: 2.5rem;
        margin-top: 0;
    }

    .divine-nav-btn i, .divine-nav-btn svg, .divine-nav-btn img {
        font-size: 1.1rem !important;
        width: 1.1rem !important;
        height: 1.1rem !important;
        transition: transform 0.3s ease;
    }
    .divine-nav-btn.nav-right-sm i, .divine-nav-btn.nav-right-sm svg, .divine-nav-btn.nav-right-sm img {
        font-size: 0.95rem !important;
        width: 0.95rem !important;
        height: 0.95rem !important;
    }
    .divine-nav-btn.nav-right-lg i, .divine-nav-btn.nav-right-lg svg {
        font-size: 1.25rem !important;
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    #userMenuButton {
        flex-direction: row !important;
        gap: 0.35rem !important;
        padding: 0 0.5rem !important;
    }
    #userMenuButton img, #userMenuButton div.h-6 {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.65rem !important;
    }
    #userMenuButton .fa-chevron-down {
        font-size: 0.6rem !important;
        width: 0.6rem !important;
        height: 0.6rem !important;
        margin-left: 0.15rem;
        opacity: 0.6;
    }

    .divine-nav-btn:hover i {
        transform: scale(1.1);
    }

    .divine-nav-btn .btn-text {
        display: inline-block;
        opacity: 0.8;
    }

    .divine-nav-btn:hover .btn-text {
        opacity: 1;
    }

    /* Mobile Text Handling + compact header */
    @media (max-width: 767px) {
        .divine-nav-btn .btn-text {
            display: none;
        }
        header { height: 1.75rem !important; min-height: 1.75rem !important; }
        .divine-nav-btn { height: 1.75rem !important; min-height: 1.75rem !important; padding: 0.15rem 0.45rem !important; }
        main#main { padding-top: 1.75rem !important; }
    }

    .icon-color {
      color: white;
    }

    /* ===== MENÚ MÓVIL INFERIOR ===== */
    .mobile-bottom-menu {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
      border-top: 1px solid #4a5568;
      padding: 2px 0 calc(2px + env(safe-area-inset-bottom));
      z-index: 1000;
      display: none;
      box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    }

    .mobile-bottom-menu .menu-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0;
      max-width: 100%;
      margin: 0 auto;
      padding: 0 10px;
    }

    .mobile-bottom-menu .menu-icon {
      height: 40px;
      width: 40px;
      margin: 0 auto;
      border-radius: 8px;
    }

    .mobile-bottom-menu .menu-icon:hover {
      background-color: #4a5568;
      transform: scale(1.05);
    }

    .mobile-bottom-menu .menu-icon.active-page {
      background-color: #3182CE !important;
    }

    .mobile-bottom-menu .menu-icon svg {
      height: 20px;
      width: 20px;
    }

    /* Mostrar menú móvil solo en pantallas pequeñas */
    @media (max-width: 768px) {
      .mobile-bottom-menu {
        display: block;
      }

      /* Ocultar los botones centrales del menú superior en móvil */
      .desktop-center-buttons {
        display: none;
      }

   
    }

    /* En pantallas grandes, ocultar menú móvil */
    @media (min-width: 769px) {
      .mobile-bottom-menu {
        display: none;
      }

      .desktop-center-buttons {
        display: flex;
      }

      body {
        padding-bottom: 0 !important;
      }
    }

    /* Global Body Overrides for Premium Theme */
    body {
        background-color: #f8fafc; /* Neutral light background by default */
        margin: 0;
        padding: 0;
        min-height: 100vh;
        width: 100%;
        color: #1a202c;
        overflow-x: hidden;
    }

    /* Support for pages that want a full-height dark background without gaps */
    .theme-dark {
        background-color: #010409 !important;
        color: #e6edf3 !important;
    }

    .hero-title-premium {
        text-align: center !important;
        width: 100%;
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    @media (max-width: 640px) {
      .footer-content {
        padding: 8px 0;
      }

      .footer-credits {
        font-size: 0.7rem;
      }
    }

    /* === MODAL DE IDIOMAS — fixed viewport, solo scroll interno === */
    #languageModal {
      display: none;
      position: fixed;
      z-index: 200000;
      inset: 0;
      overflow: hidden;
      background-color: rgba(0, 0, 0, 0.80);
      padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    }
    #languageModal.modal-open {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2vh 1rem;
      overflow: hidden;
    }
    .modal-content {
      background-color: #1a202c;
      padding: 20px;
      border-radius: 12px;
      width: 92%;
      max-width: 850px;
      max-height: min(85vh, 640px);
      height: auto;
      overflow: hidden;
      color: white;
      display: flex;
      flex-direction: column;
      position: relative;
      z-index: 200001;
      box-shadow: 0 20px 60px rgba(0,0,0,0.6);
      min-height: 0;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      border-bottom: 1px solid #3e4c59;
      padding-bottom: 10px;
      flex-shrink: 0;
    }

    .close {
      color: #aaa;
      /* Target táctil mínimo 44px recomendado por Apple/Google */
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
      margin-left: auto;
      transition: all 0.2s ease;
      border-radius: 50%;
    }

    .close:hover {
      color: white;
      background-color: rgba(255,255,255,0.1);
    }

    #languageSearch {
      width: 100%;
      box-sizing: border-box;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid #3e4c59;
      background-color: #2d3748;
      color: white;
      font-size: 15px; /* 15px evita zoom automático en iOS (umbral es 16px en Safari) */
      margin-bottom: 12px;
      flex-shrink: 0;
    }

    #languageSearch:focus {
      outline: none;
      border-color: #4299e1;
      box-shadow: 0 0 0 2px rgba(66,153,225,0.3);
    }

    #languageList {
      flex: 1 1 auto;
      overflow-y: auto;
      overflow-x: hidden;
      min-height: 0;
      max-height: none;
      width: 100%;
      padding: 4px 2px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 6px;
      align-content: start;
      -webkit-overflow-scrolling: touch;
    }

    /* Personalizar scrollbar */
    #languageList::-webkit-scrollbar {
      width: 5px;
    }

    #languageList::-webkit-scrollbar-track {
      background: #2d3748;
      border-radius: 4px;
    }

    #languageList::-webkit-scrollbar-thumb {
      background: #4a5568;
      border-radius: 4px;
    }

    #languageList::-webkit-scrollbar-thumb:hover {
      background: #718096;
    }

    /* Elementos de idioma: target táctil generoso */
    .language-item {
      padding: 10px 8px;
      border-radius: 8px;
      cursor: pointer;
      background-color: #2d3748;
      color: white;
      font-size: 13px;
      text-align: left;
      transition: background-color 0.15s ease;
      /* target táctil mínimo */
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;
      line-height: 1.2;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      box-sizing: border-box;
      min-width: 0;
    }

    .language-item:hover,
    .language-item:active {
      background-color: #4a5568;
    }

    /* Tablet */
    @media (max-width: 768px) {
      #languageModal.modal-open {
        padding-top: 3vh;
        padding-bottom: 3vh;
      }
      .modal-content {
        width: 94%;
        padding: 16px;
      }
      #languageList {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    /* Móvil pequeño */
    @media (max-width: 480px) {
      #languageModal.modal-open {
        padding: 1vh 0.5rem;
        align-items: center;
      }
      .modal-content {
        width: 96%;
        padding: 12px;
        border-radius: 10px;
      }
      #languageSearch {
        font-size: 16px; /* exactamente 16px: evita zoom en Safari iOS */
        padding: 9px 10px;
        margin-bottom: 8px;
      }
      #languageList {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
      }
      .language-item {
        font-size: 12px;
        padding: 9px 5px;
        min-height: 40px;
      }
    }

    /* Estilos para el botón "Volver arriba" */
    #back-to-top-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
      background-color: #3182CE;
      /* Color azul que coincide con tu tema */
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 99999;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    #back-to-top-button:hover {
      background-color: #2c5282;
      /* Azul más oscuro al pasar el cursor */
      transform: translateY(-3px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    #back-to-top-button.visible {
      opacity: 1;
      visibility: visible;
    }

    /* Estilos responsivos para el botón "Volver arriba" */
    @media (max-width: 640px) {
      #back-to-top-button {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
      }
    }

    /* Sistema de modales genérico - Estilos base elegantes */
    .modal-overlay {
      display: none;
      position: fixed;
      z-index: 200000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background-color: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(4px);
    }

    .modal-overlay.modal-open {
      display: flex;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

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

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Contenedor del modal - tamaños adaptativos */
    .modal-container {
      background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
      border-radius: 16px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.1);
      overflow: hidden;
      animation: slideIn 0.3s ease-out;
      position: relative;
      color: #ffffff;
    }

    /* Tamaños de modal */
    .modal-container.modal-small {
      width: 95%;
      max-width: 500px;
      max-height: 70vh;
    }

    .modal-container.modal-medium {
      width: 95%;
      max-width: 700px;
      max-height: 80vh;
    }

    .modal-container.modal-large {
      width: 95%;
      max-width: 900px;
      max-height: 85vh;
    }

    .modal-container.modal-fullscreen {
      width: 98%;
      max-width: 100vw;
      height: 95vh;
      max-height: 95vh;
    }

    .modal-container.modal-extra-large {
      width: 90%;
      max-width: 1200px;
      max-height: 90vh;
    }

    /* Header del modal */
    .modal-header-elegant {
      background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
      padding: 20px 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header-elegant h3 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
      color: #ffffff;
      display: flex;
      align-items: center;
    }

    .modal-header-elegant .modal-icon {
      margin-right: 10px;
      font-size: 1.25rem;
    }

    .modal-close-button {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #cbd5e0;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .modal-close-button:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      transform: scale(1.1);
    }

    /* Body del modal */
    .modal-body-elegant {
      padding: 24px;
      overflow-y: auto;
      max-height: calc(90vh - 120px);
    }

    .modal-body-elegant.modal-body-fullheight {
      height: calc(95vh - 120px);
      overflow-y: auto;
    }

    /* Scrollbar personalizada para el body del modal */
    .modal-body-elegant::-webkit-scrollbar {
      width: 6px;
    }

    .modal-body-elegant::-webkit-scrollbar-track {
      background: rgba(45, 55, 72, 0.5);
      border-radius: 4px;
    }

    .modal-body-elegant::-webkit-scrollbar-thumb {
      background: rgba(113, 128, 150, 0.5);
      border-radius: 4px;
    }

    .modal-body-elegant::-webkit-scrollbar-thumb:hover {
      background: rgba(113, 128, 150, 0.7);
    }

    /* Estilos para elementos de formulario dentro del modal */
    .modal-form-group {
      margin-bottom: 16px;
    }

    .modal-form-label {
      font-weight: 500;
      color: #e2e8f0;
      margin-bottom: 8px;
      display: block;
      font-size: 0.95rem;
    }

    .modal-form-input,
    .modal-form-textarea,
    .modal-form-select {
      background: rgba(45, 55, 72, 0.8);
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      color: #ffffff;
      font-size: 1rem;
      transition: all 0.3s ease;
      width: 100%;
      padding: 12px;
    }

    .modal-form-textarea {
      resize: vertical;
      min-height: 120px;
    }

    .modal-form-input:focus,
    .modal-form-textarea:focus,
    .modal-form-select:focus {
      outline: none;
      border-color: #3182ce;
      box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
      background: rgba(45, 55, 72, 1);
    }

    .modal-form-input::placeholder,
    .modal-form-textarea::placeholder {
      color: #a0aec0;
    }

    /* Contenedor de checkbox elegante */
    .modal-checkbox-container {
      background: rgba(45, 55, 72, 0.4);
      border-radius: 10px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 20px;
    }

    .modal-checkbox-container label {
      margin-bottom: 0;
      display: flex;
      align-items: center;
      cursor: pointer;
      font-weight: 400;
    }

    .modal-checkbox-container input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-right: 10px;
      accent-color: #3182ce;
      cursor: pointer;
    }

    .modal-checkbox-description {
      color: #a0aec0;
      font-size: 0.85rem;
      margin-top: 8px;
      display: flex;
      align-items: center;
    }

    /* Contenedor de botones elegante */
    .modal-button-container {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 24px;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-button-container.modal-buttons-center {
      justify-content: center;
    }

    .modal-button-container.modal-buttons-full {
      flex-direction: column;
      gap: 10px;
    }

    /* Botones del modal */
    .modal-button {
      padding: 12px 24px;
      border-radius: 10px;
      font-weight: 500;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      cursor: pointer;
      border: none;
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
    }

    .modal-button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .modal-button.modal-button-secondary {
      background: rgba(113, 128, 150, 0.2);
      color: #e2e8f0;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .modal-button.modal-button-secondary:hover:not(:disabled) {
      background: rgba(113, 128, 150, 0.3);
      transform: translateY(-1px);
    }

    .modal-button.modal-button-primary {
      background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    }

    .modal-button.modal-button-primary:hover:not(:disabled) {
      background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(49, 130, 206, 0.4);
    }

    .modal-button.modal-button-primary:active {
      transform: translateY(0);
    }

    .modal-button.modal-button-danger {
      background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    }

    .modal-button.modal-button-danger:hover:not(:disabled) {
      background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(229, 62, 62, 0.4);
    }

    .modal-button.modal-button-success {
      background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
    }

    .modal-button.modal-button-success:hover:not(:disabled) {
      background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(56, 161, 105, 0.4);
    }

    /* Área de contenido especial para herramientas musicales */
    .modal-tool-area {
      background: rgba(26, 32, 44, 0.5);
      border-radius: 12px;
      padding: 20px;
      margin: 16px 0;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-tool-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }

    .modal-tool-display {
      text-align: center;
      padding: 20px;
      background: rgba(45, 55, 72, 0.6);
      border-radius: 8px;
      margin: 16px 0;
    }

    /* Estilos responsivos del sistema de modales */
    @media (max-width: 768px) {
      .modal-container {
        width: 95%;
        margin: 5% auto;
      }

      .modal-container.modal-fullscreen {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
      }

      .modal-header-elegant {
        padding: 16px 20px;
      }

      .modal-header-elegant h3 {
        font-size: 1.25rem;
      }

      .modal-body-elegant {
        padding: 20px;
      }

      .modal-button-container {
        flex-direction: column;
        gap: 10px;
      }

      .modal-button {
        width: 100%;
        justify-content: center;
      }
    }

    @media (max-width: 480px) {
      .modal-container {
        width: 98%;
        border-radius: 12px;
      }

      .modal-header-elegant {
        padding: 14px 16px;
      }

      .modal-body-elegant {
        padding: 16px;
      }

      .modal-form-textarea {
        min-height: 100px;
        font-size: 16px;
        /* Prevenir zoom en iOS */
      }

      .modal-form-input {
        font-size: 16px;
        /* Prevenir zoom en iOS */
      }
    }

    /* Mantener compatibilidad con el modal de reportar problemas existente */
    #reportProblemModal {
      display: none;
      position: fixed;
      z-index: 200000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background-color: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(4px);
    }

    #reportProblemModal.modal-open {
      display: flex;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

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

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    #reportProblemModal .modal-content {
      background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
      border-radius: 16px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.1);
      width: 95%;
      max-width: 600px;
      max-height: 90vh;
      overflow: hidden;
      animation: slideIn 0.3s ease-out;
    }

    #reportProblemModal .modal-header {
      background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
      padding: 20px 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    #reportProblemModal .modal-header h3 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
      color: #ffffff;
      display: flex;
      align-items: center;
    }

    #reportProblemModal .modal-header h3::before {
      content: "🐛";
      margin-right: 10px;
      font-size: 1.25rem;
    }

    #reportProblemModal .close {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #cbd5e0;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    #reportProblemModal .close:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      transform: scale(1.1);
    }

    #reportProblemModal .modal-body {
      padding: 24px;
    }

    #reportProblemModal label {
      font-weight: 500;
      color: #e2e8f0;
      margin-bottom: 8px;
      display: block;
      font-size: 0.95rem;
    }

    #reportProblemModal textarea {
      background: rgba(45, 55, 72, 0.8);
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      color: #ffffff;
      font-size: 1rem;
      transition: all 0.3s ease;
      resize: vertical;
      min-height: 120px;
    }

    #reportProblemModal textarea:focus {
      outline: none;
      border-color: #3182ce;
      box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
      background: rgba(45, 55, 72, 1);
    }

    #reportProblemModal textarea::placeholder {
      color: #a0aec0;
    }

    #reportProblemModal .checkbox-container {
      background: rgba(45, 55, 72, 0.4);
      border-radius: 10px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 20px;
    }

    #reportProblemModal .checkbox-container label {
      margin-bottom: 0;
      display: flex;
      align-items: center;
      cursor: pointer;
      font-weight: 400;
    }

    #reportProblemModal input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-right: 10px;
      accent-color: #3182ce;
      cursor: pointer;
    }

    #reportProblemModal .checkbox-description {
      color: #a0aec0;
      font-size: 0.85rem;
      margin-top: 8px;
      display: flex;
      align-items: center;
    }

    #reportProblemModal .checkbox-description::before {
      content: "📸";
      margin-right: 6px;
    }

    #reportProblemModal .button-container {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 24px;
    }

    #reportProblemModal button {
      padding: 12px 24px;
      border-radius: 10px;
      font-weight: 500;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      cursor: pointer;
      border: none;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #reportProblemModal button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    #reportProblemModal #cancelReportButton {
      background: rgba(113, 128, 150, 0.2);
      color: #e2e8f0;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    #reportProblemModal #cancelReportButton:hover:not(:disabled) {
      background: rgba(113, 128, 150, 0.3);
      transform: translateY(-1px);
    }

    #reportProblemModal button[type="submit"] {
      background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    }

    #reportProblemModal button[type="submit"]:hover:not(:disabled) {
      background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(49, 130, 206, 0.4);
    }

    #reportProblemModal button[type="submit"]:active {
      transform: translateY(0);
    }

    /* CENTRADO ESPECÍFICO PARA EL MODAL DEL AFINADOR */
    #modal {
      display: none;
      position: fixed;
      z-index: 200000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
    }

    #modal.show,
    #modal[style*="display: block"] {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
    }

    /* Asegurar que el contenido del modal esté centrado */
    #modal>div {
      margin: 0 auto !important;
      position: relative !important;
      transform: none !important;
    }

    /* CENTRADO ESPECÍFICO PARA EL MODAL DEL METRÓNOMO */
    #metronomeModal {
      display: none;
      position: fixed;
      z-index: 200000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
    }

    #metronomeModal.show,
    #metronomeModal[style*="display: block"],
    #metronomeModal.modal-open {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
    }

    /* Asegurar que el contenido del modal del metrónomo esté centrado */
    #metronomeModal>div {
      margin: 0 auto !important;
      position: relative !important;
      transform: none !important;
    }

    /* CENTRADO ESPECÍFICO PARA EL MODAL DEL HARMONIZADOR */
    #harmonizerModal {
      display: none;
      position: fixed;
      z-index: 200000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
    }

    #harmonizerModal.show,
    #harmonizerModal[style*="display: block"],
    #harmonizerModal.modal-open {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
    }

    /* Asegurar que el contenido del modal del harmonizador esté centrado */
    #harmonizerModal>div {
      margin: 0 auto !important;
      position: relative !important;
      transform: none !important;
    }

    /* ...existing code... */
