.table-glass {
    width: 100%;
    border-collapse: collapse;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-glass thead {
    background: rgba(255, 255, 255, 0.3);
}

.table-glass th,
.table-glass td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-glass tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.table-wrapper {
    overflow-x: auto;
}

.thumbnail-sm {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
}

.btn-neo {
    background: #e0e0e0;
    border-radius: 12px;
    box-shadow: 5px 5px 10px #bebebe,
        -5px -5px 10px #ffffff;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 5px;
    display: inline-block;
}

.btn-neo:hover {
    background: #d4d4d4;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 10px 0;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-blue {
    background-color: #3498db;
    color: white;
}

.tag-blue:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .table-wrapper {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .card-title {
        font-size: 18px;
    }
    .mb-3, .my-3 {
        margin-bottom: 0.4rem !important;
    }

    .card-img, .card-img-top {
        width: 100px;
        height: 100%;
        border-radius: 12px 0 0 12px;
    }
}

.add-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #f7fafc;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        8px 8px 20px #d1d9e6,
        -8px -8px 20px #ffffff;
    position: relative;
    overflow: hidden;
}

.add-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.6s;
}

.add-button:hover::before {
    left: 100%;
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        12px 12px 25px #d1d9e6,
        -12px -12px 25px #ffffff;
}

.add-button:active {
    transform: translateY(0);
    box-shadow: 
        4px 4px 10px #d1d9e6,
        -4px -4px 10px #ffffff;
}

.add-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.btn-warning {
    background-color: #ffeaca;
    border-color: #ffc107;
}

.status-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-circle-green {
    background-color: #28a745;
    border: 2px solid #1e7e34;
}

.status-circle-green:hover {
    background-color: #218838;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.status-circle-orange {
    background-color: #fd7e14;
    border: 2px solid #e55a00;
}

.status-circle-orange:hover {
    background-color: #e55a00;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.status-circle-gray {
    background-color: #6c757d;
    border: 2px solid #5a6268;
    opacity: 0.7;
}

.status-circle-blue {
    background-color: #007bff; /* Azul para posts programados */
    border: 2px solid #0056b3;
}

.status-circle[style*="cursor: pointer"]:active {
    transform: scale(0.95);
}

.views-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.views-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}

.views-input.updating {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.views-input.success {
    border-color: #28a745;
    background-color: #d4edda;
}

.views-input.error {
    border-color: #dc3545;
    background-color: #f8d7da;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* CSS de botones modernos */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.25);
    white-space: nowrap;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.admin-btn:hover::before {
    left: 100%;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.35);
    color: white;
    text-decoration: none;
}

.admin-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Variaciones de color para diferentes tipos de botones */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.25);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 2px 8px rgba(250, 112, 154, 0.25);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.35);
}

.btn-info:hover {
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.35);
}

.btn-warning:hover {
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.35);
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
}

/* Responsive Design */
@media (max-width: 768px) {
    .button-container {
        gap: 0.5rem;
    }

    .admin-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .admin-btn i {
        font-size: 0.9rem;
        margin-right: 0.4rem;
    }
}

