/* Perfil - Dashboard Moderno */
.perfil-container {
    min-height: 100vh;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.perfil-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.perfil-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.perfil-info {
    flex: 1;
}

.perfil-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1f2937;
}

.perfil-info p {
    margin: 0.25rem 0;
    color: #6b7280;
    font-size: 14px;
}

.btn-salir {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-salir:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.dashboard-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.panel-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.btn-panel-action {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-panel-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.panel-content {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Panel de Datos */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.info-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.info-label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

/* Panel de Pedidos */
.pedidos-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pedido-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
}

.pedido-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

/* Formulario de Edición */
.form-editar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.form-editar-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-editar-content h3 {
    margin: 0 0 1.5rem;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-guardar,
.btn-cancelar {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-guardar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-guardar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-cancelar {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-cancelar:hover {
    background: #e5e7eb;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Botón Eliminar Favorito */
.btn-eliminar-favorito {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-eliminar-favorito:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.btn-eliminar-favorito .icon {
    font-size: 1rem;
}

.btn-eliminar-favorito .text {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-eliminar-favorito {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .btn-eliminar-favorito .text {
        display: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .perfil-header {
        flex-direction: column;
        text-align: center;
    }
}
