/* =========================================================================
   2. EL TABLERO / MURO (#proyd-tablero-overlay)
   ========================================================================= */
#proyd-tablero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-surface);
    z-index: var(--z-overlay-view);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}
#proyd-tablero-overlay.open { opacity: 1; visibility: visible; }
.tablero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10;
}
.t-tool-btn {
    background: transparent !important;
    border: none !important;
    color: #888 !important;
    cursor: pointer !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    transition: 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.btn-publicar-tablero {
    background: var(--text-main) !important;
    color: #0a0a0a !important;
    border: none !important;
    padding: 8px 20px !important;
    font-family: var(--font-mono) !important;
    font-weight: 800 !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
    display: inline-block !important;
}
.btn-publicar-tablero:hover { background: #ffffff !important; }
.tablero-composer-wrap {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    background: #111111;
}
#tablero-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 16px;
    padding: 15px 20px;
    outline: none;
    min-height: 50px;
    resize: none;
    box-sizing: border-box;
    transition: color 0.3s ease;
    color: var(--text-main);
}
#tablero-input::placeholder { color: inherit; opacity: 0.5; }
.tablero-toolbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.tablero-composer-wrap.active .tablero-toolbar { display: flex; }
#t-paleta-popup.mostrar { display: flex !important; }
.t-color-dot { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.2s; }
.t-color-dot:hover { transform: scale(1.2); border-color: #fff; }
.tablero-content { padding: 0 40px 60px 40px; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.tablero-seccion-titulo { font-size: 11px; font-weight: 800; color: #666; letter-spacing: 2px; margin-bottom: 20px; }
.tablero-masonry { column-count: 4; column-gap: 20px; }
@media (max-width: 1200px) { .tablero-masonry { column-count: 3; } }
@media (max-width: 900px) { .tablero-masonry { column-count: 2; } }
@media (max-width: 600px) { .tablero-masonry { column-count: 1; } }
.tablero-nota {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: border-color 0.2s;
}
.tablero-nota:hover { border-color: rgba(255, 255, 255, 0.3); }
.nota-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 4px;
}
.tablero-nota:hover .nota-actions { opacity: 1; }
.nota-actions button { background: transparent !important; border: none !important; cursor: pointer !important; padding: 0 !important; margin: 0 !important; outline: none !important; box-shadow: none !important; }
#modal-borrar-nota-tablero { z-index: var(--z-modal) !important; }