@media (max-width: 480px) {
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-btn {
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Animación de entrada */
.admin-btn {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.admin-btn:nth-child(1) { animation-delay: 0.05s; }
.admin-btn:nth-child(2) { animation-delay: 0.1s; }
.admin-btn:nth-child(3) { animation-delay: 0.15s; }
.admin-btn:nth-child(4) { animation-delay: 0.2s; }
.admin-btn:nth-child(5) { animation-delay: 0.25s; }
.admin-btn:nth-child(6) { animation-delay: 0.3s; }
.admin-btn:nth-child(7) { animation-delay: 0.35s; }
.admin-btn:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos base para los botones de acción */
.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Colores específicos por acción */
.btn-view {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.btn-edit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-share {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Estados hover */
.btn-view:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
    color: white;
    text-decoration: none;
}

.btn-share:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Estados activos */
.btn-action:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Efecto de ondas */
.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-action:active::before {
    width: 40px;
    height: 40px;
}

/* Tooltip personalizado */
.btn-action {
    position: relative;
}

.btn-action::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.btn-action:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* Responsividad */
@media (max-width: 768px) {
    .action-buttons {
        gap: 4px;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        gap: 3px;
    }
    
    .btn-action {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* Animación de carga para compartir */
.btn-share.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Modal de confirmación personalizado */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.confirm-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.confirm-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-btn.cancel {
    background: #f3f4f6;
    color: #374151;
}

.confirm-btn.delete {
    background: #ef4444;
    color: white;
}

.confirm-btn:hover.cancel {
    background: #e5e7eb;
}

.confirm-btn:hover.delete {
    background: #dc2626;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media only screen and (max-width: 767px) {
    section.como-funciona {
        padding-top: 25px !important;
    }
}
/* Estilos para feedback visual de los inputs de views */
.views-input.updating {
    background-color: #f8f9fa !important;
    border-color: #6c757d !important;
    cursor: wait;
    opacity: 0.7;
}

.views-input.success {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.views-input.error {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Animación suave para las transiciones */
.views-input {
    transition: all 0.3s ease;
}

/* Efecto loading para los botones de compartir */
.share-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.share-btn.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   DARK / NEON ADMIN THEME - GLOBAL STYLES
   ========================================================= */

/* 1. Contenedores Principales (Glassmorphism) */
.container-categories, 
.form-container {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin: 0 auto;
    color: #ffffff !important;
}

/* 2. Tipografía y Títulos */
.title, 
.form-title, 
.form-container h2 {
    color: #28ebe3 !important;
    font-family: 'Instrument Sans', sans-serif !important;
    background: none !important;
    -webkit-text-fill-color: #28ebe3 !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(40, 235, 227, 0.3);
    margin-bottom: 20px;
}
.form-subtitle, .empty-state p, .image-label {
    color: rgba(255, 255, 255, 0.6) !important;
}
.form-label, label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
}

/* 3. Botones Globales (Cyan Neon) */
.add-button, 
.btn, 
.btn-primary, 
.form-container button {
    background: #28ebe3 !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(40, 235, 227, 0.2) !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 24px;
}
.add-button:hover, 
.btn:hover, 
.btn-primary:hover, 
.form-container button:hover {
    background: #1fd4cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 235, 227, 0.4) !important;
    color: #000 !important;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}
.add-icon {
    background: transparent !important;
    color: #000 !important;
    font-size: 20px;
    margin-right: 8px;
}

/* 4. Tarjetas de Cuadrícula (Index) */
.category-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
}
.category-card:hover {
    border-color: #28ebe3 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(40, 235, 227, 0.15) !important;
}
.category-card::before { display: none !important; }
.category-name { color: #fff !important; font-size: 24px; font-weight: 700; margin-bottom: 20px; }

/* 5. Botones de Acción dentro de Tarjetas */
.action-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 5px;
}
.btn-view { color: #28ebe3 !important; }
.btn-edit { color: #f6ad55 !important; }
.btn-delete { color: #fc8181 !important; }
.action-btn:hover { background: rgba(255, 255, 255, 0.1) !important; transform: translateY(-2px); }

/* 6. Inputs y Formularios */
.form-input, .form-textarea, input[type="text"], textarea, input[type="file"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: 15px !important;
    width: 100%;
}
.form-input:focus, .form-textarea:focus, input[type="text"]:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #28ebe3 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 235, 227, 0.25) !important;
    outline: none !important;
}

/* 7. Drag & Drop Zone y Previews */
.drag-drop-zone {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 2px dashed rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    border-radius: 24px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.drag-drop-zone:hover, .drag-drop-zone.drag-over {
    border-color: #28ebe3 !important;
    background: rgba(40, 235, 227, 0.05) !important;
}
.upload-icon { background: transparent !important; box-shadow: none !important; font-size: 48px !important; }
.upload-title { color: #28ebe3 !important; }
.current-image, .image-preview {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: none !important;
    border-radius: 20px;
}
.change-image { background: #28ebe3 !important; color: #000 !important; border:none; padding: 10px 20px; border-radius: 12px; }

/* 8. Estados Vacíos y Loaders */
.empty-icon { background: rgba(255,255,255,0.05) !important; box-shadow: none !important; }
.loader { border-color: rgba(255,255,255,0.1) !important; border-top-color: #28ebe3 !important; }

/* =========================================================
   9. Tablas Globales y Listas Móviles
   ========================================================= */
.table-container { 
    overflow-x: auto; 
    margin-top: 20px; 
    background: rgba(0,0,0,0.2); 
    border-radius: 16px; 
    padding: 10px;
}
.custom-table { width: 100%; border-collapse: collapse; }
.custom-table th { 
    background: rgba(40, 235, 227, 0.1) !important; 
    color: #28ebe3 !important; 
    padding: 16px; 
    text-align: left; 
    text-transform: uppercase; 
    font-size: 14px;
    border-bottom: 2px solid rgba(40, 235, 227, 0.3); 
    border-radius: 8px 8px 0 0;
}
.custom-table td { 
    padding: 16px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    color: rgba(255, 255, 255, 0.9); 
    vertical-align: middle;
}
.custom-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* Listas / Cards Móviles (Para responsive) */
.mobile-card { 
    background: rgba(255, 255, 255, 0.03) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 16px; 
    padding: 20px; 
    margin-bottom: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: all 0.3s ease;
}
.mobile-card:hover { border-color: #28ebe3 !important; transform: translateX(5px); }
.mobile-card-title { color: #fff; font-weight: bold; font-size: 16px; }

/* =========================================================
   10. Paginación Global Dark/Neon
   ========================================================= */
.pagination-container { 
    margin-top: 30px; 
    text-align: center; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 20px; 
}
.pagination-info { color: rgba(255, 255, 255, 0.5); margin-bottom: 15px; font-size: 14px; }
.pagination { 
    display: inline-flex; 
    gap: 8px; 
    list-style: none; 
    padding: 0; 
    justify-content: center; 
    flex-wrap: wrap; 
}
.page-link { 
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    color: #28ebe3 !important; 
    padding: 8px 16px; 
    border-radius: 8px; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    font-weight: 600;
}
.page-link:hover { 
    background: rgba(40, 235, 227, 0.1) !important; 
    border-color: #28ebe3 !important; 
    color: #fff !important; 
    transform: translateY(-2px);
}
.page-item.active .page-link, .page-link.active, .pagination .active a { 
    background: #28ebe3 !important; 
    color: #000 !important; 
    border-color: #28ebe3 !important; 
    font-weight: bold; 
    pointer-events: none;
}

/* =========================================================
   11. ADMIN TOPBAR & HOME BUTTON
   ========================================================= */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 9998; /* Un punto menos que el overlay del menú */
    margin-bottom: 30px;
}

.admin-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #28ebe3 !important;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(40, 235, 227, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(40, 235, 227, 0.2);
    transition: all 0.3s ease;
}

.admin-home-btn:hover {
    background: #28ebe3;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(40, 235, 227, 0.3);
    transform: translateY(-2px);
}

/* Ajustes para Móviles */
@media (max-width: 768px) {
    .admin-topbar {
        padding: 15px 20px;
        margin-bottom: 25px;
    }
    
    .admin-home-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Bajamos un poco el botón flotante de 'Atrás' para que no choque con la nueva barra */
    .global-back-button {
        top: 25px !important;
    }
}

/* =========================================================
   12. FIX RESPONSIVE & ANTI-SCROLL HORIZONTAL
   ========================================================= */
@media (max-width: 768px) {
    .main-content {
        padding: 10px !important;
        overflow-x: hidden !important; /* Seguro anti-scroll horizontal */
    }
    .container-categories, 
    .form-container {
        padding: 20px !important; /* Reducimos el padding en móvil */
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Hacemos que los botones se apilen si no caben */
    .form-container form > div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    .form-container form > div[style*="display: flex"] > * {
        flex: 1 1 100% !important; /* En móvil, los botones toman el 100% */
        margin-bottom: 10px;
    }
}