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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e0e0e0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.clock {
    font-size: 72px;
    font-weight: 300;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.date {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* ===== WIDGETS ===== */
.widgets-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    color: white;
}

/* ===== BUSCADOR (OCULTO) ===== */
.search-container {
    display: none;
}

.search-input {
    display: none;
}

/* ===== TABS PRINCIPALES ===== */
.main-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.main-tab-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.main-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.main-tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* ===== CONTENIDO DE TABS ===== */
.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

/* ===== MARCADORES ===== */
.bookmarks-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-section {
    margin-bottom: 30px;
}

.category-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.bookmarks-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 180px));
}

.bookmark-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.bookmark-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bookmark-card:hover .bookmark-actions {
    opacity: 1;
}

.bookmark-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.bookmark-title {
    text-align: center;
    color: white;
    font-size: 14px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bookmark-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.action-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* ===== SISTEMA DE NOTAS CON MONACO ===== */
.notes-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 95%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header con selector de notas */
.notes-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.notes-selector-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.notes-selector-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.notes-selector {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.notes-selector:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(76, 175, 80, 0.5);
}

.notes-selector:focus {
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.notes-selector option {
    background: #1a1a2e;
    color: white;
    padding: 10px;
    font-size: 14px;
}

.notes-selector option:hover {
    background: #2a2a3e;
}

/* Botón nueva nota en el header */
.notes-header .btn-new-note {
    padding: 10px 20px;
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-header .btn-new-note:hover {
    background: rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.notes-header .btn-new-note:active {
    transform: translateY(0);
}

.notes-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.note-title-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
}

.toolbar-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.font-size-slider {
    width: 100px;
    cursor: pointer;
}

.font-size-value {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    min-width: 35px;
    text-align: center;
}

.language-selector {
    padding: 8px 15px;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.btn-delete-note {
    padding: 8px 15px;
    background: rgba(244, 67, 54, 0.3);
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-delete-note:hover {
    background: rgba(244, 67, 54, 0.5);
}

.monaco-container {
    flex: 1 1 auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
    max-height: calc(100vh - 400px);
    display: flex;
    flex-direction: column;
}

.editor-stats {
    margin-top: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 36px;
    align-items: center;
}

/* ===== BOTONES DE ACCIÓN FLOTANTES ===== */
.action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.action-buttons .action-btn {
    width: 60px;
    height: 60px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.action-buttons .action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.action-buttons .action-btn[data-action="bookmark"] {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.action-buttons .action-btn[data-action="bookmark"]:hover {
    background: rgba(76, 175, 80, 0.5);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.action-buttons .action-btn[data-action="note"] {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

.action-buttons .action-btn[data-action="note"]:hover {
    background: rgba(255, 193, 7, 0.5);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.action-buttons .action-btn#settingsBtn {
    background: rgba(158, 158, 158, 0.3);
    border-color: rgba(158, 158, 158, 0.5);
}

.action-buttons .action-btn#settingsBtn:hover {
    background: rgba(158, 158, 158, 0.5);
    box-shadow: 0 6px 20px rgba(158, 158, 158, 0.4);
}

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-large {
    max-width: 800px;
}

/* Modal de confirmación */
.modal-confirm {
    max-width: 450px;
    text-align: center;
    animation: modalBounce 0.4s ease;
}

@keyframes modalBounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: iconShake 0.5s ease;
}

@keyframes iconShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.modal-confirm h2 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-confirm p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-content h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-content h3 {
    color: #c0c0c0;
    margin: 20px 0 10px;
    font-size: 18px;
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #c0c0c0;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.form-group.inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group.inline label {
    margin: 0;
    min-width: 120px;
}

.form-group.inline input[type="range"] {
    flex: 1;
}

.range-value {
    min-width: 50px;
    text-align: right;
    color: #c0c0c0;
    font-size: 14px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

/* ===== BOTONES ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

/* ===== TABS DE CONFIGURACIÓN ===== */
.tabs-config {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    color: white;
    border-bottom-color: #4CAF50;
}

/* ===== UPLOAD DE ARCHIVOS ===== */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.upload-area p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.upload-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 15px;
    border-radius: 8px;
}

/* ===== GALERÍA DE FONDOS ===== */
#backgroundsGallery::-webkit-scrollbar {
    width: 8px;
}

#backgroundsGallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#backgroundsGallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#backgroundsGallery::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bg-card:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== PRESETS DE LAYOUT ===== */
#layoutPresetsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.preset-option {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.preset-option.active {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.preset-option strong {
    display: block;
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
    .notes-main-container {
        padding: 10px;
    }

    .notes-toolbar {
        padding: 8px 10px;
        gap: 10px;
    }

    .note-title-input {
        width: 100%;
        min-width: unset;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .font-size-slider {
        width: 80px;
    }

    .language-selector {
        font-size: 13px;
        padding: 6px 10px;
    }

    .monaco-container {
        min-height: 300px;
    }

    .editor-stats {
        gap: 10px;
        font-size: 11px;
    }

    .btn-new-note .btn-text,
    .btn-delete-note .btn-text {
        display: none;
    }

    .btn-new-note,
    .btn-delete-note {
        padding: 8px 12px;
    }

    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }

    /* Ajustar tabs de notas en tablets */
    .note-tab {
        min-height: 42px !important;
        line-height: 1.4 !important;
    }
}

/* ===== RESPONSIVE - MÓVIL (Portrait) ===== */
@media (max-width: 480px), (max-width: 768px) and (orientation: portrait) {
    .container {
        padding: 10px;
    }

    .header {
        margin-bottom: 20px;
    }

    .clock {
        font-size: 48px;
    }

    .date {
        font-size: 14px;
    }

    .main-tabs {
        gap: 10px;
        margin-bottom: 20px;
    }

    .main-tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .notes-main-container {
        padding: 8px;
        width: 100%;
    }

    /* Selector de notas en móvil - MANTENER EN UNA LÍNEA */
    .notes-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .notes-selector-wrapper {
        flex: 1;
        flex-direction: row;
        align-items: center;
        min-width: 0;
        gap: 8px;
    }

    .notes-selector-label {
        display: none; /* Ocultar label en móvil para ahorrar espacio */
    }

    .notes-selector {
        width: 100%;
        padding: 12px 12px;
        padding-right: 35px;
        font-size: 14px;
    }

    .notes-header .btn-new-note {
        padding: 12px 12px;
        flex-shrink: 0;
        min-width: 50px;
    }

    .notes-header .btn-new-note .btn-text {
        display: none; /* Solo mostrar el icono ➕ */
    }

    .notes-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .note-title-input {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }

    .toolbar-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .toolbar-label {
        justify-content: space-between;
        font-size: 13px;
    }

    .label-text {
        flex: 1;
    }

    .font-size-slider {
        width: 100%;
    }

    .font-size-value {
        min-width: 40px;
    }

    .language-selector {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn-delete-note {
        width: 100%;
        padding: 10px 12px;
    }

    .monaco-container {
        min-height: 300px;
        border-radius: 8px;
    }

    .editor-stats {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        font-size: 12px;
    }

    .action-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .action-buttons .action-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    /* Ocultar minimap en móvil */
    .monaco-editor .minimap {
        display: none !important;
    }

    /* MARCADORES EN MÓVIL - MÁS PEQUEÑOS */
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)) !important;
        gap: 8px !important;
    }

    .bookmark-card {
        padding: 10px 6px !important;
        border-radius: 12px !important;
    }

    .bookmark-icon-wrapper {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 6px !important;
    }

    .bookmark-icon-wrapper img {
        width: 36px !important;
        height: 36px !important;
    }

    .bookmark-title {
        font-size: 10px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
    }

    .category-title {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .category-section {
        margin-bottom: 20px !important;
    }

    .modal-content {
        padding: 20px;
        max-height: 85vh;
        max-width: 95%;
    }

    .widgets-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .widget {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ===== MÓVIL ALTA RESOLUCIÓN (como tu celular) ===== */
@media (max-width: 768px) and (min-resolution: 2dppx) {
    /* Forzar tamaños aún más pequeños en pantallas de alta densidad */
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
        gap: 6px !important;
    }

    .bookmark-card {
        padding: 8px 4px !important;
    }

    .bookmark-icon-wrapper {
        width: 32px !important;
        height: 32px !important;
    }

    .bookmark-icon-wrapper img {
        width: 32px !important;
        height: 32px !important;
    }

    .bookmark-title {
        font-size: 9px !important;
    }

    /* Selector y botón compactos */
    .notes-selector {
        padding: 13px 12px !important;
        padding-right: 35px !important;
        font-size: 14px !important;
    }

    .notes-header .btn-new-note {
        padding: 13px 13px !important;
        font-size: 18px !important;
    }

    /* Asegurar que las stats sean visibles */
    .editor-stats {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 11px !important;
        gap: 12px !important;
    }
}