/* Utils & Reset */
[x-cloak] { display: none !important; }
body { margin: 0; padding: 0; }

/* Scrollbars Modernos */
.custom-scrollbar::-webkit-scrollbar { height: 6px; width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* === GRAPESJS UI OVERRIDES === */

/* Canvas Fondo */
.gjs-cv-canvas {
    width: 100%;
    height: 100%;
    top: 0;
    background-color: #f1f5f9; /* Color gris claro de fondo */
}

/* Bloques (Grid de Iconos) */
.gjs-blocks-c {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
}

.gjs-block {
    width: auto !important;
    min-height: 85px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
    cursor: grab;
}

.gjs-block:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    transform: translateY(-2px);
}

.gjs-block-label {
    margin-top: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* Campos y Inputs del Editor */
.gjs-field {
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px;
    color: #334155 !important;
}
.gjs-field input, .gjs-field select { 
    color: #334155 !important; 
    font-size: 12px;
}

/* Títulos de Secciones (Acordeón) */
.gjs-sm-sector-title {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0;
    color: #334155 !important;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 12px;
    cursor: pointer;
}
.gjs-sm-properties { padding: 10px; background: #fff; }

/* Outline de Selección en el Canvas */
.gjs-cv-canvas .gjs-highlighter, .gjs-cv-canvas .gjs-selected {
    outline: 2px solid #6366f1 !important;
}

/* Etiquetas de columnas/elementos */
.gjs-clm-tags { padding: 5px; }
.gjs-clm-tag { background: #6366f1 !important; color: white !important; }