:root {
    --nm-primary: #06751D;
    --nm-secondary: #86bd1b;
    --nm-success: #f79308;
    --nm-dark: #672d29;
    --nm-accent: #86bd1b;
}

.nm-dashboard, .nm-dashboard * { box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
.nm-dashboard { max-width: 1000px; margin: 0 auto; background: #ffffff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; }
.nm-tabs { display: flex; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.nm-tab { flex: 1; padding: 16px 24px; background: none; border: none; font-weight: 500; color: #6c757d; cursor: pointer; transition: all 0.3s ease; }
.nm-tab.active { color: var(--nm-primary); border-bottom: 3px solid var(--nm-primary); background: #ffffff; font-weight:700; }
.nm-tab-content { display: none; padding: 30px; }
.nm-tab-content.active { display: block; }
.nm-section h2 { font-size: 1.5rem; color: var(--nm-dark); margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.nm-form { max-width: 800px; margin: 0 auto; }
.nm-field { margin-bottom: 20px; }
.nm-field label { display: block; font-weight: 600; color: var(--nm-dark); margin-bottom: 8px; font-size: 0.95rem; }
.nm-field input[type="text"], .nm-field textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 0.95rem; font-family: 'Montserrat', sans-serif; transition: border-color 0.3s; }
.nm-field input[type="text"]:focus, .nm-field textarea:focus { border-color: var(--nm-primary); outline: none; }
.nm-help-text { font-size: 0.8rem; color: #888; margin-top: 4px; }
.nm-btn-primary { background: var(--nm-primary); color: white; border: none; padding: 12px 25px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 1rem; }
.nm-btn-primary:hover { background: var(--nm-dark); }
.nm-btn-secondary { background: #ccc; color: #333; border: none; padding: 12px 25px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 1rem; }
.nm-btn-upload { background: var(--nm-secondary); color: white; border: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.nm-images-gallery { margin-top: 15px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.nm-dashboard .nm-image-preview { position: relative !important; width: 100% !important; height: 120px !important; border-radius: 6px !important; overflow: hidden !important; }
.nm-dashboard .nm-image-preview img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.nm-dashboard .nm-remove-image { position: absolute !important; top: 5px !important; right: 5px !important; background: rgba(0,0,0,0.6) !important; border: none !important; border-radius: 50% !important; width: 24px !important; height: 24px !important; color: #fff !important; cursor: pointer !important; }

/* Lista de Administración */
.nm-news-list { display: flex; flex-direction: column; gap: 15px; }
.nm-news-item { display: flex; align-items: center; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; background: #fff; }
.nm-news-thumb { width: 70px; height: 70px; min-width: 70px; border-radius: 6px; overflow: hidden; margin-right: 15px; background: #f0f0f0; }
.nm-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nm-news-info { flex-grow: 1; padding-right: 15px; }
.nm-news-info h4 { margin: 0 0 5px 0; font-size: 1.1rem; color: var(--nm-primary); }
.nm-news-info p { margin: 0; font-size: 0.85rem; color: #666; }
.nm-news-actions { display: flex; gap: 8px; }
.nm-btn-view { background: var(--nm-secondary); color: white; padding: 8px 12px; border-radius: 4px; text-decoration: none; font-size: 0.85rem; }
.nm-btn-edit { background: var(--nm-success); color: white; padding: 8px 12px; border-radius: 4px; border: none; cursor: pointer; }
.nm-btn-delete { background: #dc3545; color: white; padding: 8px 12px; border-radius: 4px; border: none; cursor: pointer; }

/* Modal */
.nm-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.nm-modal-content { background-color: #fefefe; padding: 30px; border-radius: 12px; width: 90%; max-width: 700px; position: relative; max-height: 90vh; overflow-y: auto; }
.nm-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.nm-modal-close { cursor: pointer; font-size: 28px; color: #6c757d; }
.nm-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }